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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Multiply-included message file, hence no include guard here, but see below 5 // Multiply-included message file, hence no include guard here, but see below
6 // for a much smaller-than-usual include guard section. 6 // for a much smaller-than-usual include guard section.
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "ipc/ipc_message_macros.h" 10 #include "ipc/ipc_message_macros.h"
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 92
93 IPC_MESSAGE_CONTROL1(OzoneGpuMsg_DisableNativeDisplay, 93 IPC_MESSAGE_CONTROL1(OzoneGpuMsg_DisableNativeDisplay,
94 int64_t) // display ID 94 int64_t) // display ID
95 95
96 // Take control of the display 96 // Take control of the display
97 IPC_MESSAGE_CONTROL0(OzoneGpuMsg_TakeDisplayControl) 97 IPC_MESSAGE_CONTROL0(OzoneGpuMsg_TakeDisplayControl)
98 98
99 // Let other entity control the display 99 // Let other entity control the display
100 IPC_MESSAGE_CONTROL0(OzoneGpuMsg_RelinquishDisplayControl) 100 IPC_MESSAGE_CONTROL0(OzoneGpuMsg_RelinquishDisplayControl)
101 101
102 // Tells the GPU process to relinquish the display to an external process.
103 // Creating a new surface will automatically re-acquire the display.
104 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
105
102 //------------------------------------------------------------------------------ 106 //------------------------------------------------------------------------------
103 // Browser Messages 107 // Browser Messages
104 // These messages are from the GPU to the browser process. 108 // These messages are from the GPU to the browser process.
105 109
106 // Updates the list of active displays. 110 // Updates the list of active displays.
107 IPC_MESSAGE_CONTROL1(OzoneHostMsg_UpdateNativeDisplays, 111 IPC_MESSAGE_CONTROL1(OzoneHostMsg_UpdateNativeDisplays,
108 std::vector<ui::DisplaySnapshot_Params>) 112 std::vector<ui::DisplaySnapshot_Params>)
113
114 // Response to OzoneGpuMsg_RelinquishDisplay
115 IPC_MESSAGE_CONTROL0(OzoneHostMsg_ResourcesRelinquished)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698