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

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: rebase 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
« no previous file with comments | « content/common/gpu/gpu_memory_buffer_factory_x11_pixmap.cc ('k') | content/content_common.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 258
259 // Tells the GPU process to create a new command buffer that renders directly 259 // Tells the GPU process to create a new command buffer that renders directly
260 // to a native view. A corresponding GpuCommandBufferStub is created. 260 // to a native view. A corresponding GpuCommandBufferStub is created.
261 IPC_MESSAGE_CONTROL5(GpuMsg_CreateViewCommandBuffer, 261 IPC_MESSAGE_CONTROL5(GpuMsg_CreateViewCommandBuffer,
262 gfx::GLSurfaceHandle, /* compositing_surface */ 262 gfx::GLSurfaceHandle, /* compositing_surface */
263 int32, /* surface_id */ 263 int32, /* surface_id */
264 int32, /* client_id */ 264 int32, /* client_id */
265 GPUCreateCommandBufferConfig, /* init_params */ 265 GPUCreateCommandBufferConfig, /* init_params */
266 int32 /* route_id */) 266 int32 /* route_id */)
267 267
268 // Tells the GPU process to create a new image from a window. Images
269 // can be bound to textures using CHROMIUM_texture_from_image.
270 IPC_MESSAGE_CONTROL3(GpuMsg_CreateImage,
271 gfx::PluginWindowHandle, /* window */
272 int32, /* client_id */
273 int32 /* image_id */)
274
275 // Tells the GPU process to delete image.
276 IPC_MESSAGE_CONTROL3(GpuMsg_DeleteImage,
277 int32, /* client_id */
278 int32, /* image_id */
279 int32 /* sync_point */)
280
281 // Tells the GPU process to create a new gpu memory buffer for |handle|. 268 // Tells the GPU process to create a new gpu memory buffer for |handle|.
282 IPC_MESSAGE_CONTROL4(GpuMsg_CreateGpuMemoryBuffer, 269 IPC_MESSAGE_CONTROL4(GpuMsg_CreateGpuMemoryBuffer,
283 gfx::GpuMemoryBufferHandle, /* handle */ 270 gfx::GpuMemoryBufferHandle, /* handle */
284 gfx::Size, /* size */ 271 gfx::Size, /* size */
285 unsigned, /* internalformat */ 272 unsigned, /* internalformat */
286 unsigned /* usage */) 273 unsigned /* usage */)
287 274
288 // Tells the GPU process to destroy buffer. 275 // Tells the GPU process to destroy buffer.
289 IPC_MESSAGE_CONTROL2(GpuMsg_DestroyGpuMemoryBuffer, 276 IPC_MESSAGE_CONTROL2(GpuMsg_DestroyGpuMemoryBuffer,
290 gfx::GpuMemoryBufferHandle, /* handle */ 277 gfx::GpuMemoryBufferHandle, /* handle */
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 352
366 // Respond from GPU to a GpuMsg_CreateViewCommandBuffer message. 353 // Respond from GPU to a GpuMsg_CreateViewCommandBuffer message.
367 IPC_MESSAGE_CONTROL1(GpuHostMsg_CommandBufferCreated, 354 IPC_MESSAGE_CONTROL1(GpuHostMsg_CommandBufferCreated,
368 content::CreateCommandBufferResult /* result */) 355 content::CreateCommandBufferResult /* result */)
369 356
370 // Request from GPU to free the browser resources associated with the 357 // Request from GPU to free the browser resources associated with the
371 // command buffer. 358 // command buffer.
372 IPC_MESSAGE_CONTROL1(GpuHostMsg_DestroyCommandBuffer, 359 IPC_MESSAGE_CONTROL1(GpuHostMsg_DestroyCommandBuffer,
373 int32 /* surface_id */) 360 int32 /* surface_id */)
374 361
375 // Response from GPU to a GpuMsg_CreateImage message.
376 IPC_MESSAGE_CONTROL1(GpuHostMsg_ImageCreated,
377 gfx::Size /* size */)
378
379 // Response from GPU to a GpuMsg_CreateGpuMemoryBuffer message. 362 // Response from GPU to a GpuMsg_CreateGpuMemoryBuffer message.
380 IPC_MESSAGE_CONTROL1(GpuHostMsg_GpuMemoryBufferCreated, 363 IPC_MESSAGE_CONTROL1(GpuHostMsg_GpuMemoryBufferCreated,
381 gfx::GpuMemoryBufferHandle /* handle */) 364 gfx::GpuMemoryBufferHandle /* handle */)
382 365
383 // Response from GPU to a GpuMsg_CollectGraphicsInfo. 366 // Response from GPU to a GpuMsg_CollectGraphicsInfo.
384 IPC_MESSAGE_CONTROL1(GpuHostMsg_GraphicsInfoCollected, 367 IPC_MESSAGE_CONTROL1(GpuHostMsg_GraphicsInfoCollected,
385 gpu::GPUInfo /* GPU logging stats */) 368 gpu::GPUInfo /* GPU logging stats */)
386 369
387 // Response from GPU to a GpuMsg_GetVideoMemory. 370 // Response from GPU to a GpuMsg_GetVideoMemory.
388 IPC_MESSAGE_CONTROL1(GpuHostMsg_VideoMemoryUsageStats, 371 IPC_MESSAGE_CONTROL1(GpuHostMsg_VideoMemoryUsageStats,
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
772 int32 /* bitstream_buffer_id */, 755 int32 /* bitstream_buffer_id */,
773 uint32 /* payload_size */, 756 uint32 /* payload_size */,
774 bool /* key_frame */) 757 bool /* key_frame */)
775 758
776 // Report error condition. 759 // Report error condition.
777 IPC_MESSAGE_ROUTED1(AcceleratedVideoEncoderHostMsg_NotifyError, 760 IPC_MESSAGE_ROUTED1(AcceleratedVideoEncoderHostMsg_NotifyError,
778 media::VideoEncodeAccelerator::Error /* error */) 761 media::VideoEncodeAccelerator::Error /* error */)
779 762
780 // Send destroy request to the encoder. 763 // Send destroy request to the encoder.
781 IPC_MESSAGE_ROUTED0(AcceleratedVideoEncoderMsg_Destroy) 764 IPC_MESSAGE_ROUTED0(AcceleratedVideoEncoderMsg_Destroy)
OLDNEW
« no previous file with comments | « content/common/gpu/gpu_memory_buffer_factory_x11_pixmap.cc ('k') | content/content_common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698