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

Unified Diff: content/plugin/webplugin_proxy.h

Issue 8678037: Render Core Animation plugins through WebKit's compositor rather than (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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/plugin/webplugin_proxy.h
===================================================================
--- content/plugin/webplugin_proxy.h (revision 111400)
+++ content/plugin/webplugin_proxy.h (working copy)
@@ -136,11 +136,14 @@
virtual void StartIme() OVERRIDE;
- virtual void BindFakePluginWindowHandle(bool opaque) OVERRIDE;
-
virtual webkit::npapi::WebPluginAcceleratedSurface*
GetAcceleratedSurface(gfx::GpuPreference gpu_preference) OVERRIDE;
+ //----------------------------------------------------------------------
+ // Legacy Core Animation plugin implementation rendering directly to screen.
+
+ virtual void BindFakePluginWindowHandle(bool opaque) OVERRIDE;
+
// Tell the browser (via the renderer) to invalidate because the
// accelerated buffers have changed.
virtual void AcceleratedFrameBuffersDidSwap(
@@ -168,6 +171,20 @@
virtual void AllocSurfaceDIB(const size_t size,
TransportDIB::Handle* dib_handle);
virtual void FreeSurfaceDIB(TransportDIB::Id dib_id);
+
+ //----------------------------------------------------------------------
+ // New accelerated plugin implementation which renders via the compositor.
+
+ // Tells the renderer, and from there the GPU process, that the plugin
+ // is using accelerated rather than software rendering.
+ virtual void AcceleratedPluginEnabledRendering();
+
+ // Tells the renderer, and from there the GPU process, that the plugin
+ // allocated the given IOSurface to be used as its backing store.
+ virtual void AcceleratedPluginAllocatedIOSurface(int32 width,
+ int32 height,
+ uint32 surface_id);
+ virtual void AcceleratedPluginSwappedIOSurface();
#endif
virtual void URLRedirectResponse(bool allow, int resource_id) OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698