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

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

Issue 1964423003: Apply viewport to dip scale to Graphics2D, Compositor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed comments Created 4 years, 7 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') | 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 120a266411ddb06b6f9b603d19c19fd58d13cb2f..5e2c21127a2579d58fa45744e399aff650e299f8 100644
--- a/content/renderer/pepper/pepper_plugin_instance_impl.cc
+++ b/content/renderer/pepper/pepper_plugin_instance_impl.cc
@@ -1652,6 +1652,13 @@ void PepperPluginInstanceImpl::SendDidChangeView() {
if (module()->is_crashed())
return;
+ if (bound_compositor_)
+ bound_compositor_->set_viewport_to_dip_scale(viewport_to_dip_scale_);
+
+ if (bound_graphics_2d_platform_)
+ bound_graphics_2d_platform_->set_viewport_to_dip_scale(
+ viewport_to_dip_scale_);
+
// During the first view update, initialize the throttler.
if (!sent_initial_did_change_view_) {
if (is_flash_plugin_ && RenderThread::Get()) {
« no previous file with comments | « content/renderer/pepper/pepper_graphics_2d_host.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698