| 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 | 82 |
| 83 IPC_STRUCT_BEGIN(GpuMsg_CreateGpuMemoryBuffer_Params) | 83 IPC_STRUCT_BEGIN(GpuMsg_CreateGpuMemoryBuffer_Params) |
| 84 IPC_STRUCT_MEMBER(int32, id) | 84 IPC_STRUCT_MEMBER(int32, id) |
| 85 IPC_STRUCT_MEMBER(gfx::Size, size) | 85 IPC_STRUCT_MEMBER(gfx::Size, size) |
| 86 IPC_STRUCT_MEMBER(gfx::GpuMemoryBuffer::Format, format) | 86 IPC_STRUCT_MEMBER(gfx::GpuMemoryBuffer::Format, format) |
| 87 IPC_STRUCT_MEMBER(gfx::GpuMemoryBuffer::Usage, usage) | 87 IPC_STRUCT_MEMBER(gfx::GpuMemoryBuffer::Usage, usage) |
| 88 IPC_STRUCT_MEMBER(int32, client_id) | 88 IPC_STRUCT_MEMBER(int32, client_id) |
| 89 IPC_STRUCT_MEMBER(gfx::PluginWindowHandle, surface_handle) | 89 IPC_STRUCT_MEMBER(gfx::PluginWindowHandle, surface_handle) |
| 90 IPC_STRUCT_END() | 90 IPC_STRUCT_END() |
| 91 | 91 |
| 92 #if defined(OS_MACOSX) |
| 92 IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params) | 93 IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params) |
| 93 IPC_STRUCT_MEMBER(int32, surface_id) | 94 IPC_STRUCT_MEMBER(int32, surface_id) |
| 94 IPC_STRUCT_MEMBER(uint64, surface_handle) | 95 IPC_STRUCT_MEMBER(uint64, surface_handle) |
| 95 IPC_STRUCT_MEMBER(int32, route_id) | 96 IPC_STRUCT_MEMBER(int32, route_id) |
| 96 IPC_STRUCT_MEMBER(gfx::Size, size) | 97 IPC_STRUCT_MEMBER(gfx::Size, size) |
| 98 IPC_STRUCT_MEMBER(gfx::Rect, damage_rect) |
| 97 IPC_STRUCT_MEMBER(float, scale_factor) | 99 IPC_STRUCT_MEMBER(float, scale_factor) |
| 98 IPC_STRUCT_MEMBER(std::vector<ui::LatencyInfo>, latency_info) | 100 IPC_STRUCT_MEMBER(std::vector<ui::LatencyInfo>, latency_info) |
| 99 IPC_STRUCT_END() | 101 IPC_STRUCT_END() |
| 100 | 102 |
| 101 #if defined(OS_MACOSX) | |
| 102 IPC_STRUCT_BEGIN(AcceleratedSurfaceMsg_BufferPresented_Params) | 103 IPC_STRUCT_BEGIN(AcceleratedSurfaceMsg_BufferPresented_Params) |
| 103 // If the browser needs framerate throttling based on GPU back-pressure to be | 104 // If the browser needs framerate throttling based on GPU back-pressure to be |
| 104 // disabled (e.g, because the NSView isn't visible but tab capture is active), | 105 // disabled (e.g, because the NSView isn't visible but tab capture is active), |
| 105 // then this is set to true. | 106 // then this is set to true. |
| 106 IPC_STRUCT_MEMBER(bool, disable_throttling) | 107 IPC_STRUCT_MEMBER(bool, disable_throttling) |
| 107 // If the browser is drawing to the screen, this is the CGL renderer ID of | 108 // If the browser is drawing to the screen, this is the CGL renderer ID of |
| 108 // the GL context that the brower is using. | 109 // the GL context that the brower is using. |
| 109 IPC_STRUCT_MEMBER(int32, renderer_id) | 110 IPC_STRUCT_MEMBER(int32, renderer_id) |
| 110 IPC_STRUCT_END() | 111 IPC_STRUCT_END() |
| 111 #endif | 112 #endif |
| (...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 386 IPC_MESSAGE_CONTROL3(GpuHostMsg_OnLogMessage, | 387 IPC_MESSAGE_CONTROL3(GpuHostMsg_OnLogMessage, |
| 387 int /*severity*/, | 388 int /*severity*/, |
| 388 std::string /* header */, | 389 std::string /* header */, |
| 389 std::string /* message */) | 390 std::string /* message */) |
| 390 | 391 |
| 391 // Tells the browser that a new accelerated surface was initialized. | 392 // Tells the browser that a new accelerated surface was initialized. |
| 392 IPC_MESSAGE_CONTROL2(GpuHostMsg_AcceleratedSurfaceInitialized, | 393 IPC_MESSAGE_CONTROL2(GpuHostMsg_AcceleratedSurfaceInitialized, |
| 393 int32 /* surface_id */, | 394 int32 /* surface_id */, |
| 394 int32 /* route_id */) | 395 int32 /* route_id */) |
| 395 | 396 |
| 396 // Same as above with a rect of the part of the surface that changed. | 397 |
| 398 #if defined(OS_MACOSX) |
| 399 // Tells the browser that an accelerated surface has swapped. |
| 397 IPC_MESSAGE_CONTROL1(GpuHostMsg_AcceleratedSurfaceBuffersSwapped, | 400 IPC_MESSAGE_CONTROL1(GpuHostMsg_AcceleratedSurfaceBuffersSwapped, |
| 398 GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params) | 401 GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params) |
| 402 #endif |
| 399 | 403 |
| 400 IPC_MESSAGE_CONTROL1(GpuHostMsg_DidCreateOffscreenContext, | 404 IPC_MESSAGE_CONTROL1(GpuHostMsg_DidCreateOffscreenContext, |
| 401 GURL /* url */) | 405 GURL /* url */) |
| 402 | 406 |
| 403 IPC_MESSAGE_CONTROL3(GpuHostMsg_DidLoseContext, | 407 IPC_MESSAGE_CONTROL3(GpuHostMsg_DidLoseContext, |
| 404 bool /* offscreen */, | 408 bool /* offscreen */, |
| 405 gpu::error::ContextLostReason /* reason */, | 409 gpu::error::ContextLostReason /* reason */, |
| 406 GURL /* url */) | 410 GURL /* url */) |
| 407 | 411 |
| 408 IPC_MESSAGE_CONTROL1(GpuHostMsg_DidDestroyOffscreenContext, | 412 IPC_MESSAGE_CONTROL1(GpuHostMsg_DidDestroyOffscreenContext, |
| (...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 747 int32 /* bitstream_buffer_id */, | 751 int32 /* bitstream_buffer_id */, |
| 748 uint32 /* payload_size */, | 752 uint32 /* payload_size */, |
| 749 bool /* key_frame */) | 753 bool /* key_frame */) |
| 750 | 754 |
| 751 // Report error condition. | 755 // Report error condition. |
| 752 IPC_MESSAGE_ROUTED1(AcceleratedVideoEncoderHostMsg_NotifyError, | 756 IPC_MESSAGE_ROUTED1(AcceleratedVideoEncoderHostMsg_NotifyError, |
| 753 media::VideoEncodeAccelerator::Error /* error */) | 757 media::VideoEncodeAccelerator::Error /* error */) |
| 754 | 758 |
| 755 // Send destroy request to the encoder. | 759 // Send destroy request to the encoder. |
| 756 IPC_MESSAGE_ROUTED0(AcceleratedVideoEncoderMsg_Destroy) | 760 IPC_MESSAGE_ROUTED0(AcceleratedVideoEncoderMsg_Destroy) |
| OLD | NEW |