aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrContextPriv.h
diff options
context:
space:
mode:
authorGravatar Robert Phillips <robertphillips@google.com>2017-12-13 11:50:22 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-12-13 18:24:30 +0000
commite42edcc8ef257d4c430344d6d208e994f20f9320 (patch)
tree6c894e1995a7b03a74619b185998936dd6f62f9c /src/gpu/GrContextPriv.h
parentb9042d206ab8762429c61160383094360fb04c7a (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 'src/gpu/GrContextPriv.h')
-rw-r--r--src/gpu/GrContextPriv.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gpu/GrContextPriv.h b/src/gpu/GrContextPriv.h
index cdd04b4dbf..2a286f2bad 100644
--- a/src/gpu/GrContextPriv.h
+++ b/src/gpu/GrContextPriv.h
@@ -22,6 +22,11 @@ class GrTextureContext;
data members or virtual methods. */
class GrContextPriv {
public:
+ /**
+ * Create a GrContext without a resource cache
+ */
+ static sk_sp<GrContext> MakeDDL(GrContextThreadSafeProxy*);
+
GrDrawingManager* drawingManager() { return fContext->fDrawingManager.get(); }
sk_sp<GrSurfaceContext> makeWrappedSurfaceContext(sk_sp<GrSurfaceProxy>, sk_sp<SkColorSpace>);