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

Unified Diff: content/browser/renderer_host/render_widget_host_impl.cc

Issue 10052018: Drop frontbuffers with ui-use-gpu-process, synchronized with browser, decoupled from backbuffer dro… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 6 months 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/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

Powered by Google App Engine
This is Rietveld 408576698