blob: 93f077f302ca6d41de06e04ee3d6aa2ed2bf19a2 [file] [log] [blame]
* Copyright 2020 Google Inc.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
#ifndef GrDirectContext_DEFINED
#define GrDirectContext_DEFINED
#include "include/gpu/GrContext.h"
class GrAtlasManager;
class GrDirectContext : public GrContext {
GrDirectContext(GrBackendApi backend, const GrContextOptions& options);
~GrDirectContext() override;
void abandonContext() override;
void releaseResourcesAndAbandonContext() override;
void freeGpuResources() override;
bool init() override;
GrAtlasManager* onGetAtlasManager() override { return fAtlasManager; }
GrAtlasManager* fAtlasManager;
typedef GrContext INHERITED;