diff options
Diffstat (limited to '')
-rw-r--r-- | gfx/skia/skia/src/gpu/GrTextureResolveManager.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/gfx/skia/skia/src/gpu/GrTextureResolveManager.h b/gfx/skia/skia/src/gpu/GrTextureResolveManager.h new file mode 100644 index 0000000000..f610c6b64a --- /dev/null +++ b/gfx/skia/skia/src/gpu/GrTextureResolveManager.h @@ -0,0 +1,37 @@ +/* + * Copyright 2019 Google LLC + * + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + +#ifndef GrTextureResolveManager_DEFINED +#define GrTextureResolveManager_DEFINED + +#include "include/core/SkRefCnt.h" +#include "src/gpu/GrDrawingManager.h" + +class GrCaps; +class GrDrawingManager; +class GrRenderTask; + +/* + * This class is a shallow view of the drawing manager. It is passed to render tasks when setting up + * the dependency DAG, and gives them limited access to functionality for making new tasks that + * regenerate mipmaps and/or resolve MSAA. + */ +class GrTextureResolveManager { +public: + explicit GrTextureResolveManager(GrDrawingManager* drawingManager) + : fDrawingManager(drawingManager) {} + + GrTextureResolveRenderTask* newTextureResolveRenderTask(const GrCaps& caps) const { + SkASSERT(fDrawingManager); + return fDrawingManager->newTextureResolveRenderTask(caps); + } + +private: + GrDrawingManager* fDrawingManager; +}; + +#endif |