18 : fDDL(
std::move(ddl))
19 , fDDLTarget(
std::move(ddlTarget)) {
24 for (
int i = 0;
i < task->numTargets(); ++
i) {
37 task->endFlush(drawingManager);
45 task->disown(drawingManager);
52 if (proxy == fDDLTarget.
get()) {
57 if (task->isUsed(proxy)) {
71 task->gatherProxyIntervals(alloc);
83 task->prepare(flushState);
88 bool anyCommandsIssued =
false;
90 if (task->execute(flushState)) {
91 anyCommandsIssued =
true;
95 return anyCommandsIssued;
98#if defined(GR_TEST_UTILS)
101 bool printDependencies,
107 SkString proxyStr = fDDLTarget->dump();
115 subIndent.append(
" ");
121 task->dump(subLabel, subIndent, printDependencies,
true);
125 SkDebugf(
"%s--------------------------------------------------------------\n\n",
void SK_SPI SkDebugf(const char format[],...) SK_PRINTF_LIKE(1
static void dump(const float m[20], SkYUVColorSpace cs, bool rgb2yuv)
GrDDLTask(GrDrawingManager *, sk_sp< GrRenderTargetProxy > ddlTarget, sk_sp< const GrDeferredDisplayList >)
void disown(GrDrawingManager *) override
void endFlush(GrDrawingManager *) override
int numRenderTasks() const
const skia_private::TArray< sk_sp< GrRenderTask > > & renderTasks() const
GrDeferredDisplayListPriv priv()
void setLastRenderTask(const GrSurfaceProxy *, GrRenderTask *)
void setFlag(uint32_t flag)
virtual void disown(GrDrawingManager *)
virtual void endFlush(GrDrawingManager *)
@ kClosed_Flag
This task can't accept any more dependencies.
void printf(const char format[],...) SK_PRINTF_LIKE(2
const char * c_str() const