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

Unified Diff: content/plugin/webplugin_proxy.cc

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.cc
===================================================================
--- content/plugin/webplugin_proxy.cc (revision 111400)
+++ content/plugin/webplugin_proxy.cc (working copy)
@@ -677,8 +677,8 @@
WebPluginAcceleratedSurface* WebPluginProxy::GetAcceleratedSurface(
gfx::GpuPreference gpu_preference) {
if (!accelerated_surface_.get())
- accelerated_surface_.reset(new WebPluginAcceleratedSurfaceProxy(
- this, gpu_preference));
+ accelerated_surface_.reset(
+ WebPluginAcceleratedSurfaceProxy::Create(this, gpu_preference));
return accelerated_surface_.get();
}
@@ -713,6 +713,22 @@
void WebPluginProxy::FreeSurfaceDIB(TransportDIB::Id dib_id) {
Send(new PluginHostMsg_FreeTransportDIB(route_id_, dib_id));
}
+
+void WebPluginProxy::AcceleratedPluginEnabledRendering() {
+ Send(new PluginHostMsg_AcceleratedPluginEnabledRendering(route_id_));
+}
+
+void WebPluginProxy::AcceleratedPluginAllocatedIOSurface(int32 width,
+ int32 height,
+ uint32 surface_id) {
+ Send(new PluginHostMsg_AcceleratedPluginAllocatedIOSurface(
+ route_id_, width, height, surface_id));
+}
+
+void WebPluginProxy::AcceleratedPluginSwappedIOSurface() {
+ Send(new PluginHostMsg_AcceleratedPluginSwappedIOSurface(
+ route_id_));
+}
#endif
void WebPluginProxy::OnPaint(const gfx::Rect& damaged_rect) {

Powered by Google App Engine
This is Rietveld 408576698