Flutter Engine
The Flutter Engine
|
#include <OpsTask.h>
Public Types | |
enum class | CanDiscardPreviousOps : bool { kYes = true , kNo = false } |
Protected Types | |
enum class | StencilContent { kDontCare , kUserBitsCleared , kPreserved } |
Protected Types inherited from GrRenderTask | |
enum class | ExpectedOutcome : bool { kTargetUnchanged , kTargetDirty } |
enum | Flags { kClosed_Flag = 0x01 , kDisowned_Flag = 0x02 , kSkippable_Flag = 0x04 , kAtlas_Flag = 0x08 , kBlocksReordering_Flag = 0x10 , kWasOutput_Flag = 0x20 , kTempMark_Flag = 0x40 } |
Protected Member Functions | |
void | setInitialStencilContent (StencilContent initialContent) |
void | recordOp (GrOp::Owner, bool usesMSAA, GrProcessorSet::Analysis, GrAppliedClip *, const GrDstProxyView *, const GrCaps &) |
ExpectedOutcome | onMakeClosed (GrRecordingContext *, SkIRect *targetUpdateBounds) override |
Protected Member Functions inherited from GrRenderTask | |
SkDEBUGCODE (bool deferredProxiesAreInstantiated() const ;) void addTarget(GrDrawingManager * | |
void | addTarget (GrDrawingManager *dm, const GrSurfaceProxyView &view) |
virtual ExpectedOutcome | onMakeClosed (GrRecordingContext *, SkIRect *targetUpdateBounds)=0 |
void | setFlag (uint32_t flag) |
void | resetFlag (uint32_t flag) |
bool | isSetFlag (uint32_t flag) const |
void | setIndex (uint32_t index) |
uint32_t | getIndex () const |
Friends | |
class | ::OpsTaskTestingAccess |
class | skgpu::ganesh::SurfaceDrawContext |
Additional Inherited Members | |
Protected Attributes inherited from GrRenderTask | |
sk_sp< GrSurfaceProxy > | |
skia_private::STArray< 1, sk_sp< GrSurfaceProxy > > | fTargets |
skia_private::TArray< GrTextureProxy *, true > | fDeferredProxies |
|
strong |
|
strongprotected |
skgpu::ganesh::OpsTask::OpsTask | ( | GrDrawingManager * | drawingMgr, |
GrSurfaceProxyView | view, | ||
GrAuditTrail * | auditTrail, | ||
sk_sp< GrArenas > | arenas | ||
) |
Definition at line 392 of file OpsTask.cpp.
|
override |
Definition at line 413 of file OpsTask.cpp.
void skgpu::ganesh::OpsTask::addDrawOp | ( | GrDrawingManager * | drawingMgr, |
GrOp::Owner | op, | ||
bool | usesMSAA, | ||
const GrProcessorSet::Analysis & | processorAnalysis, | ||
GrAppliedClip && | clip, | ||
const GrDstProxyView & | dstProxyView, | ||
GrTextureResolveManager | textureResolveManager, | ||
const GrCaps & | caps | ||
) |
Definition at line 429 of file OpsTask.cpp.
void skgpu::ganesh::OpsTask::addOp | ( | GrDrawingManager * | drawingMgr, |
GrOp::Owner | op, | ||
GrTextureResolveManager | textureResolveManager, | ||
const GrCaps & | caps | ||
) |
Definition at line 417 of file OpsTask.cpp.
|
inline |
Definition at line 67 of file OpsTask.h.
|
inlineoverridevirtual |
bool skgpu::ganesh::OpsTask::canMerge | ( | const OpsTask * | opsTask | ) | const |
Definition at line 678 of file OpsTask.cpp.
void skgpu::ganesh::OpsTask::discard | ( | ) |
Definition at line 773 of file OpsTask.cpp.
|
overridevirtual |
Empties the draw buffer of any queued up draws.
Reimplemented from GrRenderTask.
Definition at line 460 of file OpsTask.cpp.
int skgpu::ganesh::OpsTask::mergeFrom | ( | SkSpan< const sk_sp< GrRenderTask > > | tasks | ) |
Definition at line 684 of file OpsTask.cpp.
|
overridevirtual |
Implements GrRenderTask.
Definition at line 540 of file OpsTask.cpp.
|
overrideprotectedvirtual |
Implements GrRenderTask.
Definition at line 1057 of file OpsTask.cpp.
|
overridevirtual |
Together these two functions flush all queued up draws to GrCommandBuffer. The return value of onExecute() indicates whether any commands were actually issued to the GPU.
Reimplemented from GrRenderTask.
Definition at line 496 of file OpsTask.cpp.
|
overridevirtual |
Reimplemented from GrRenderTask.
Definition at line 471 of file OpsTask.cpp.
|
protected |
Definition at line 955 of file OpsTask.cpp.
|
inline |
bool skgpu::ganesh::OpsTask::resetForFullscreenClear | ( | CanDiscardPreviousOps | canDiscardPreviousOps | ) |
Definition at line 757 of file OpsTask.cpp.
void skgpu::ganesh::OpsTask::setColorLoadOp | ( | GrLoadOp | op, |
std::array< float, 4 > | color = {0, 0, 0, 0} |
||
) |
Definition at line 659 of file OpsTask.cpp.
|
inlineprotected |
|
inline |
|
friend |
|
friend |