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

Unified Diff: content/renderer/pepper/pepper_plugin_instance_impl.cc

Issue 2262323002: Update viewport_to_dip_scale on bound compositor host (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « no previous file | no next file » | 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 5607f6cc418db84c4705234bfe0c6f47c17f7dbf..c72ea8d8987d32c2f7266807be8ad36ffe5849b4 100644
--- a/content/renderer/pepper/pepper_plugin_instance_impl.cc
+++ b/content/renderer/pepper/pepper_plugin_instance_impl.cc
@@ -2351,12 +2351,15 @@ PP_Bool PepperPluginInstanceImpl::BindGraphics(PP_Instance instance,
if (compositor) {
if (compositor->BindToInstance(this)) {
oshima 2016/08/23 22:25:49 +bbudge@ (owner) I feel it's better to do this in
bbudge 2016/08/23 23:32:39 I might not understand the comment, but this seems
bound_compositor_ = compositor;
+ bound_compositor_->set_viewport_to_dip_scale(viewport_to_dip_scale_);
UpdateLayer(true);
return PP_TRUE;
}
} else if (graphics_2d) {
if (graphics_2d->BindToInstance(this)) {
bound_graphics_2d_platform_ = graphics_2d;
+ bound_graphics_2d_platform_->set_viewport_to_dip_scale(
+ viewport_to_dip_scale_);
UpdateLayer(true);
return PP_TRUE;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698