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

Unified Diff: content/renderer/pepper/pepper_plugin_instance_impl.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 | « content/renderer/pepper/pepper_graphics_2d_host.cc ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/pepper/pepper_plugin_instance_impl.cc
diff --git a/content/renderer/pepper/pepper_plugin_instance_impl.cc b/content/renderer/pepper/pepper_plugin_instance_impl.cc
index 8a9d98553abea982d104307b179400b6c3c3990e..b4690b0d97ee85c7352984782cdb0a4e6347d7fd 100644
--- a/content/renderer/pepper/pepper_plugin_instance_impl.cc
+++ b/content/renderer/pepper/pepper_plugin_instance_impl.cc
@@ -1523,7 +1523,7 @@ void PepperPluginInstanceImpl::UpdateLayerTransform() {
// plugin to be rendered, then flickering behavior occurs as in
// crbug.com/353453.
gfx::SizeF graphics_2d_size_in_dip =
- gfx::ScaleSize(bound_graphics_2d_platform_->Size(),
+ gfx::ScaleSize(gfx::SizeF(bound_graphics_2d_platform_->Size()),
bound_graphics_2d_platform_->GetScale());
gfx::Size plugin_size_in_dip(view_data_.rect.size.width,
view_data_.rect.size.height);
« no previous file with comments | « content/renderer/pepper/pepper_graphics_2d_host.cc ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698