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

Unified Diff: src/gpu/GrPathRendering.h

Issue 578563002: Remove createPath* from GrGpu and GrContext (Closed) Base URL: https://skia.googlesource.com/skia.git@upload_glyphmemorypath
Patch Set: Simple quick change Created 6 years, 3 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 | « src/gpu/GrGpu.cpp ('k') | src/gpu/GrStencilAndCoverPathRenderer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrPathRendering.h
diff --git a/src/gpu/GrPathRendering.h b/src/gpu/GrPathRendering.h
index 863da270c79719c3119255ec905d6c29776af331..70fa61c27e6fe1fac25c4fee3453f240e2699af6 100644
--- a/src/gpu/GrPathRendering.h
+++ b/src/gpu/GrPathRendering.h
@@ -59,8 +59,26 @@ public:
}
}
+ /**
+ * 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.
+ */
virtual GrPath* createPath(const SkPath&, const SkStrokeRec&) = 0;
+
+ /**
+ * Creates a range of gpu paths with a common stroke. The caller owns a ref on the
+ * returned path range which must be balanced by a call to unref.
+ *
+ * @param PathGenerator class that generates SkPath objects for each path in the range.
+ * @param SkStrokeRec the common stroke applied to each path in the range.
+ * @return a new path range.
+ */
virtual GrPathRange* createPathRange(size_t size, const SkStrokeRec&) = 0;
+
virtual void stencilPath(const GrPath*, SkPath::FillType) = 0;
virtual void drawPath(const GrPath*, SkPath::FillType) = 0;
virtual void drawPaths(const GrPathRange*, const uint32_t indices[], int count,
« no previous file with comments | « src/gpu/GrGpu.cpp ('k') | src/gpu/GrStencilAndCoverPathRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698