Index: include/gpu/GrContext.h |
diff --git a/include/gpu/GrContext.h b/include/gpu/GrContext.h |
index 667301e61d631026556508a3d4cbb40bded45c54..2a7c1383a0155c5c23659d92875fcf4fd7efa546 100644 |
--- a/include/gpu/GrContext.h |
+++ b/include/gpu/GrContext.h |
@@ -24,6 +24,7 @@ |
struct GrBatchAtlasConfig; |
class GrBatchFontCache; |
struct GrContextOptions; |
+class GrContextPriv; |
class GrContextThreadSafeProxy; |
class GrDrawingManager; |
class GrDrawContext; |
@@ -180,19 +181,6 @@ public: |
int getRecommendedSampleCount(GrPixelConfig config, SkScalar dpi) const; |
/** |
- * Returns a helper object to orchestrate draws. |
- * Callers assume the creation ref of the drawContext |
- * NULL will be returned if the context has been abandoned. |
- * |
- * @param rt the render target receiving the draws |
- * @param surfaceProps the surface properties (mainly defines text drawing) |
- * |
- * @return a draw context |
- */ |
- sk_sp<GrDrawContext> makeDrawContext(sk_sp<GrRenderTarget> rt, sk_sp<SkColorSpace> colorSpace, |
- const SkSurfaceProps* = nullptr); |
- |
- /** |
* Create both a GrRenderTarget and a matching GrDrawContext to wrap it. |
* We guarantee that "asTexture" will succeed for drawContexts created |
* via this entry point. |
@@ -379,6 +367,10 @@ public: |
/** This is only useful for debug purposes */ |
SkDEBUGCODE(GrSingleOwner* debugSingleOwner() const { return &fSingleOwner; } ) |
+ // Provides access to functions that aren't part of the public API. |
+ GrContextPriv contextPriv(); |
+ const GrContextPriv contextPriv() const; |
+ |
private: |
GrGpu* fGpu; |
const GrCaps* fCaps; |
@@ -434,6 +426,7 @@ private: |
// TODO: have the CMM use drawContexts and rm this friending |
friend class GrClipMaskManager; // the CMM is friended just so it can call 'drawingManager' |
friend class GrDrawingManager; // for access to drawingManager for ProgramUnitTest |
+ friend class GrContextPriv; |
GrDrawingManager* drawingManager() { return fDrawingManager; } |
GrContext(); // init must be called after the constructor. |