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

Unified Diff: cc/resources/content_layer_updater.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 | « cc/resources/clip_display_item.cc ('k') | cc/resources/display_list_raster_source.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/content_layer_updater.cc
diff --git a/cc/resources/content_layer_updater.cc b/cc/resources/content_layer_updater.cc
index 206d76ba2ff82daed1548da7215d5b17dc8d90c1..07d7b2ecc99277cdba855700d2cb9e6e5c0096ff 100644
--- a/cc/resources/content_layer_updater.cc
+++ b/cc/resources/content_layer_updater.cc
@@ -63,10 +63,10 @@ void ContentLayerUpdater::PaintContents(SkCanvas* canvas,
DCHECK_LE(paint_rect.right(), layer_content_rect.right());
DCHECK_LE(paint_rect.bottom(), layer_content_rect.bottom());
canvas->save();
- canvas->clipRect(gfx::RectToSkRect(layer_content_rect),
- SkRegion::kReplace_Op);
+ canvas->legacyClipRect(gfx::RectToSkRect(layer_content_rect),
+ SkRegion::kReplace_Op);
canvas->clipRect(gfx::RectToSkRect(deflated_layer_content_rect),
- SkRegion::kDifference_Op);
+ kDifference_SkClipOp);
canvas->drawColor(background_color_, SkXfermode::kSrc_Mode);
canvas->restore();
}
« no previous file with comments | « cc/resources/clip_display_item.cc ('k') | cc/resources/display_list_raster_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698