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; |
}; |