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

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

Issue 1881603002: Added SetLayerTransform to PPAPI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added Graphics2D 1.2 to histograms Created 4 years, 8 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
Index: content/renderer/pepper/pepper_plugin_instance_impl.h
diff --git a/content/renderer/pepper/pepper_plugin_instance_impl.h b/content/renderer/pepper/pepper_plugin_instance_impl.h
index edc5dd28a26b269a66b18a21617c31de210d2232..da461798a5502d85b77b040a6e0bbc80c3ec0cb0 100644
--- a/content/renderer/pepper/pepper_plugin_instance_impl.h
+++ b/content/renderer/pepper/pepper_plugin_instance_impl.h
@@ -372,6 +372,9 @@ class CONTENT_EXPORT PepperPluginInstanceImpl
ContentDecryptorDelegate* GetContentDecryptorDelegate();
+ void SetGraphics2DTransform(const float& scale,
+ const gfx::PointF& translation);
+
// PluginInstance implementation
RenderView* GetRenderView() override;
blink::WebPluginContainer* GetContainer() override;
@@ -711,6 +714,10 @@ class CONTENT_EXPORT PepperPluginInstanceImpl
PP_Instance pp_instance_;
+ // These are the scale and the translation that will be applied to the layer.
+ gfx::PointF graphics2d_translation_;
+ float graphics2d_scale_;
+
// NULL until we have been initialized.
blink::WebPluginContainer* container_;
scoped_refptr<cc::Layer> compositor_layer_;
« no previous file with comments | « content/renderer/pepper/pepper_graphics_2d_host.cc ('k') | content/renderer/pepper/pepper_plugin_instance_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698