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

Side by Side Diff: content/common/gpu/gpu_messages.h

Issue 331723003: gpu: Remove Create/DeleteImage IPC by adding an X11_PIXMAP_BUFFER GpuMemoryBuffer type. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: crown of aragorn Created 6 years, 5 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 255
256 // Tells the GPU process to create a new command buffer that renders directly 256 // Tells the GPU process to create a new command buffer that renders directly
257 // to a native view. A corresponding GpuCommandBufferStub is created. 257 // to a native view. A corresponding GpuCommandBufferStub is created.
258 IPC_MESSAGE_CONTROL5(GpuMsg_CreateViewCommandBuffer, 258 IPC_MESSAGE_CONTROL5(GpuMsg_CreateViewCommandBuffer,
259 gfx::GLSurfaceHandle, /* compositing_surface */ 259 gfx::GLSurfaceHandle, /* compositing_surface */
260 int32, /* surface_id */ 260 int32, /* surface_id */
261 int32, /* client_id */ 261 int32, /* client_id */
262 GPUCreateCommandBufferConfig, /* init_params */ 262 GPUCreateCommandBufferConfig, /* init_params */
263 int32 /* route_id */) 263 int32 /* route_id */)
264 264
265 // Tells the GPU process to create a new image from a window. Images
266 // can be bound to textures using CHROMIUM_texture_from_image.
267 IPC_MESSAGE_CONTROL3(GpuMsg_CreateImage,
268 gfx::PluginWindowHandle, /* window */
269 int32, /* client_id */
270 int32 /* image_id */)
271
272 // Tells the GPU process to delete image.
273 IPC_MESSAGE_CONTROL3(GpuMsg_DeleteImage,
274 int32, /* client_id */
275 int32, /* image_id */
276 int32 /* sync_point */)
277
278 // Tells the GPU process to create a new gpu memory buffer for |handle|. 265 // Tells the GPU process to create a new gpu memory buffer for |handle|.
279 IPC_MESSAGE_CONTROL4(GpuMsg_CreateGpuMemoryBuffer, 266 IPC_MESSAGE_CONTROL4(GpuMsg_CreateGpuMemoryBuffer,
280 gfx::GpuMemoryBufferHandle, /* handle */ 267 gfx::GpuMemoryBufferHandle, /* handle */
281 gfx::Size, /* size */ 268 gfx::Size, /* size */
282 unsigned, /* internalformat */ 269 unsigned, /* internalformat */
283 unsigned /* usage */) 270 unsigned /* usage */)
284 271
285 // Tells the GPU process to destroy buffer. 272 // Tells the GPU process to destroy buffer.
286 IPC_MESSAGE_CONTROL2(GpuMsg_DestroyGpuMemoryBuffer, 273 IPC_MESSAGE_CONTROL2(GpuMsg_DestroyGpuMemoryBuffer,
287 gfx::GpuMemoryBufferHandle, /* handle */ 274 gfx::GpuMemoryBufferHandle, /* handle */
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 349
363 // Respond from GPU to a GpuMsg_CreateViewCommandBuffer message. 350 // Respond from GPU to a GpuMsg_CreateViewCommandBuffer message.
364 IPC_MESSAGE_CONTROL1(GpuHostMsg_CommandBufferCreated, 351 IPC_MESSAGE_CONTROL1(GpuHostMsg_CommandBufferCreated,
365 bool /* succeeded */) 352 bool /* succeeded */)
366 353
367 // Request from GPU to free the browser resources associated with the 354 // Request from GPU to free the browser resources associated with the
368 // command buffer. 355 // command buffer.
369 IPC_MESSAGE_CONTROL1(GpuHostMsg_DestroyCommandBuffer, 356 IPC_MESSAGE_CONTROL1(GpuHostMsg_DestroyCommandBuffer,
370 int32 /* surface_id */) 357 int32 /* surface_id */)
371 358
372 // Response from GPU to a GpuMsg_CreateImage message.
373 IPC_MESSAGE_CONTROL1(GpuHostMsg_ImageCreated,
374 gfx::Size /* size */)
375
376 // Response from GPU to a GpuMsg_CreateGpuMemoryBuffer message. 359 // Response from GPU to a GpuMsg_CreateGpuMemoryBuffer message.
377 IPC_MESSAGE_CONTROL1(GpuHostMsg_GpuMemoryBufferCreated, 360 IPC_MESSAGE_CONTROL1(GpuHostMsg_GpuMemoryBufferCreated,
378 gfx::GpuMemoryBufferHandle /* handle */) 361 gfx::GpuMemoryBufferHandle /* handle */)
379 362
380 // Response from GPU to a GpuMsg_CollectGraphicsInfo. 363 // Response from GPU to a GpuMsg_CollectGraphicsInfo.
381 IPC_MESSAGE_CONTROL1(GpuHostMsg_GraphicsInfoCollected, 364 IPC_MESSAGE_CONTROL1(GpuHostMsg_GraphicsInfoCollected,
382 gpu::GPUInfo /* GPU logging stats */) 365 gpu::GPUInfo /* GPU logging stats */)
383 366
384 // Response from GPU to a GpuMsg_GetVideoMemory. 367 // Response from GPU to a GpuMsg_GetVideoMemory.
385 IPC_MESSAGE_CONTROL1(GpuHostMsg_VideoMemoryUsageStats, 368 IPC_MESSAGE_CONTROL1(GpuHostMsg_VideoMemoryUsageStats,
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
769 int32 /* bitstream_buffer_id */, 752 int32 /* bitstream_buffer_id */,
770 uint32 /* payload_size */, 753 uint32 /* payload_size */,
771 bool /* key_frame */) 754 bool /* key_frame */)
772 755
773 // Report error condition. 756 // Report error condition.
774 IPC_MESSAGE_ROUTED1(AcceleratedVideoEncoderHostMsg_NotifyError, 757 IPC_MESSAGE_ROUTED1(AcceleratedVideoEncoderHostMsg_NotifyError,
775 media::VideoEncodeAccelerator::Error /* error */) 758 media::VideoEncodeAccelerator::Error /* error */)
776 759
777 // Send destroy request to the encoder. 760 // Send destroy request to the encoder.
778 IPC_MESSAGE_ROUTED0(AcceleratedVideoEncoderMsg_Destroy) 761 IPC_MESSAGE_ROUTED0(AcceleratedVideoEncoderMsg_Destroy)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698