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

Unified Diff: cc/trees/property_tree_builder.cc

Issue 1357423009: gfx: Make conversions from Size to SizeF be explicit. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sizefconvert-gfx: . Created 5 years, 3 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/trees/layer_tree_impl_unittest.cc ('k') | chrome/browser/android/compositor/layer/thumbnail_layer.cc » ('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 36d74684d7ac68430b0e2df5b542dabcb55d74de..a38ec2d8aca7406619e8a511612126ed04cb85e3 100644
--- a/cc/trees/property_tree_builder.cc
+++ b/cc/trees/property_tree_builder.cc
@@ -136,8 +136,9 @@ void AddClipNodeIfNeeded(const DataForRecursion<LayerType>& data_from_ancestor,
transform_parent = data_for_children->transform_fixed_parent;
}
ClipNode node;
- node.data.clip = gfx::RectF(
- gfx::PointF() + layer->offset_to_transform_parent(), layer->bounds());
+ node.data.clip =
+ gfx::RectF(gfx::PointF() + layer->offset_to_transform_parent(),
+ gfx::SizeF(layer->bounds()));
node.data.transform_id = transform_parent->transform_tree_index();
node.data.target_id =
data_for_children->effect_tree->Node(data_for_children->render_target)
« no previous file with comments | « cc/trees/layer_tree_impl_unittest.cc ('k') | chrome/browser/android/compositor/layer/thumbnail_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698