| OLD | NEW |
| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 | 74 |
| 75 IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params) | 75 IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params) |
| 76 IPC_STRUCT_MEMBER(int32, surface_id) | 76 IPC_STRUCT_MEMBER(int32, surface_id) |
| 77 IPC_STRUCT_MEMBER(uint64, surface_handle) | 77 IPC_STRUCT_MEMBER(uint64, surface_handle) |
| 78 IPC_STRUCT_MEMBER(int32, route_id) | 78 IPC_STRUCT_MEMBER(int32, route_id) |
| 79 IPC_STRUCT_MEMBER(gfx::Size, size) | 79 IPC_STRUCT_MEMBER(gfx::Size, size) |
| 80 IPC_STRUCT_MEMBER(float, scale_factor) | 80 IPC_STRUCT_MEMBER(float, scale_factor) |
| 81 IPC_STRUCT_MEMBER(std::vector<ui::LatencyInfo>, latency_info) | 81 IPC_STRUCT_MEMBER(std::vector<ui::LatencyInfo>, latency_info) |
| 82 IPC_STRUCT_END() | 82 IPC_STRUCT_END() |
| 83 | 83 |
| 84 #if defined(OS_MACOSX) |
| 84 IPC_STRUCT_BEGIN(AcceleratedSurfaceMsg_BufferPresented_Params) | 85 IPC_STRUCT_BEGIN(AcceleratedSurfaceMsg_BufferPresented_Params) |
| 86 // If the browser needs framerate throttling based on GPU back-pressure to be |
| 87 // disabled (e.g, because the NSView isn't visible but tab capture is active), |
| 88 // then this is set to true. |
| 89 IPC_STRUCT_MEMBER(bool, disable_throttling) |
| 90 // If the browser is drawing to the screen, this is the CGL renderer ID of |
| 91 // the GL context that the brower is using. |
| 85 IPC_STRUCT_MEMBER(int32, renderer_id) | 92 IPC_STRUCT_MEMBER(int32, renderer_id) |
| 86 IPC_STRUCT_END() | 93 IPC_STRUCT_END() |
| 94 #endif |
| 87 | 95 |
| 88 IPC_STRUCT_BEGIN(GPUCommandBufferConsoleMessage) | 96 IPC_STRUCT_BEGIN(GPUCommandBufferConsoleMessage) |
| 89 IPC_STRUCT_MEMBER(int32, id) | 97 IPC_STRUCT_MEMBER(int32, id) |
| 90 IPC_STRUCT_MEMBER(std::string, message) | 98 IPC_STRUCT_MEMBER(std::string, message) |
| 91 IPC_STRUCT_END() | 99 IPC_STRUCT_END() |
| 92 | 100 |
| 93 #if defined(OS_ANDROID) | 101 #if defined(OS_ANDROID) |
| 94 IPC_STRUCT_BEGIN(GpuStreamTextureMsg_MatrixChanged_Params) | 102 IPC_STRUCT_BEGIN(GpuStreamTextureMsg_MatrixChanged_Params) |
| 95 IPC_STRUCT_MEMBER(float, m00) | 103 IPC_STRUCT_MEMBER(float, m00) |
| 96 IPC_STRUCT_MEMBER(float, m01) | 104 IPC_STRUCT_MEMBER(float, m01) |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 gfx::GpuMemoryBufferHandle, /* handle */ | 273 gfx::GpuMemoryBufferHandle, /* handle */ |
| 266 int32 /* sync_point */) | 274 int32 /* sync_point */) |
| 267 | 275 |
| 268 // Tells the GPU process to create a context for collecting graphics card | 276 // Tells the GPU process to create a context for collecting graphics card |
| 269 // information. | 277 // information. |
| 270 IPC_MESSAGE_CONTROL0(GpuMsg_CollectGraphicsInfo) | 278 IPC_MESSAGE_CONTROL0(GpuMsg_CollectGraphicsInfo) |
| 271 | 279 |
| 272 // Tells the GPU process to report video_memory information for the task manager | 280 // Tells the GPU process to report video_memory information for the task manager |
| 273 IPC_MESSAGE_CONTROL0(GpuMsg_GetVideoMemoryUsageStats) | 281 IPC_MESSAGE_CONTROL0(GpuMsg_GetVideoMemoryUsageStats) |
| 274 | 282 |
| 283 #if defined(OS_MACOSX) |
| 275 // Tells the GPU process that the browser process has handled the swap | 284 // Tells the GPU process that the browser process has handled the swap |
| 276 // buffers or post sub-buffer request. A non-zero sync point means | 285 // buffers or post sub-buffer request. |
| 277 // that we should wait for the sync point. The surface_handle identifies | |
| 278 // that buffer that has finished presented, i.e. the buffer being returned. | |
| 279 IPC_MESSAGE_ROUTED1(AcceleratedSurfaceMsg_BufferPresented, | 286 IPC_MESSAGE_ROUTED1(AcceleratedSurfaceMsg_BufferPresented, |
| 280 AcceleratedSurfaceMsg_BufferPresented_Params) | 287 AcceleratedSurfaceMsg_BufferPresented_Params) |
| 288 #endif |
| 281 | 289 |
| 282 // Tells the GPU process to wake up the GPU because we're about to draw. | 290 // Tells the GPU process to wake up the GPU because we're about to draw. |
| 283 IPC_MESSAGE_ROUTED0(AcceleratedSurfaceMsg_WakeUpGpu) | 291 IPC_MESSAGE_ROUTED0(AcceleratedSurfaceMsg_WakeUpGpu) |
| 284 | 292 |
| 285 // Tells the GPU process to remove all contexts. | 293 // Tells the GPU process to remove all contexts. |
| 286 IPC_MESSAGE_CONTROL0(GpuMsg_Clean) | 294 IPC_MESSAGE_CONTROL0(GpuMsg_Clean) |
| 287 | 295 |
| 288 // Tells the GPU process to crash. | 296 // Tells the GPU process to crash. |
| 289 IPC_MESSAGE_CONTROL0(GpuMsg_Crash) | 297 IPC_MESSAGE_CONTROL0(GpuMsg_Crash) |
| 290 | 298 |
| (...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 716 int32 /* bitstream_buffer_id */, | 724 int32 /* bitstream_buffer_id */, |
| 717 uint32 /* payload_size */, | 725 uint32 /* payload_size */, |
| 718 bool /* key_frame */) | 726 bool /* key_frame */) |
| 719 | 727 |
| 720 // Report error condition. | 728 // Report error condition. |
| 721 IPC_MESSAGE_ROUTED1(AcceleratedVideoEncoderHostMsg_NotifyError, | 729 IPC_MESSAGE_ROUTED1(AcceleratedVideoEncoderHostMsg_NotifyError, |
| 722 media::VideoEncodeAccelerator::Error /* error */) | 730 media::VideoEncodeAccelerator::Error /* error */) |
| 723 | 731 |
| 724 // Send destroy request to the encoder. | 732 // Send destroy request to the encoder. |
| 725 IPC_MESSAGE_ROUTED0(AcceleratedVideoEncoderMsg_Destroy) | 733 IPC_MESSAGE_ROUTED0(AcceleratedVideoEncoderMsg_Destroy) |
| OLD | NEW |