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

Unified Diff: ui/ozone/platform/dri/dri_window_delegate_impl.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 | « ui/gfx/canvas.cc ('k') | ui/views/bubble/bubble_border.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/dri/dri_window_delegate_impl.cc
diff --git a/ui/ozone/platform/dri/dri_window_delegate_impl.cc b/ui/ozone/platform/dri/dri_window_delegate_impl.cc
index fd39e9154f98f6ae068d10538260ab1dc56d05e8..2d90d4ffbb5888def3546ea2ef34cc80a6cda795 100644
--- a/ui/ozone/platform/dri/dri_window_delegate_impl.cc
+++ b/ui/ozone/platform/dri/dri_window_delegate_impl.cc
@@ -35,7 +35,7 @@ void UpdateCursorImage(DriBuffer* cursor, const SkBitmap& image) {
SkRect clip;
clip.set(0, 0, canvas->getDeviceSize().width(),
canvas->getDeviceSize().height());
- canvas->clipRect(clip, SkRegion::kReplace_Op);
+ canvas->legacyClipRect(clip, SkRegion::kReplace_Op);
canvas->drawBitmapRectToRect(image, &damage, damage);
}
« no previous file with comments | « ui/gfx/canvas.cc ('k') | ui/views/bubble/bubble_border.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698