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

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

Issue 685983005: gpu: Associate all GpuMemoryBuffers with unique IDs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: one more ozone build fix 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 (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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 gpu::VIDEO_CODEC_PROFILE_MIN, 68 gpu::VIDEO_CODEC_PROFILE_MIN,
69 gpu::VIDEO_CODEC_PROFILE_MAX) 69 gpu::VIDEO_CODEC_PROFILE_MAX)
70 70
71 IPC_STRUCT_BEGIN(GPUCreateCommandBufferConfig) 71 IPC_STRUCT_BEGIN(GPUCreateCommandBufferConfig)
72 IPC_STRUCT_MEMBER(int32, share_group_id) 72 IPC_STRUCT_MEMBER(int32, share_group_id)
73 IPC_STRUCT_MEMBER(std::vector<int>, attribs) 73 IPC_STRUCT_MEMBER(std::vector<int>, attribs)
74 IPC_STRUCT_MEMBER(GURL, active_url) 74 IPC_STRUCT_MEMBER(GURL, active_url)
75 IPC_STRUCT_MEMBER(gfx::GpuPreference, gpu_preference) 75 IPC_STRUCT_MEMBER(gfx::GpuPreference, gpu_preference)
76 IPC_STRUCT_END() 76 IPC_STRUCT_END()
77 77
78 IPC_STRUCT_BEGIN(GpuMsg_CreateGpuMemoryBuffer_Params)
79 IPC_STRUCT_MEMBER(gfx::GpuMemoryBufferType, type)
80 IPC_STRUCT_MEMBER(int32, id)
81 IPC_STRUCT_MEMBER(gfx::Size, size)
82 IPC_STRUCT_MEMBER(gfx::GpuMemoryBuffer::Format, format)
83 IPC_STRUCT_MEMBER(gfx::GpuMemoryBuffer::Usage, usage)
84 IPC_STRUCT_MEMBER(int32, client_id)
85 IPC_STRUCT_END()
86
78 IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params) 87 IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params)
79 IPC_STRUCT_MEMBER(int32, surface_id) 88 IPC_STRUCT_MEMBER(int32, surface_id)
80 IPC_STRUCT_MEMBER(uint64, surface_handle) 89 IPC_STRUCT_MEMBER(uint64, surface_handle)
81 IPC_STRUCT_MEMBER(int32, route_id) 90 IPC_STRUCT_MEMBER(int32, route_id)
82 IPC_STRUCT_MEMBER(gfx::Size, size) 91 IPC_STRUCT_MEMBER(gfx::Size, size)
83 IPC_STRUCT_MEMBER(float, scale_factor) 92 IPC_STRUCT_MEMBER(float, scale_factor)
84 IPC_STRUCT_MEMBER(std::vector<ui::LatencyInfo>, latency_info) 93 IPC_STRUCT_MEMBER(std::vector<ui::LatencyInfo>, latency_info)
85 IPC_STRUCT_END() 94 IPC_STRUCT_END()
86 95
87 #if defined(OS_MACOSX) 96 #if defined(OS_MACOSX)
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 268
260 // Tells the GPU process to create a new command buffer that renders directly 269 // Tells the GPU process to create a new command buffer that renders directly
261 // to a native view. A corresponding GpuCommandBufferStub is created. 270 // to a native view. A corresponding GpuCommandBufferStub is created.
262 IPC_MESSAGE_CONTROL5(GpuMsg_CreateViewCommandBuffer, 271 IPC_MESSAGE_CONTROL5(GpuMsg_CreateViewCommandBuffer,
263 gfx::GLSurfaceHandle, /* compositing_surface */ 272 gfx::GLSurfaceHandle, /* compositing_surface */
264 int32, /* surface_id */ 273 int32, /* surface_id */
265 int32, /* client_id */ 274 int32, /* client_id */
266 GPUCreateCommandBufferConfig, /* init_params */ 275 GPUCreateCommandBufferConfig, /* init_params */
267 int32 /* route_id */) 276 int32 /* route_id */)
268 277
269 // Tells the GPU process to create a new gpu memory buffer for |handle|. 278 // Tells the GPU process to create a new gpu memory buffer.
270 IPC_MESSAGE_CONTROL4(GpuMsg_CreateGpuMemoryBuffer, 279 IPC_MESSAGE_CONTROL1(GpuMsg_CreateGpuMemoryBuffer,
271 gfx::GpuMemoryBufferHandle, /* handle */ 280 GpuMsg_CreateGpuMemoryBuffer_Params)
272 gfx::Size, /* size */
273 gfx::GpuMemoryBuffer::Format, /* format */
274 gfx::GpuMemoryBuffer::Usage /* usage */)
275 281
276 // Tells the GPU process to destroy buffer. 282 // Tells the GPU process to destroy buffer.
277 IPC_MESSAGE_CONTROL2(GpuMsg_DestroyGpuMemoryBuffer, 283 IPC_MESSAGE_CONTROL4(GpuMsg_DestroyGpuMemoryBuffer,
278 gfx::GpuMemoryBufferHandle, /* handle */ 284 gfx::GpuMemoryBufferType, /* type */
285 gfx::GpuMemoryBufferId, /* id */
286 int32, /* client_id */
279 int32 /* sync_point */) 287 int32 /* sync_point */)
280 288
281 // Tells the GPU process to create a context for collecting graphics card 289 // Tells the GPU process to create a context for collecting graphics card
282 // information. 290 // information.
283 IPC_MESSAGE_CONTROL0(GpuMsg_CollectGraphicsInfo) 291 IPC_MESSAGE_CONTROL0(GpuMsg_CollectGraphicsInfo)
284 292
285 // Tells the GPU process to report video_memory information for the task manager 293 // Tells the GPU process to report video_memory information for the task manager
286 IPC_MESSAGE_CONTROL0(GpuMsg_GetVideoMemoryUsageStats) 294 IPC_MESSAGE_CONTROL0(GpuMsg_GetVideoMemoryUsageStats)
287 295
288 #if defined(OS_MACOSX) 296 #if defined(OS_MACOSX)
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after
731 int32 /* bitstream_buffer_id */, 739 int32 /* bitstream_buffer_id */,
732 uint32 /* payload_size */, 740 uint32 /* payload_size */,
733 bool /* key_frame */) 741 bool /* key_frame */)
734 742
735 // Report error condition. 743 // Report error condition.
736 IPC_MESSAGE_ROUTED1(AcceleratedVideoEncoderHostMsg_NotifyError, 744 IPC_MESSAGE_ROUTED1(AcceleratedVideoEncoderHostMsg_NotifyError,
737 media::VideoEncodeAccelerator::Error /* error */) 745 media::VideoEncodeAccelerator::Error /* error */)
738 746
739 // Send destroy request to the encoder. 747 // Send destroy request to the encoder.
740 IPC_MESSAGE_ROUTED0(AcceleratedVideoEncoderMsg_Destroy) 748 IPC_MESSAGE_ROUTED0(AcceleratedVideoEncoderMsg_Destroy)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698