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

Side by Side Diff: content/common/gpu_host_messages.h

Issue 2723163002: gpu: Replace more chrome ipc with mojom api. (Closed)
Patch Set: . Created 3 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "build/build_config.h" 8 #include "build/build_config.h"
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 #include "content/common/establish_channel_params.h" 10 #include "content/common/establish_channel_params.h"
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 IPC_STRUCT_TRAITS_MEMBER(use_passthrough_cmd_decoder) 85 IPC_STRUCT_TRAITS_MEMBER(use_passthrough_cmd_decoder)
86 IPC_STRUCT_TRAITS_END() 86 IPC_STRUCT_TRAITS_END()
87 87
88 //------------------------------------------------------------------------------ 88 //------------------------------------------------------------------------------
89 // GPU Messages 89 // GPU Messages
90 // These are messages from the browser to the GPU process. 90 // These are messages from the browser to the GPU process.
91 91
92 // Tells the GPU process to shutdown itself. 92 // Tells the GPU process to shutdown itself.
93 IPC_MESSAGE_CONTROL0(GpuMsg_Finalize) 93 IPC_MESSAGE_CONTROL0(GpuMsg_Finalize)
94 94
95 // Tells the GPU process to close the channel identified by |client_id|.
96 // If no channel can be identified, do nothing.
97 IPC_MESSAGE_CONTROL1(GpuMsg_CloseChannel, int32_t /* client_id */)
98
99 // Tells the GPU process to create a new gpu memory buffer. 95 // Tells the GPU process to create a new gpu memory buffer.
100 IPC_MESSAGE_CONTROL1(GpuMsg_CreateGpuMemoryBuffer, 96 IPC_MESSAGE_CONTROL1(GpuMsg_CreateGpuMemoryBuffer,
101 GpuMsg_CreateGpuMemoryBuffer_Params) 97 GpuMsg_CreateGpuMemoryBuffer_Params)
102 98
103 // Tells the GPU process to destroy buffer. 99 // Tells the GPU process to destroy buffer.
104 IPC_MESSAGE_CONTROL3(GpuMsg_DestroyGpuMemoryBuffer, 100 IPC_MESSAGE_CONTROL3(GpuMsg_DestroyGpuMemoryBuffer,
105 gfx::GpuMemoryBufferId, /* id */ 101 gfx::GpuMemoryBufferId, /* id */
106 int32_t, /* client_id */ 102 int32_t, /* client_id */
107 gpu::SyncToken /* sync_token */) 103 gpu::SyncToken /* sync_token */)
108 104
109 // Tells the GPU process to create a context for collecting graphics card 105 // Tells the GPU process to create a context for collecting graphics card
110 // information. 106 // information.
111 IPC_MESSAGE_CONTROL0(GpuMsg_CollectGraphicsInfo) 107 IPC_MESSAGE_CONTROL0(GpuMsg_CollectGraphicsInfo)
112 108
113 #if defined(OS_ANDROID)
114 // Tells the GPU process to wake up the GPU because we're about to draw.
115 IPC_MESSAGE_CONTROL0(GpuMsg_WakeUpGpu)
116
117 // Tells the GPU process to release the surface because it's being destroyed.
118 IPC_MESSAGE_CONTROL1(GpuMsg_DestroyingVideoSurface, int /* surface_id */)
119 #endif
120
121 // Tells the GPU process to remove all contexts. 109 // Tells the GPU process to remove all contexts.
122 IPC_MESSAGE_CONTROL0(GpuMsg_Clean) 110 IPC_MESSAGE_CONTROL0(GpuMsg_Clean)
123 111
124 // Tells the GPU process to crash. 112 // Tells the GPU process to crash.
125 IPC_MESSAGE_CONTROL0(GpuMsg_Crash) 113 IPC_MESSAGE_CONTROL0(GpuMsg_Crash)
126 114
127 // Tells the GPU process to hang. 115 // Tells the GPU process to hang.
128 IPC_MESSAGE_CONTROL0(GpuMsg_Hang) 116 IPC_MESSAGE_CONTROL0(GpuMsg_Hang)
129 117
130 #if defined(OS_ANDROID) 118 #if defined(OS_ANDROID)
131 // Tells the GPU process to throw a java exception 119 // Tells the GPU process to throw a java exception
132 IPC_MESSAGE_CONTROL0(GpuMsg_JavaCrash) 120 IPC_MESSAGE_CONTROL0(GpuMsg_JavaCrash)
133 #endif 121 #endif
134 122
135 // Tells the GPU process that the browser has seen a GPU switch. 123 // Tells the GPU process that the browser has seen a GPU switch.
136 IPC_MESSAGE_CONTROL0(GpuMsg_GpuSwitched) 124 IPC_MESSAGE_CONTROL0(GpuMsg_GpuSwitched)
137 125
138 //------------------------------------------------------------------------------ 126 //------------------------------------------------------------------------------
139 // GPU Host Messages 127 // GPU Host Messages
140 // These are messages to the browser. 128 // These are messages to the browser.
141 129
142 // Response from GPU to a GputMsg_Initialize message. 130 // Response from GPU to a GputMsg_Initialize message.
143 IPC_MESSAGE_CONTROL3(GpuHostMsg_Initialized, 131 IPC_MESSAGE_CONTROL3(GpuHostMsg_Initialized,
144 bool /* result */, 132 bool /* result */,
145 ::gpu::GPUInfo /* gpu_info */, 133 ::gpu::GPUInfo /* gpu_info */,
146 ::gpu::GpuFeatureInfo /* gpu_feature_info */) 134 ::gpu::GpuFeatureInfo /* gpu_feature_info */)
147 135
148 // Message to the GPU that a shader was loaded from disk.
149 IPC_MESSAGE_CONTROL1(GpuMsg_LoadedShader, std::string /* encoded shader */)
150
151 // Response from GPU to a GpuMsg_CreateGpuMemoryBuffer message. 136 // Response from GPU to a GpuMsg_CreateGpuMemoryBuffer message.
152 IPC_MESSAGE_CONTROL1(GpuHostMsg_GpuMemoryBufferCreated, 137 IPC_MESSAGE_CONTROL1(GpuHostMsg_GpuMemoryBufferCreated,
153 gfx::GpuMemoryBufferHandle /* handle */) 138 gfx::GpuMemoryBufferHandle /* handle */)
154 139
155 // Response from GPU to a GpuMsg_CollectGraphicsInfo. 140 // Response from GPU to a GpuMsg_CollectGraphicsInfo.
156 IPC_MESSAGE_CONTROL1(GpuHostMsg_GraphicsInfoCollected, 141 IPC_MESSAGE_CONTROL1(GpuHostMsg_GraphicsInfoCollected,
157 gpu::GPUInfo /* GPU logging stats */) 142 gpu::GPUInfo /* GPU logging stats */)
158 143
159 #if defined(OS_ANDROID)
160 // Response to a GpuMsg_DestroyingVideoSurface message.
161 IPC_MESSAGE_CONTROL1(GpuHostMsg_DestroyingVideoSurfaceAck,
162 int /* surface_id */)
163 #endif
164
165 // Message from GPU to add a GPU log message to the about:gpu page. 144 // Message from GPU to add a GPU log message to the about:gpu page.
166 IPC_MESSAGE_CONTROL3(GpuHostMsg_OnLogMessage, 145 IPC_MESSAGE_CONTROL3(GpuHostMsg_OnLogMessage,
167 int /*severity*/, 146 int /*severity*/,
168 std::string /* header */, 147 std::string /* header */,
169 std::string /* message */) 148 std::string /* message */)
170 149
171 // Sent by the GPU process to indicate that a fields trial has been activated. 150 // Sent by the GPU process to indicate that a fields trial has been activated.
172 IPC_MESSAGE_CONTROL1(GpuHostMsg_FieldTrialActivated, std::string /* name */) 151 IPC_MESSAGE_CONTROL1(GpuHostMsg_FieldTrialActivated, std::string /* name */)
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_android.cc ('k') | content/gpu/gpu_child_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698