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/GrDDLTask.h b/src/gpu/GrDDLTask.h
index 3c129ac..8b4f9c3 100644
--- a/src/gpu/GrDDLTask.h
+++ b/src/gpu/GrDDLTask.h
@@ -8,6 +8,7 @@
#ifndef GrDDLTask_DEFINED
#define GrDDLTask_DEFINED
+#include "include/core/SkPoint.h"
#include "src/gpu/GrRenderTask.h"
class GrRenderTargetProxy;
@@ -22,7 +23,8 @@
public:
GrDDLTask(GrDrawingManager*,
sk_sp<GrRenderTargetProxy> ddlTarget,
- sk_sp<const SkDeferredDisplayList>);
+ sk_sp<const SkDeferredDisplayList>,
+ SkIPoint offset);
~GrDDLTask() override;
@@ -35,7 +37,7 @@
void disown(GrDrawingManager*) override;
private:
- bool onIsUsed(GrSurfaceProxy* proxy) const override;
+ bool onIsUsed(GrSurfaceProxy*) const override;
void handleInternalAllocationFailure() override;
@@ -65,6 +67,7 @@
sk_sp<const SkDeferredDisplayList> fDDL;
sk_sp<GrRenderTargetProxy> fDDLTarget;
+ SkIPoint fOffset;
typedef GrRenderTask INHERITED;
};