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

Unified Diff: ui/compositor/transform_recorder.cc

Issue 2230513005: Move visual rect unioning between paired items to cc::DisplayItemList. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Code review feedback. Created 4 years, 4 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 | « ui/compositor/transform_recorder.h ('k') | ui/views/view.cc » ('j') | 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 5867a54b57ba54d38eeb6e9cec6effd94ad8f507..cdacadb9810d8605ac5e10499845723e9572dd78 100644
--- a/ui/compositor/transform_recorder.cc
+++ b/ui/compositor/transform_recorder.cc
@@ -15,16 +15,13 @@ TransformRecorder::TransformRecorder(const PaintContext& context)
TransformRecorder::~TransformRecorder() {
if (transformed_)
- context_.list_->CreateAndAppendItem<cc::EndTransformDisplayItem>(
- bounds_in_layer_);
+ context_.list_->CreateAndAppendPairedEndItem<cc::EndTransformDisplayItem>();
}
-void TransformRecorder::Transform(const gfx::Transform& transform,
- const gfx::Size& size_in_context) {
+void TransformRecorder::Transform(const gfx::Transform& transform) {
DCHECK(!transformed_);
- bounds_in_layer_ = context_.ToLayerSpaceBounds(size_in_context);
- context_.list_->CreateAndAppendItem<cc::TransformDisplayItem>(
- bounds_in_layer_, transform);
+ context_.list_->CreateAndAppendPairedBeginItem<cc::TransformDisplayItem>(
+ transform);
transformed_ = true;
}
« no previous file with comments | « ui/compositor/transform_recorder.h ('k') | ui/views/view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698