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

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

Issue 1878103002: Plumb a Browser->GPU surface destruction message for Android VDAs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed sievers comments. Created 4 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 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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 #if defined(OS_MACOSX) 189 #if defined(OS_MACOSX)
190 // Tells the GPU process that the browser process has handled the swap 190 // Tells the GPU process that the browser process has handled the swap
191 // buffers or post sub-buffer request. 191 // buffers or post sub-buffer request.
192 IPC_MESSAGE_CONTROL1(AcceleratedSurfaceMsg_BufferPresented, 192 IPC_MESSAGE_CONTROL1(AcceleratedSurfaceMsg_BufferPresented,
193 content::BufferPresentedParams) 193 content::BufferPresentedParams)
194 #endif 194 #endif
195 195
196 #if defined(OS_ANDROID) 196 #if defined(OS_ANDROID)
197 // Tells the GPU process to wake up the GPU because we're about to draw. 197 // Tells the GPU process to wake up the GPU because we're about to draw.
198 IPC_MESSAGE_CONTROL0(GpuMsg_WakeUpGpu) 198 IPC_MESSAGE_CONTROL0(GpuMsg_WakeUpGpu)
199
200 // Tells the GPU process to release the surface because it's being destroyed.
201 IPC_MESSAGE_CONTROL1(GpuMsg_DestroyingVideoSurface, int /* surface_id */)
199 #endif 202 #endif
200 203
201 // Tells the GPU process to remove all contexts. 204 // Tells the GPU process to remove all contexts.
202 IPC_MESSAGE_CONTROL0(GpuMsg_Clean) 205 IPC_MESSAGE_CONTROL0(GpuMsg_Clean)
203 206
204 // Tells the GPU process to crash. 207 // Tells the GPU process to crash.
205 IPC_MESSAGE_CONTROL0(GpuMsg_Crash) 208 IPC_MESSAGE_CONTROL0(GpuMsg_Crash)
206 209
207 // Tells the GPU process to hang. 210 // Tells the GPU process to hang.
208 IPC_MESSAGE_CONTROL0(GpuMsg_Hang) 211 IPC_MESSAGE_CONTROL0(GpuMsg_Hang)
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 IPC_MESSAGE_CONTROL1(GpuHostMsg_AcceleratedSurfaceBuffersSwapped, 264 IPC_MESSAGE_CONTROL1(GpuHostMsg_AcceleratedSurfaceBuffersSwapped,
262 content::AcceleratedSurfaceBuffersSwappedParams) 265 content::AcceleratedSurfaceBuffersSwappedParams)
263 #endif 266 #endif
264 267
265 #if defined(OS_WIN) 268 #if defined(OS_WIN)
266 IPC_MESSAGE_CONTROL2(GpuHostMsg_AcceleratedSurfaceCreatedChildWindow, 269 IPC_MESSAGE_CONTROL2(GpuHostMsg_AcceleratedSurfaceCreatedChildWindow,
267 gpu::SurfaceHandle /* parent_window */, 270 gpu::SurfaceHandle /* parent_window */,
268 gpu::SurfaceHandle /* child_window */) 271 gpu::SurfaceHandle /* child_window */)
269 #endif 272 #endif
270 273
274 #if defined(OS_ANDROID)
275 // Response to a GpuMsg_DestroyingVideoSurface message.
276 IPC_MESSAGE_CONTROL1(GpuHostMsg_DestroyingVideoSurfaceAck,
277 int /* surface_id */)
278 #endif
279
280
271 IPC_MESSAGE_CONTROL1(GpuHostMsg_DidCreateOffscreenContext, GURL /* url */) 281 IPC_MESSAGE_CONTROL1(GpuHostMsg_DidCreateOffscreenContext, GURL /* url */)
272 282
273 IPC_MESSAGE_CONTROL3(GpuHostMsg_DidLoseContext, 283 IPC_MESSAGE_CONTROL3(GpuHostMsg_DidLoseContext,
274 bool /* offscreen */, 284 bool /* offscreen */,
275 gpu::error::ContextLostReason /* reason */, 285 gpu::error::ContextLostReason /* reason */,
276 GURL /* url */) 286 GURL /* url */)
277 287
278 IPC_MESSAGE_CONTROL1(GpuHostMsg_DidDestroyOffscreenContext, GURL /* url */) 288 IPC_MESSAGE_CONTROL1(GpuHostMsg_DidDestroyOffscreenContext, GURL /* url */)
279 289
280 // Tells the browser about GPU memory usage statistics for UMA logging. 290 // Tells the browser about GPU memory usage statistics for UMA logging.
(...skipping 10 matching lines...) Expand all
291 // so the browser should stop sending the corresponding information 301 // so the browser should stop sending the corresponding information
292 IPC_MESSAGE_CONTROL2(GpuHostMsg_RemoveSubscription, 302 IPC_MESSAGE_CONTROL2(GpuHostMsg_RemoveSubscription,
293 int32_t /* client_id */, 303 int32_t /* client_id */,
294 unsigned int /* target */) 304 unsigned int /* target */)
295 305
296 // Message from GPU to add a GPU log message to the about:gpu page. 306 // Message from GPU to add a GPU log message to the about:gpu page.
297 IPC_MESSAGE_CONTROL3(GpuHostMsg_OnLogMessage, 307 IPC_MESSAGE_CONTROL3(GpuHostMsg_OnLogMessage,
298 int /*severity*/, 308 int /*severity*/,
299 std::string /* header */, 309 std::string /* header */,
300 std::string /* message */) 310 std::string /* message */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698