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

Unified Diff: ui/gfx/canvas.cc

Issue 771563003: use SkClipOps where we can, legacyClip where we need to rework Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 | « skia/ext/vector_canvas_unittest.cc ('k') | ui/ozone/platform/dri/dri_window_delegate_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/canvas.cc
diff --git a/ui/gfx/canvas.cc b/ui/gfx/canvas.cc
index c16a0872b400bcb63af173e2b25dbb6bb4db1930..fab4e00213d58fdd0f33ca75b3298705f168b266 100644
--- a/ui/gfx/canvas.cc
+++ b/ui/gfx/canvas.cc
@@ -203,7 +203,7 @@ void Canvas::ClipRect(const Rect& rect) {
}
void Canvas::ClipPath(const SkPath& path, bool do_anti_alias) {
- canvas_->clipPath(path, SkRegion::kIntersect_Op, do_anti_alias);
+ canvas_->clipPath(path, kIntersect_SkClipOp, do_anti_alias);
}
bool Canvas::IsClipEmpty() const {
« no previous file with comments | « skia/ext/vector_canvas_unittest.cc ('k') | ui/ozone/platform/dri/dri_window_delegate_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698