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

Unified Diff: content/browser/gpu/gpu_process_host_ui_shim.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: Renaming messages. Updated the other platforms. Created 8 years, 8 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/gpu/gpu_process_host_ui_shim.cc
diff --git a/content/browser/gpu/gpu_process_host_ui_shim.cc b/content/browser/gpu/gpu_process_host_ui_shim.cc
index bf62796f02398039d9960a6b18b3fdba1bef0358..e29d332d27d46d6349abbc00621488dd247a28b3 100644
--- a/content/browser/gpu/gpu_process_host_ui_shim.cc
+++ b/content/browser/gpu/gpu_process_host_ui_shim.cc
@@ -216,6 +216,8 @@ bool GpuProcessHostUIShim::OnControlMessageReceived(
#if defined(USE_AURA)
IPC_MESSAGE_HANDLER(GpuHostMsg_AcceleratedSurfaceRelease,
OnAcceleratedSurfaceRelease)
+ IPC_MESSAGE_HANDLER(GpuHostMsg_AcceleratedSurfaceSuggestDiscard,
+ OnAcceleratedSurfaceSuggestDiscard)
#endif
IPC_MESSAGE_UNHANDLED_ERROR()
@@ -394,4 +396,15 @@ void GpuProcessHostUIShim::OnAcceleratedSurfaceRelease(
view->AcceleratedSurfaceRelease(params.identifier);
}
+void GpuProcessHostUIShim::OnAcceleratedSurfaceSuggestDiscard(
+ const GpuHostMsg_AcceleratedSurfaceSuggestDiscard_Params& params) {
+ RenderWidgetHostViewPort* view = GetRenderWidgetHostViewFromSurfaceID(
+ params.surface_id);
+ if (!view)
+ return;
+ view->AcceleratedSurfaceSuggestDiscard(params.identifier,
+ params.route_id,
+ host_id_);
+}
+
#endif

Powered by Google App Engine
This is Rietveld 408576698