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

Unified Diff: ui/compositor/transform_recorder.cc

Issue 1494223003: cc: Shrink size of display item (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix some compilation issues in ui oops 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_recorder.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/transform_recorder.cc
diff --git a/ui/compositor/transform_recorder.cc b/ui/compositor/transform_recorder.cc
index 77448fde65800fed84b3cf6f1d1c6227e6e2080b..5867a54b57ba54d38eeb6e9cec6effd94ad8f507 100644
--- a/ui/compositor/transform_recorder.cc
+++ b/ui/compositor/transform_recorder.cc
@@ -23,9 +23,8 @@ void TransformRecorder::Transform(const gfx::Transform& transform,
const gfx::Size& size_in_context) {
DCHECK(!transformed_);
bounds_in_layer_ = context_.ToLayerSpaceBounds(size_in_context);
- auto* item = context_.list_->CreateAndAppendItem<cc::TransformDisplayItem>(
- bounds_in_layer_);
- item->SetNew(transform);
+ context_.list_->CreateAndAppendItem<cc::TransformDisplayItem>(
+ bounds_in_layer_, transform);
transformed_ = true;
}
« 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