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

Unified Diff: ui/views/view.cc

Issue 1423653005: Further plumb visual rect into cc:DisplayItemList. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename layer_bounds to bounds_in_layer. Stop caching bounds in PaintCache. Created 5 years, 1 month 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/compositor/paint_recorder.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/view.cc
diff --git a/ui/views/view.cc b/ui/views/view.cc
index 0fc755972d6d57de055a7ea9d31fa11733eaf13b..f000abe74725ed433ce70bce5747059f0329422b 100644
--- a/ui/views/view.cc
+++ b/ui/views/view.cc
@@ -777,7 +777,7 @@ void View::Paint(const ui::PaintContext& parent_context) {
// If the view is backed by a layer, it should paint with itself as the origin
// rather than relative to its parent.
- ui::ClipTransformRecorder clip_transform_recorder(context);
+ ui::ClipTransformRecorder clip_transform_recorder(context, size());
if (!layer()) {
// Set the clip rect to the bounds of this View. Note that the X (or left)
// position we pass to ClipRect takes into consideration whether or not the
@@ -800,7 +800,7 @@ void View::Paint(const ui::PaintContext& parent_context) {
clip_transform_recorder.Transform(transform_from_parent);
}
- if (is_invalidated || !paint_cache_.UseCache(context)) {
+ if (is_invalidated || !paint_cache_.UseCache(context, size())) {
danakj 2015/11/18 22:23:14 can you leave a comment here saying that the cache
wkorman 2015/11/18 23:01:31 Done.
ui::PaintRecorder recorder(context, size(), &paint_cache_);
gfx::Canvas* canvas = recorder.canvas();
« no previous file with comments | « ui/compositor/paint_recorder.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698