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

Unified Diff: cc/trees/property_tree_builder.cc

Issue 1848613002: Extract subpixel offsets from composited layer transforms when possible. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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/playback/raster_source.cc ('k') | third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/property_tree_builder.cc
diff --git a/cc/trees/property_tree_builder.cc b/cc/trees/property_tree_builder.cc
index befc6a514caddb485965811fa0c0d3e08bfd8a10..dd40d2f520f132c22f1157687625992f477ec880 100644
--- a/cc/trees/property_tree_builder.cc
+++ b/cc/trees/property_tree_builder.cc
@@ -239,6 +239,9 @@ bool AddTransformNodeIfNeeded(
const bool has_potentially_animated_transform =
layer->HasPotentiallyRunningTransformAnimation();
+ LOG(ERROR) << "AddTransformNodeIfNeeded: " << layer;
+
+
// A transform node is needed even for a finished animation, since differences
// in the timing of animation state updates can mean that an animation that's
// in the Finished state at tree-building time on the main thread is still in
@@ -322,6 +325,8 @@ bool AddTransformNodeIfNeeded(
}
layer->set_offset_to_transform_parent(source_offset + source_to_parent +
local_offset);
+ LOG(ERROR) << "subpixel offset: " << layer->subpixel_offset_.ToString();
+ LOG(ERROR) << "set_offset_to_transform_parent: " << layer << ": " << layer->offset_to_transform_parent().ToString() << ": " << layer->transform().To2dTranslation().ToString();
layer->set_should_flatten_transform_from_property_tree(
data_from_ancestor.should_flatten);
layer->SetTransformTreeIndex(parent_index);
« no previous file with comments | « cc/playback/raster_source.cc ('k') | third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698