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

Unified Diff: src/gpu/GrPathRendering.h

Issue 1967513002: Revert of Replace GrStrokeInfo with GrStyle. (Closed) Base URL: https://chromium.googlesource.com/skia.git@resscale
Patch Set: Created 4 years, 7 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/GrPathRendererChain.cpp ('k') | src/gpu/GrPathRendering.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 8eea3218ac42091efa1c9828729a3a5cb0677612..8ee3d7b3e24168e5640b6f9ee3055852a2f1a92e 100644
--- a/src/gpu/GrPathRendering.h
+++ b/src/gpu/GrPathRendering.h
@@ -17,7 +17,7 @@
class SkTypeface;
class GrPath;
class GrStencilSettings;
-class GrStyle;
+class GrStrokeInfo;
/**
* Abstract class wrapping HW path rendering API.
@@ -81,23 +81,21 @@
* 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 geometry.
- * @param GrStyle the style applied to the path. Styles with non-dash path effects are not
- * allowed.
- * @return a new GPU path object.
+ * @param skPath the path geometry.
+ * @param stroke the path stroke.
+ * @return a new path.
*/
- virtual GrPath* createPath(const SkPath&, const GrStyle&) = 0;
+ virtual GrPath* createPath(const SkPath&, const GrStrokeInfo&) = 0;
/**
- * Creates a range of gpu paths with a common style. The caller owns a ref on the
+ * 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 GrStyle the common style applied to each path in the range. Styles with non-dash
- * path effects are not allowed.
+ * @param GrStrokeInfo the common stroke applied to each path in the range.
* @return a new path range.
*/
- virtual GrPathRange* createPathRange(GrPathRange::PathGenerator*, const GrStyle&) = 0;
+ virtual GrPathRange* createPathRange(GrPathRange::PathGenerator*, const GrStrokeInfo&) = 0;
/**
* Creates a range of glyph paths, indexed by glyph id. The glyphs will have an
@@ -120,15 +118,15 @@
* including with the stroke information baked directly into
* the outlines.
*
- * @param GrStyle Common style that the GPU will apply to every path. Note that
- * if the glyph outlines contain baked-in styles from the font
- * descriptor, the GPU style will be applied on top of those
+ * @param GrStrokeInfo Common stroke that the GPU will apply to every path. Note that
+ * if the glyph outlines contain baked-in strokes from the font
+ * descriptor, the GPU stroke will be applied on top of those
* outlines.
*
* @return a new path range populated with glyphs.
*/
GrPathRange* createGlyphs(const SkTypeface*, const SkScalerContextEffects&,
- const SkDescriptor*, const GrStyle&);
+ const SkDescriptor*, const GrStrokeInfo&);
/** None of these params are optional, pointers used just to avoid making copies. */
struct StencilPathArgs {
« no previous file with comments | « src/gpu/GrPathRendererChain.cpp ('k') | src/gpu/GrPathRendering.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698