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

Unified Diff: include/gpu/GrContext.h

Issue 311183002: Push dash checks into GrContext. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix merge issue with bounder 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
Index: include/gpu/GrContext.h
diff --git a/include/gpu/GrContext.h b/include/gpu/GrContext.h
index 41ee15917f44c60b71a3aecd7044debeea61aa57..60877500076316e27edb3ab7473b6cda5758862c 100644
--- a/include/gpu/GrContext.h
+++ b/include/gpu/GrContext.h
@@ -32,6 +32,7 @@ class GrLayerCache;
class GrOvalRenderer;
class GrPath;
class GrPathRenderer;
+class GrPaintStyle;
class GrResourceEntry;
class GrResourceCache;
class GrStencilBuffer;
@@ -463,7 +464,7 @@ public:
*/
void drawRect(const GrPaint& paint,
const SkRect&,
- const SkStrokeRec* stroke = NULL,
+ const GrPaintStyle* style = NULL,
const SkMatrix* matrix = NULL);
/**
@@ -492,7 +493,7 @@ public:
* @param rrect the roundrect to draw
* @param stroke the stroke information (width, join, cap)
*/
- void drawRRect(const GrPaint& paint, const SkRRect& rrect, const SkStrokeRec& stroke);
+ void drawRRect(const GrPaint& paint, const SkRRect& rrect, const GrPaintStyle& style);
/**
* Shortcut for drawing an SkPath consisting of nested rrects using a paint.
@@ -513,7 +514,7 @@ public:
* @param path the path to draw
* @param stroke the stroke information (width, join, cap)
*/
- void drawPath(const GrPaint& paint, const SkPath& path, const SkStrokeRec& stroke);
+ void drawPath(const GrPaint& paint, const SkPath& path, const GrPaintStyle& style);
/**
* Draws vertices with a paint.
@@ -549,7 +550,7 @@ public:
*/
void drawOval(const GrPaint& paint,
const SkRect& oval,
- const SkStrokeRec& stroke);
+ const GrPaintStyle& style);
///////////////////////////////////////////////////////////////////////////
// Misc.
« no previous file with comments | « gyp/gpu.gypi ('k') | src/gpu/GrBitmapTextContext.cpp » ('j') | src/gpu/GrContext.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698