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

Unified Diff: include/gpu/GrContext.h

Issue 26557003: Add a GPU paths to resource cache of the context (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: rebase Created 7 years, 1 month 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/SkStrokeRec.h ('k') | src/gpu/GrContext.cpp » ('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 f0aba38ccba24a904cfaeb54b6d486c29a1a77a5..82c440e67cff81a84cb397491582c32fe86573d2 100644
--- a/include/gpu/GrContext.h
+++ b/include/gpu/GrContext.h
@@ -29,6 +29,7 @@ class GrIndexBuffer;
class GrIndexBufferAllocPool;
class GrInOrderDrawBuffer;
class GrOvalRenderer;
+class GrPath;
class GrPathRenderer;
class GrResourceEntry;
class GrResourceCache;
@@ -924,6 +925,7 @@ private:
// Needed so GrTexture's returnToCache helper function can call
// addExistingTextureToCache
friend class GrTexture;
+ friend class GrStencilAndCoverPathRenderer;
// Add an existing texture to the texture cache. This is intended solely
// for use with textures released from an GrAutoScratchTexture.
@@ -947,6 +949,15 @@ private:
*/
static bool OverbudgetCB(void* data);
+ /** Creates a new gpu path, based on the specified path and stroke and returns it.
+ * The caller owns a ref on the returned path which must be balanced by a call to unref.
+ *
+ * @param skPath the path geometry.
+ * @param stroke the path stroke.
+ * @return a new path or NULL if the operation is not supported by the backend.
+ */
+ GrPath* createPath(const SkPath& skPath, const SkStrokeRec& stroke);
+
typedef SkRefCnt INHERITED;
};
« no previous file with comments | « include/core/SkStrokeRec.h ('k') | src/gpu/GrContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698