Index: gm/convexpolyclip.cpp |
diff --git a/gm/convexpolyclip.cpp b/gm/convexpolyclip.cpp |
index 9681faadf3299ab54c92d0b4243cce6487b1584f..511695502187834c07cf36785d4299a8066d0870 100644 |
--- a/gm/convexpolyclip.cpp |
+++ b/gm/convexpolyclip.cpp |
@@ -173,7 +173,7 @@ protected: |
canvas->save(); |
} |
canvas->translate(x, y); |
- clip->setOnCanvas(canvas, SkRegion::kIntersect_Op, SkToBool(aa)); |
+ clip->setOnCanvas(canvas, SkCanvas::kIntersect_Op, SkToBool(aa)); |
canvas->drawBitmap(fBmp, 0, 0); |
canvas->restore(); |
x += fBmp.width() + kMargin; |
@@ -199,7 +199,7 @@ protected: |
SkPath closedClipPath; |
clip->asClosedPath(&closedClipPath); |
canvas->drawPath(closedClipPath, clipOutlinePaint); |
- clip->setOnCanvas(canvas, SkRegion::kIntersect_Op, SkToBool(aa)); |
+ clip->setOnCanvas(canvas, SkCanvas::kIntersect_Op, SkToBool(aa)); |
canvas->scale(1.f, 1.8f); |
canvas->drawText(kTxt, SK_ARRAY_COUNT(kTxt)-1, |
0, 1.5f * txtPaint.getTextSize(), |
@@ -227,7 +227,7 @@ private: |
Clip () : fClipType(kNone_ClipType) {} |
- void setOnCanvas(SkCanvas* canvas, SkRegion::Op op, bool aa) const { |
+ void setOnCanvas(SkCanvas* canvas, SkCanvas::ClipOp op, bool aa) const { |
switch (fClipType) { |
case kPath_ClipType: |
canvas->clipPath(fPath, op, aa); |