Chromium Code Reviews| Index: content/browser/renderer_host/render_widget_host_impl.cc |
| diff --git a/content/browser/renderer_host/render_widget_host_impl.cc b/content/browser/renderer_host/render_widget_host_impl.cc |
| index 6a449ce880a8d581b2e8849a8de15be4b947709f..0c0c5158a557ca413149237a0736fd85f0675db8 100644 |
| --- a/content/browser/renderer_host/render_widget_host_impl.cc |
| +++ b/content/browser/renderer_host/render_widget_host_impl.cc |
| @@ -1828,6 +1828,20 @@ void RenderWidgetHostImpl::AcknowledgePostSubBuffer(int32 route_id, |
| ui_shim->Send(new AcceleratedSurfaceMsg_PostSubBufferACK(route_id)); |
| } |
| +#if defined(USE_AURA) |
| +// 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) |
|
piman
2012/06/12 23:05:12
nit: braces around body
|
| + ui_shim->Send(new AcceleratedSurfaceMsg_SetFrontSurfaceIsProtected( |
| + route_id, is_protected, protection_state_id)); |
| +} |
| +#endif |
| + |
| void RenderWidgetHostImpl::DelayedAutoResized() { |
| gfx::Size new_size = new_auto_size_; |
| // Clear the new_auto_size_ since the empty value is used as a flag to |