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

Unified Diff: content/common/gpu/gpu_messages.h

Issue 712343003: Infrastructure for temportarily relinquishing GPU resources. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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/common/gpu/gpu_messages.h
diff --git a/content/common/gpu/gpu_messages.h b/content/common/gpu/gpu_messages.h
index 839de2d55a966c6ffa14103d08ecc30aee75f7b0..ede746d43e89c072a31e361bc2aeb6ca643d26a9 100644
--- a/content/common/gpu/gpu_messages.h
+++ b/content/common/gpu/gpu_messages.h
@@ -301,6 +301,11 @@ IPC_MESSAGE_CONTROL0(GpuMsg_DisableWatchdog)
// Tells the GPU process that the browser has seen a GPU switch.
IPC_MESSAGE_CONTROL0(GpuMsg_GpuSwitched)
+// Tells the GPU process to relinquish the display to an external process.
+// Creating a new surface will automatically re-acquire the display.
+IPC_MESSAGE_CONTROL0(GpuMsg_RelinquishDisplay)
+IPC_MESSAGE_CONTROL0(GpuMsg_DeleteDefaultOffscreenSurface)
+
//------------------------------------------------------------------------------
// GPU Host Messages
// These are messages to the browser.
@@ -402,6 +407,10 @@ IPC_MESSAGE_CONTROL1(GpuHostMsg_DidDestroyOffscreenContext,
IPC_MESSAGE_CONTROL1(GpuHostMsg_GpuMemoryUmaStats,
content::GPUMemoryUmaStats /* GPU memory UMA stats */)
+// Response to GpuMsg_RelinquishDisplay
+IPC_MESSAGE_CONTROL1(GpuHostMsg_ResourceRelinquished,
+ bool /* success */)
+
//------------------------------------------------------------------------------
// GPU Channel Messages
// These are messages from a renderer process to the GPU process.

Powered by Google App Engine
This is Rietveld 408576698