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

Unified Diff: ui/compositor/clip_recorder.cc

Issue 2090203002: Remove antialiasing from views bounds rects. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: std::max is bad apparently Created 4 years, 6 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/proto/display_item.proto ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/clip_recorder.cc
diff --git a/ui/compositor/clip_recorder.cc b/ui/compositor/clip_recorder.cc
index 164bd799b234d674506c24303d23af7c27fd46da..d2078f5f863eed5c209370ca1cf7adc3e21b523c 100644
--- a/ui/compositor/clip_recorder.cc
+++ b/ui/compositor/clip_recorder.cc
@@ -47,27 +47,28 @@ static gfx::Rect PathToEnclosingRect(const gfx::Path& path) {
}
void ClipRecorder::ClipRect(const gfx::Rect& clip_rect) {
+ bool antialias = false;
gfx::Rect clip_in_layer_space = context_.ToLayerSpaceRect(clip_rect);
context_.list_->CreateAndAppendItem<cc::ClipDisplayItem>(
- clip_in_layer_space, clip_rect, std::vector<SkRRect>());
+ clip_in_layer_space, clip_rect, std::vector<SkRRect>(), antialias);
RecordCloser(clip_in_layer_space, CLIP_RECT);
}
void ClipRecorder::ClipPath(const gfx::Path& clip_path) {
- bool anti_alias = false;
+ bool antialias = false;
gfx::Rect clip_in_layer_space =
context_.ToLayerSpaceRect(PathToEnclosingRect(clip_path));
context_.list_->CreateAndAppendItem<cc::ClipPathDisplayItem>(
- clip_in_layer_space, clip_path, SkRegion::kIntersect_Op, anti_alias);
+ clip_in_layer_space, clip_path, SkRegion::kIntersect_Op, antialias);
RecordCloser(clip_in_layer_space, CLIP_PATH);
}
void ClipRecorder::ClipPathWithAntiAliasing(const gfx::Path& clip_path) {
- bool anti_alias = true;
+ bool antialias = true;
gfx::Rect clip_in_layer_space =
context_.ToLayerSpaceRect(PathToEnclosingRect(clip_path));
context_.list_->CreateAndAppendItem<cc::ClipPathDisplayItem>(
- clip_in_layer_space, clip_path, SkRegion::kIntersect_Op, anti_alias);
+ clip_in_layer_space, clip_path, SkRegion::kIntersect_Op, antialias);
RecordCloser(clip_in_layer_space, CLIP_PATH);
}
« no previous file with comments | « cc/proto/display_item.proto ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698