diff options
author | Robert Phillips <robertphillips@google.com> | 2018-05-30 08:38:16 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-05-30 13:21:48 +0000 |
commit | 93540dd15715057e00b4f136977f441720317b60 (patch) | |
tree | 849d34a21533c1b4a300c651279e1585228756d4 /include/private | |
parent | e61ba84299eb4840e82a25a411f2c380ff754a7f (diff) |
Allow CCPR in DDL mode
Bug: skia:7988
Change-Id: If757f29e0156c0ef7045b437b04e17aebe4de851
Reviewed-on: https://skia-review.googlesource.com/130509
Commit-Queue: Robert Phillips <robertphillips@google.com>
Reviewed-by: Chris Dalton <csmartdalton@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'include/private')
-rw-r--r-- | include/private/SkDeferredDisplayList.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/include/private/SkDeferredDisplayList.h b/include/private/SkDeferredDisplayList.h index 4d379636a9..69e9def519 100644 --- a/include/private/SkDeferredDisplayList.h +++ b/include/private/SkDeferredDisplayList.h @@ -11,7 +11,10 @@ #include "SkSurfaceCharacterization.h" #if SK_SUPPORT_GPU +#include <map> #include "GrOpList.h" + +struct GrCCPerOpListPaths; #endif class SkSurface; @@ -22,7 +25,7 @@ class SkSurface; * * TODO: we probably need to expose this class so users can query it for memory usage. */ -class SkDeferredDisplayList { +class SK_API SkDeferredDisplayList { public: #if SK_SUPPORT_GPU @@ -42,6 +45,7 @@ public: SkDeferredDisplayList(const SkSurfaceCharacterization& characterization, sk_sp<LazyProxyData>); + ~SkDeferredDisplayList(); const SkSurfaceCharacterization& characterization() const { return fCharacterization; @@ -54,7 +58,11 @@ private: const SkSurfaceCharacterization fCharacterization; #if SK_SUPPORT_GPU + // This needs to match the same type in GrCoverageCountingPathRenderer.h + using PendingPathsMap = std::map<uint32_t, sk_sp<GrCCPerOpListPaths>>; + SkTArray<sk_sp<GrOpList>> fOpLists; + PendingPathsMap fPendingPaths; // This is the path data from CCPR. #endif sk_sp<LazyProxyData> fLazyProxyData; }; |