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

Unified Diff: cc/playback/clip_display_item.cc

Issue 1566193002: Always antialias clips in ClipDisplayItem. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 | « no previous file | third_party/WebKit/Source/platform/graphics/GraphicsContext.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/playback/clip_display_item.cc
diff --git a/cc/playback/clip_display_item.cc b/cc/playback/clip_display_item.cc
index 90b8904c7db134eaf544fef245fecf382fc7c5e0..60a28da837f6912a106bddeb36a02ba05a2f5df1 100644
--- a/cc/playback/clip_display_item.cc
+++ b/cc/playback/clip_display_item.cc
@@ -62,14 +62,14 @@ void ClipDisplayItem::Raster(SkCanvas* canvas,
SkPicture::AbortCallback* callback) const {
canvas->save();
canvas->clipRect(SkRect::MakeXYWH(clip_rect_.x(), clip_rect_.y(),
- clip_rect_.width(), clip_rect_.height()));
+ clip_rect_.width(), clip_rect_.height()),
+ SkRegion::kIntersect_Op, true);
ajuma 2016/01/08 14:15:04 Please use a variable for the bool rather than jus
chrishtr 2016/01/12 23:43:14 Done
for (size_t i = 0; i < rounded_clip_rects_.size(); ++i) {
if (rounded_clip_rects_[i].isRect()) {
- canvas->clipRect(rounded_clip_rects_[i].rect());
+ canvas->clipRect(rounded_clip_rects_[i].rect(), SkRegion::kIntersect_Op,
+ true);
} else {
- bool antialiased = true;
- canvas->clipRRect(rounded_clip_rects_[i], SkRegion::kIntersect_Op,
- antialiased);
+ canvas->clipRRect(rounded_clip_rects_[i], SkRegion::kIntersect_Op, true);
}
}
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/graphics/GraphicsContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698