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

Unified Diff: ui/ozone/common/gpu/ozone_gpu_messages.h

Issue 712343003: Infrastructure for temportarily relinquishing GPU resources. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make callback optional. Other changes suggested by jbauman and spang 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: ui/ozone/common/gpu/ozone_gpu_messages.h
diff --git a/ui/ozone/common/gpu/ozone_gpu_messages.h b/ui/ozone/common/gpu/ozone_gpu_messages.h
index c98f153e44ada833921355919f3406042141e0c0..fa83cdf02edd0117a6b435e6be05de261b3385f0 100644
--- a/ui/ozone/common/gpu/ozone_gpu_messages.h
+++ b/ui/ozone/common/gpu/ozone_gpu_messages.h
@@ -99,6 +99,10 @@ IPC_MESSAGE_CONTROL0(OzoneGpuMsg_TakeDisplayControl)
// Let other entity control the display
IPC_MESSAGE_CONTROL0(OzoneGpuMsg_RelinquishDisplayControl)
+// 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(OzoneGpuMsg_RelinquishDisplay)
piman 2014/11/18 20:55:34 Where is the code that uses this new message?
GusFernandez 2014/11/19 18:50:13 This and OzoneHostMsg_ResourcesRelinquished below
piman 2014/11/19 20:33:52 I'm not a big fan of adding messages that have no
+
//------------------------------------------------------------------------------
// Browser Messages
// These messages are from the GPU to the browser process.
@@ -106,3 +110,6 @@ IPC_MESSAGE_CONTROL0(OzoneGpuMsg_RelinquishDisplayControl)
// Updates the list of active displays.
IPC_MESSAGE_CONTROL1(OzoneHostMsg_UpdateNativeDisplays,
std::vector<ui::DisplaySnapshot_Params>)
+
+// Response to OzoneGpuMsg_RelinquishDisplay
+IPC_MESSAGE_CONTROL0(OzoneHostMsg_ResourcesRelinquished)

Powered by Google App Engine
This is Rietveld 408576698