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

Unified Diff: src/gpu/effects/GrConvexPolyEffect.h

Issue 140093004: Specialize GrConvexPolyEffect for AA rects, use for AA clip rects. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: whitespace Created 6 years, 10 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: src/gpu/effects/GrConvexPolyEffect.h
diff --git a/src/gpu/effects/GrConvexPolyEffect.h b/src/gpu/effects/GrConvexPolyEffect.h
index 035d9e95dda03c4a5e3f014399625f8788fcfd2b..434cebe96fa60fc1447fdcb7d7a0260ed044eb9f 100644
--- a/src/gpu/effects/GrConvexPolyEffect.h
+++ b/src/gpu/effects/GrConvexPolyEffect.h
@@ -61,6 +61,11 @@ public:
*/
static GrEffectRef* Create(EdgeType, const SkPath&);
+ /**
+ * Creates an effect that clips against the rect.
+ */
+ static GrEffectRef* Create(EdgeType, const SkRect&);
+
virtual ~GrConvexPolyEffect();
static const char* Name() { return "ConvexPoly"; }

Powered by Google App Engine
This is Rietveld 408576698