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

Unified Diff: gm/rrects.cpp

Issue 183893023: Unify edge type enums across GrEffect subclasses that clip rendering to a geometry. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: tot again 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
« no previous file with comments | « gm/convexpolyeffect.cpp ('k') | include/gpu/GrTypesPriv.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/rrects.cpp
diff --git a/gm/rrects.cpp b/gm/rrects.cpp
index d92fb5a9126a6b37a09adb195a22ebf4a7610c19..7bc7c199b0a35098a9a82b534bde15f50cf3ff7b 100644
--- a/gm/rrects.cpp
+++ b/gm/rrects.cpp
@@ -77,7 +77,7 @@ protected:
return;
}
if (kEffect_Type == fType) {
- numRRects *= GrRRectEffect::kEdgeTypeCnt;
+ numRRects *= kGrEffectEdgeTypeCnt;
}
#endif
@@ -111,8 +111,7 @@ protected:
SkRRect rrect = fRRects[rrectIdx];
rrect.offset(SkIntToScalar(x), SkIntToScalar(y));
- GrRRectEffect::EdgeType edgeType = (GrRRectEffect::EdgeType)
- (curRRect / kNumRRects);
+ GrEffectEdgeType edgeType = (GrEffectEdgeType) (curRRect / kNumRRects);
SkAutoTUnref<GrEffectRef> effect(GrRRectEffect::Create(edgeType, rrect));
if (effect) {
drawState->addCoverageEffect(effect);
« no previous file with comments | « gm/convexpolyeffect.cpp ('k') | include/gpu/GrTypesPriv.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698