| 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) {
|
|
|