Flutter Engine
The Flutter Engine
third_party
skia
src
gpu
ganesh
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
11
#include "
include/core/SkRefCnt.h
"
12
#include "
src/gpu/ganesh/GrDrawingManager.h
"
13
14
class
GrCaps
;
15
class
GrDrawingManager
;
16
class
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
*/
23
class
GrTextureResolveManager
{
24
public
:
25
explicit
GrTextureResolveManager
(
GrDrawingManager
* drawingManager)
26
: fDrawingManager(drawingManager) {}
27
28
GrTextureResolveRenderTask
*
newTextureResolveRenderTask
(
const
GrCaps
& caps)
const
{
29
SkASSERT
(fDrawingManager);
30
return
fDrawingManager->
newTextureResolveRenderTaskBefore
(caps);
31
}
32
33
private
:
34
GrDrawingManager
* fDrawingManager;
35
};
36
37
#endif
GrDrawingManager.h
SkASSERT
#define SkASSERT(cond)
Definition:
SkAssert.h:116
SkRefCnt.h
GrCaps
Definition:
GrCaps.h:57
GrDrawingManager
Definition:
GrDrawingManager.h:46
GrDrawingManager::newTextureResolveRenderTaskBefore
GrTextureResolveRenderTask * newTextureResolveRenderTaskBefore(const GrCaps &)
Definition:
GrDrawingManager.cpp:727
GrRenderTask
Definition:
GrRenderTask.h:31
GrTextureResolveManager
Definition:
GrTextureResolveManager.h:23
GrTextureResolveManager::newTextureResolveRenderTask
GrTextureResolveRenderTask * newTextureResolveRenderTask(const GrCaps &caps) const
Definition:
GrTextureResolveManager.h:28
GrTextureResolveManager::GrTextureResolveManager
GrTextureResolveManager(GrDrawingManager *drawingManager)
Definition:
GrTextureResolveManager.h:25
GrTextureResolveRenderTask
Definition:
GrTextureResolveRenderTask.h:25
Generated on Sun Jun 23 2024 21:56:21 for Flutter Engine by
1.9.4