Connect DDL offsets in the testing harness to the new ddlTask
This connects these two CLs:
https://skia-review.googlesource.com/c/skia/+/333129 (Update DDL testing harness to support drawing DDL w/ integer offsets)
https://skia-review.googlesource.com/c/skia/+/334422 (Change UnrefDDLTask to just be the DDLTask (take 2))
It still doesn't work though bc it is missing backend support and flags on the tools to enable it.
Change-Id: I51e9c0d41689fce622222201280fb308f1679dcb
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/333579
Commit-Queue: Robert Phillips <robertphillips@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
diff --git a/src/gpu/GrDrawingManager.cpp b/src/gpu/GrDrawingManager.cpp
index f066928..15b7de0 100644
--- a/src/gpu/GrDrawingManager.cpp
+++ b/src/gpu/GrDrawingManager.cpp
@@ -591,7 +591,8 @@
}
void GrDrawingManager::createDDLTask(sk_sp<const SkDeferredDisplayList> ddl,
- GrRenderTargetProxy* newDest) {
+ GrRenderTargetProxy* newDest,
+ SkIPoint offset) {
SkDEBUGCODE(this->validate());
if (fActiveOpsTask) {
@@ -628,7 +629,8 @@
// Add a task to handle drawing and lifetime management of the DDL.
SkDEBUGCODE(auto ddlTask =) this->appendTask(sk_make_sp<GrDDLTask>(this,
sk_ref_sp(newDest),
- std::move(ddl)));
+ std::move(ddl),
+ offset));
SkASSERT(ddlTask->isClosed());
SkDEBUGCODE(this->validate());