Index: include/gpu/GrContext.h |
diff --git a/include/gpu/GrContext.h b/include/gpu/GrContext.h |
index 52a25b452796b87740eedcb094e1517189af5bad..f9d7b1f97f24377a4fe61f02ed9fb944c3f720ba 100644 |
--- a/include/gpu/GrContext.h |
+++ b/include/gpu/GrContext.h |
@@ -35,6 +35,7 @@ class GrResourceEntry; |
class GrResourceCache; |
class GrStencilBuffer; |
class GrTestTarget; |
+class GrTextContext; |
class GrTextureParams; |
class GrVertexBuffer; |
class GrVertexBufferAllocPool; |
@@ -116,6 +117,15 @@ public: |
*/ |
int getGpuTextureCacheResourceCount() const; |
+ /** |
+ * Creates a new text rendering context that is optimal for the |
+ * render target and the context. Caller assumes the ownership |
+ * of the returned object. The returned object must be deleted |
+ * before the context is destroyed. |
+ */ |
+ GrTextContext* createTextContext(GrRenderTarget*, |
+ const SkDeviceProperties&); |
+ |
/////////////////////////////////////////////////////////////////////////// |
// Textures |
@@ -947,6 +957,7 @@ private: |
// addExistingTextureToCache |
friend class GrTexture; |
friend class GrStencilAndCoverPathRenderer; |
+ friend class GrStencilAndCoverTextContext; |
// Add an existing texture to the texture cache. This is intended solely |
// for use with textures released from an GrAutoScratchTexture. |