Flutter Engine
The Flutter Engine
GrTextureResolveManager.h
Go to the documentation of this file.
1/*
2 * Copyright 2019 Google LLC
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8#ifndef GrTextureResolveManager_DEFINED
9#define GrTextureResolveManager_DEFINED
10
13
14class GrCaps;
16class GrRenderTask;
17
18/*
19 * This class is a shallow view of the drawing manager. It is passed to render tasks when setting up
20 * the dependency DAG, and gives them limited access to functionality for making new tasks that
21 * regenerate mipmaps and/or resolve MSAA.
22 */
24public:
25 explicit GrTextureResolveManager(GrDrawingManager* drawingManager)
26 : fDrawingManager(drawingManager) {}
27
29 SkASSERT(fDrawingManager);
30 return fDrawingManager->newTextureResolveRenderTaskBefore(caps);
31 }
32
33private:
34 GrDrawingManager* fDrawingManager;
35};
36
37#endif
#define SkASSERT(cond)
Definition: SkAssert.h:116
Definition: GrCaps.h:57
GrTextureResolveRenderTask * newTextureResolveRenderTaskBefore(const GrCaps &)
GrTextureResolveRenderTask * newTextureResolveRenderTask(const GrCaps &caps) const
GrTextureResolveManager(GrDrawingManager *drawingManager)