diff options
author | Robert Phillips <robertphillips@google.com> | 2017-12-13 11:50:22 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-12-13 18:24:30 +0000 |
commit | e42edcc8ef257d4c430344d6d208e994f20f9320 (patch) | |
tree | 6c894e1995a7b03a74619b185998936dd6f62f9c /include/core/SkDeferredDisplayListRecorder.h | |
parent | b9042d206ab8762429c61160383094360fb04c7a (diff) |
Add stubbed out GrContext
This CL mainly just:
stores the GrContextOptions in GrContextThreadSafeProxy (so they can be passed on to a stubbed out GrContext)
adds a method to create a stubbed out GrContext that has a GrStubGpu
- the stubbed out GrContext isn't quite ready for prime time yet
Change-Id: I31be6763640e406c5963e6f0714489ac358339e4
Reviewed-on: https://skia-review.googlesource.com/79601
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'include/core/SkDeferredDisplayListRecorder.h')
-rw-r--r-- | include/core/SkDeferredDisplayListRecorder.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/include/core/SkDeferredDisplayListRecorder.h b/include/core/SkDeferredDisplayListRecorder.h index 63934a1857..b50d4f8c1f 100644 --- a/include/core/SkDeferredDisplayListRecorder.h +++ b/include/core/SkDeferredDisplayListRecorder.h @@ -13,8 +13,12 @@ #include "../private/SkDeferredDisplayList.h" #include "../private/SkSurfaceCharacterization.h" +class GrContext; + class SkCanvas; -class SkSurface; // TODO: remove +class SkSurface; + +#define SK_RASTER_RECORDER_IMPLEMENTATION 1 /* * This class is intended to be used as: @@ -44,9 +48,13 @@ public: std::unique_ptr<SkDeferredDisplayList> detach(); private: - const SkSurfaceCharacterization fCharacterization; + bool init(); - sk_sp<SkSurface> fSurface; // temporary until we have a real implementation + const SkSurfaceCharacterization fCharacterization; +#ifndef SK_RASTER_RECORDER_IMPLEMENTATION + sk_sp<GrContext> fContext; +#endif + sk_sp<SkSurface> fSurface; }; #endif |