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

Unified Diff: third_party/WebKit/Source/platform/graphics/GraphicsContext.h

Issue 2575533002: SkClipOp is an enum class now (Closed)
Patch Set: Created 4 years 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: third_party/WebKit/Source/platform/graphics/GraphicsContext.h
diff --git a/third_party/WebKit/Source/platform/graphics/GraphicsContext.h b/third_party/WebKit/Source/platform/graphics/GraphicsContext.h
index cde5384814a73dddabd6835ed2ac4023145d75fd..08e3f5b02420238d29970db69a853eaf71556ed4 100644
--- a/third_party/WebKit/Source/platform/graphics/GraphicsContext.h
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsContext.h
@@ -224,22 +224,22 @@ class PLATFORM_EXPORT GraphicsContext {
void clip(const IntRect& rect) { clipRect(rect); }
void clip(const FloatRect& rect) { clipRect(rect); }
void clipRoundedRect(const FloatRoundedRect&,
- SkClipOp = kIntersect_SkClipOp,
+ SkClipOp = SkClipOp::kIntersect,
AntiAliasingMode = AntiAliased);
void clipOut(const IntRect& rect) {
- clipRect(rect, NotAntiAliased, kDifference_SkClipOp);
+ clipRect(rect, NotAntiAliased, SkClipOp::kDifference);
}
void clipOut(const FloatRect& rect) {
- clipRect(rect, NotAntiAliased, kDifference_SkClipOp);
+ clipRect(rect, NotAntiAliased, SkClipOp::kDifference);
}
void clipOut(const Path&);
void clipOutRoundedRect(const FloatRoundedRect&);
void clipPath(const SkPath&,
AntiAliasingMode = NotAntiAliased,
- SkClipOp = kIntersect_SkClipOp);
+ SkClipOp = SkClipOp::kIntersect);
void clipRect(const SkRect&,
AntiAliasingMode = NotAntiAliased,
- SkClipOp = kIntersect_SkClipOp);
+ SkClipOp = SkClipOp::kIntersect);
void drawText(const Font&, const TextRunPaintInfo&, const FloatPoint&);
void drawText(const Font&,
@@ -401,7 +401,7 @@ class PLATFORM_EXPORT GraphicsContext {
// SkCanvas wrappers.
void clipRRect(const SkRRect&,
AntiAliasingMode = NotAntiAliased,
- SkClipOp = kIntersect_SkClipOp);
+ SkClipOp = SkClipOp::kIntersect);
void concat(const SkMatrix&);
// Apply deferred paint state saves

Powered by Google App Engine
This is Rietveld 408576698