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

Unified Diff: cc/layers/layer.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/layers/heads_up_display_layer_impl.cc ('k') | cc/layers/layer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer.cc
diff --git a/cc/layers/layer.cc b/cc/layers/layer.cc
index 62362f54e8b878b56678b3c091a91b39dba18c99..2185fd6fc1aa51b7985fc3d8f80d49cd049e21ea 100644
--- a/cc/layers/layer.cc
+++ b/cc/layers/layer.cc
@@ -357,7 +357,7 @@ void Layer::SetBounds(const gfx::Size& size) {
if (ClipNode* clip_node = layer_tree_host_->property_trees()->clip_tree.Node(
clip_tree_index())) {
if (clip_node->owner_id == id()) {
- clip_node->data.clip.set_size(size);
+ clip_node->data.clip.set_size(gfx::SizeF(size));
layer_tree_host_->property_trees()->clip_tree.set_needs_update(true);
}
}
« no previous file with comments | « cc/layers/heads_up_display_layer_impl.cc ('k') | cc/layers/layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698