aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkDeferredDisplayListRecorder.h
diff options
context:
space:
mode:
authorGravatar Robert Phillips <robertphillips@google.com>2018-02-01 09:10:04 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-02-01 15:00:53 +0000
commit620003692923dc6c6df5a1b66288988b6783a69f (patch)
tree5010067f4d26fb23f28964e74b5e37c38e3dddc3 /include/core/SkDeferredDisplayListRecorder.h
parent5f9ee7cc53d28c8ff2d000436bfee195c493ccdf (diff)
Implement GPU/OpList DDLs
This relies on https://skia-review.googlesource.com/c/skia/+/102101 (Add SkSurface_Gpu::MakeWrappedRenderTarget method) landing first TBR=bsalomon@google.com Change-Id: I4d2d66af5800407f638ef32d7b19ce49084bd4e4 Reviewed-on: https://skia-review.googlesource.com/102263 Commit-Queue: Robert Phillips <robertphillips@google.com> Reviewed-by: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'include/core/SkDeferredDisplayListRecorder.h')
-rw-r--r--include/core/SkDeferredDisplayListRecorder.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/include/core/SkDeferredDisplayListRecorder.h b/include/core/SkDeferredDisplayListRecorder.h
index b50d4f8c1f..f0a71c27d6 100644
--- a/include/core/SkDeferredDisplayListRecorder.h
+++ b/include/core/SkDeferredDisplayListRecorder.h
@@ -18,8 +18,6 @@ class GrContext;
class SkCanvas;
class SkSurface;
-#define SK_RASTER_RECORDER_IMPLEMENTATION 1
-
/*
* This class is intended to be used as:
* Get an SkSurfaceCharacterization representing the intended gpu-backed destination SkSurface
@@ -35,6 +33,7 @@ class SkSurface;
class SkDeferredDisplayListRecorder {
public:
SkDeferredDisplayListRecorder(const SkSurfaceCharacterization&);
+ ~SkDeferredDisplayListRecorder();
const SkSurfaceCharacterization& characterization() const {
return fCharacterization;
@@ -50,11 +49,15 @@ public:
private:
bool init();
- const SkSurfaceCharacterization fCharacterization;
+ const SkSurfaceCharacterization fCharacterization;
+
#ifndef SK_RASTER_RECORDER_IMPLEMENTATION
- sk_sp<GrContext> fContext;
+#if SK_SUPPORT_GPU
+ sk_sp<GrContext> fContext;
+#endif
+ sk_sp<SkDeferredDisplayList::LazyProxyData> fLazyProxyData;
#endif
- sk_sp<SkSurface> fSurface;
+ sk_sp<SkSurface> fSurface;
};
#endif