Reflect the DDLTask's ref on its target in its factory
Change-Id: I8eec3b816ee422922f1205b0eb9dca30cd3d00c9
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/352119
Reviewed-by: Adlai Holler <adlai@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
diff --git a/src/gpu/GrDirectContextPriv.cpp b/src/gpu/GrDirectContextPriv.cpp
index f0d15c7..9d03432 100644
--- a/src/gpu/GrDirectContextPriv.cpp
+++ b/src/gpu/GrDirectContextPriv.cpp
@@ -66,9 +66,9 @@
}
void GrDirectContextPriv::createDDLTask(sk_sp<const SkDeferredDisplayList> ddl,
- GrRenderTargetProxy* newDest,
+ sk_sp<GrRenderTargetProxy> newDest,
SkIPoint offset) {
- fContext->drawingManager()->createDDLTask(std::move(ddl), newDest, offset);
+ fContext->drawingManager()->createDDLTask(std::move(ddl), std::move(newDest), offset);
}
bool GrDirectContextPriv::compile(const GrProgramDesc& desc, const GrProgramInfo& info) {