Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(293)

Unified Diff: include/gpu/GrContext.h

Issue 196133014: Implement text rendering with NVPR (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix VS "performance warning" converting int to bool Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/core/SkPaint.h ('k') | include/gpu/GrPaint.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/GrContext.h
diff --git a/include/gpu/GrContext.h b/include/gpu/GrContext.h
index 608ec507b2919e910ae477b325888dca01e5e52d..af44aa7c510087e39c9989b983d3b657dc1f4aca 100644
--- a/include/gpu/GrContext.h
+++ b/include/gpu/GrContext.h
@@ -38,6 +38,7 @@ class GrResourceEntry;
class GrResourceCache;
class GrStencilBuffer;
class GrTestTarget;
+class GrTextContext;
class GrTextureParams;
class GrVertexBuffer;
class GrVertexBufferAllocPool;
@@ -194,6 +195,16 @@ public:
*/
GrCacheable* findAndRefCachedResource(const GrResourceKey&);
+ /**
+ * 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&,
+ bool enableDistanceFieldFonts);
+
///////////////////////////////////////////////////////////////////////////
// Textures
@@ -1018,6 +1029,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.
« no previous file with comments | « include/core/SkPaint.h ('k') | include/gpu/GrPaint.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698