aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar Robert Phillips <robertphillips@google.com>2018-01-19 12:56:09 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-01-19 18:36:35 +0000
commit88260b549fcff1715ab9bb9b1a442e0abacce2e5 (patch)
treeacfebce4d3e03928c72f30e517c6d0a593d43661 /include
parent9cec1bc1a707b43e1c338c642b10f4ba9400d518 (diff)
Split GrContext into Normal/DDL flavors
Change-Id: If37d8a236bd71e2d7121eaafb9d7c7b08328b10f Reviewed-on: https://skia-review.googlesource.com/84863 Reviewed-by: Brian Salomon <bsalomon@google.com> Reviewed-by: Greg Daniel <egdaniel@google.com> Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'include')
-rw-r--r--include/gpu/GrContext.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/include/gpu/GrContext.h b/include/gpu/GrContext.h
index 6b5d7500fa..71f903c399 100644
--- a/include/gpu/GrContext.h
+++ b/include/gpu/GrContext.h
@@ -115,7 +115,7 @@ public:
}
/**
- * Abandons all GPU resources and assumes the underlying backend 3D API context is not longer
+ * Abandons all GPU resources and assumes the underlying backend 3D API context is no longer
* usable. Call this if you have lost the associated GPU context, and thus internal texture,
* buffer, etc. references/IDs are now invalid. Calling this ensures that the destructors of the
* GrContext and any of its created resource objects will not make backend 3D API calls. Content
@@ -349,6 +349,10 @@ public:
GrContextPriv contextPriv();
const GrContextPriv contextPriv() const;
+protected:
+ GrContext(GrContextThreadSafeProxy*);
+ GrContext(GrBackend);
+
private:
sk_sp<GrGpu> fGpu;
sk_sp<const GrCaps> fCaps;
@@ -393,9 +397,7 @@ private:
// TODO: have the GrClipStackClip use renderTargetContexts and rm this friending
friend class GrContextPriv;
- GrContext(GrBackend); // init must be called after the constructor.
- GrContext(GrContextThreadSafeProxy*);
- bool init(const GrContextOptions&);
+ bool init(const GrContextOptions&); // init must be called after either constructor.
/**
* These functions create premul <-> unpremul effects. If the second argument is 'true', they