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

Unified Diff: gm/pathopsinverse.cpp

Issue 1037573004: cumulative pathops patch (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix pathopsinverse gm Created 5 years, 9 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 | « no previous file | gyp/core.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/pathopsinverse.cpp
diff --git a/gm/pathopsinverse.cpp b/gm/pathopsinverse.cpp
index 4b87778619c72d1032472ef3742392275a7905b5..476eda199159bfe8fd683090ca62cc3572bc9bf6 100644
--- a/gm/pathopsinverse.cpp
+++ b/gm/pathopsinverse.cpp
@@ -25,11 +25,11 @@ protected:
SkColor blendColor = blend(oneColor, twoColor);
makePaint(&fOnePaint, oneColor);
makePaint(&fTwoPaint, twoColor);
- makePaint(&fOpPaint[kDifference_PathOp], oneColor);
- makePaint(&fOpPaint[kIntersect_PathOp], blendColor);
- makePaint(&fOpPaint[kUnion_PathOp], 0xFFc0FFc0);
- makePaint(&fOpPaint[kReverseDifference_PathOp], twoColor);
- makePaint(&fOpPaint[kXOR_PathOp], 0xFFa0FFe0);
+ makePaint(&fOpPaint[kDifference_SkPathOp], oneColor);
+ makePaint(&fOpPaint[kIntersect_SkPathOp], blendColor);
+ makePaint(&fOpPaint[kUnion_SkPathOp], 0xFFc0FFc0);
+ makePaint(&fOpPaint[kReverseDifference_SkPathOp], twoColor);
+ makePaint(&fOpPaint[kXOR_SkPathOp], 0xFFa0FFe0);
makePaint(&fOutlinePaint, 0xFF000000);
fOutlinePaint.setStyle(SkPaint::kStroke_Style);
}
@@ -82,7 +82,7 @@ protected:
canvas->drawPath(two, fOutlinePaint);
canvas->restore();
int xPos = 150;
- for (int op = kDifference_PathOp; op <= kReverseDifference_PathOp; ++op) {
+ for (int op = kDifference_SkPathOp; op <= kReverseDifference_SkPathOp; ++op) {
SkPath result;
Op(one, two, (SkPathOp) op, &result);
canvas->save();
@@ -102,7 +102,7 @@ private:
SkPaint fOnePaint;
SkPaint fTwoPaint;
SkPaint fOutlinePaint;
- SkPaint fOpPaint[kReverseDifference_PathOp - kDifference_PathOp + 1];
+ SkPaint fOpPaint[kReverseDifference_SkPathOp - kDifference_SkPathOp + 1];
typedef GM INHERITED;
};
« no previous file with comments | « no previous file | gyp/core.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698