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

Unified Diff: ui/compositor/paint_recorder.cc

Issue 1521373005: Revert of cc: Shrink size of display item (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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_cache.cc ('k') | ui/compositor/transform_recorder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/paint_recorder.cc
diff --git a/ui/compositor/paint_recorder.cc b/ui/compositor/paint_recorder.cc
index fef53c8a1969c5f4d11a60fa9fda8736a6996406..b3d497b2fa361c60ca7542199011b22aff549ca4 100644
--- a/ui/compositor/paint_recorder.cc
+++ b/ui/compositor/paint_recorder.cc
@@ -41,10 +41,10 @@
#if DCHECK_IS_ON()
context_.inside_paint_recorder_ = false;
#endif
- const auto& item =
- context_.list_->CreateAndAppendItem<cc::DrawingDisplayItem>(
- bounds_in_layer_,
- skia::AdoptRef(context_.recorder_->endRecordingAsPicture()));
+
+ auto* item = context_.list_->CreateAndAppendItem<cc::DrawingDisplayItem>(
+ bounds_in_layer_);
+ item->SetNew(skia::AdoptRef(context_.recorder_->endRecordingAsPicture()));
if (cache_)
cache_->SetCache(item);
}
« no previous file with comments | « ui/compositor/paint_cache.cc ('k') | ui/compositor/transform_recorder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698