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

Unified Diff: cc/resources/picture_pile_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 | « cc/resources/picture.cc ('k') | cc/resources/raster_source_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/picture_pile_impl.cc
diff --git a/cc/resources/picture_pile_impl.cc b/cc/resources/picture_pile_impl.cc
index 93d84c1ba1dd60cef4657bf5fa8ce9f9efdd0af3..f5725524731fcf7f8127a72befea323c4386b91d 100644
--- a/cc/resources/picture_pile_impl.cc
+++ b/cc/resources/picture_pile_impl.cc
@@ -204,8 +204,7 @@ void PicturePileImpl::RasterCommon(
gfx::ScaleRect(gfx::Rect(tiling_.tiling_size()), contents_scale));
content_tiling_rect.Intersect(canvas_rect);
- canvas->clipRect(gfx::RectToSkRect(content_tiling_rect),
- SkRegion::kIntersect_Op);
+ canvas->clipRect(gfx::RectToSkRect(content_tiling_rect), kIntersect_SkClipOp);
PictureRegionMap picture_region_map;
CoalesceRasters(
@@ -243,7 +242,7 @@ void PicturePileImpl::RasterCommon(
// pictures.
SkPaint paint;
for (Region::Iterator it(total_clip); it.has_rect(); it.next())
- canvas->clipRect(gfx::RectToSkRect(it.rect()), SkRegion::kDifference_Op);
+ canvas->clipRect(gfx::RectToSkRect(it.rect()), kDifference_SkClipOp);
paint.setColor(DebugColors::MissingPictureFillColor());
paint.setXfermodeMode(SkXfermode::kSrc_Mode);
canvas->drawPaint(paint);
« no previous file with comments | « cc/resources/picture.cc ('k') | cc/resources/raster_source_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698