| Index: content/browser/renderer_host/render_widget_host_impl.cc
|
| ===================================================================
|
| --- content/browser/renderer_host/render_widget_host_impl.cc (revision 171661)
|
| +++ content/browser/renderer_host/render_widget_host_impl.cc (working copy)
|
| @@ -1530,7 +1530,7 @@
|
| if (!view_) {
|
| RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id,
|
| gpu_process_host_id,
|
| - surface_handle,
|
| + false,
|
| 0);
|
| return;
|
| }
|
| @@ -2310,11 +2310,11 @@
|
|
|
| // static
|
| void RenderWidgetHostImpl::AcknowledgeBufferPresent(
|
| - int32 route_id, int gpu_host_id, uint64 surface_handle, uint32 sync_point) {
|
| + int32 route_id, int gpu_host_id, bool presented, uint32 sync_point) {
|
| GpuProcessHostUIShim* ui_shim = GpuProcessHostUIShim::FromID(gpu_host_id);
|
| if (ui_shim)
|
| ui_shim->Send(new AcceleratedSurfaceMsg_BufferPresented(route_id,
|
| - surface_handle,
|
| + presented,
|
| sync_point));
|
| }
|
|
|
| @@ -2337,6 +2337,18 @@
|
| #endif
|
| }
|
|
|
| +// static
|
| +void RenderWidgetHostImpl::SendFrontSurfaceIsProtected(
|
| + bool is_protected,
|
| + uint32 protection_state_id,
|
| + int32 route_id,
|
| + int gpu_host_id) {
|
| + GpuProcessHostUIShim* ui_shim = GpuProcessHostUIShim::FromID(gpu_host_id);
|
| + if (ui_shim) {
|
| + ui_shim->Send(new AcceleratedSurfaceMsg_SetFrontSurfaceIsProtected(
|
| + route_id, is_protected, protection_state_id));
|
| + }
|
| +}
|
| #endif
|
|
|
| void RenderWidgetHostImpl::DelayedAutoResized() {
|
|
|