| 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 |
| 11 #include "base/shared_memory.h" | 11 #include "base/shared_memory.h" |
| 12 #include "content/common/content_export.h" | 12 #include "content/common/content_export.h" |
| 13 #include "content/common/gpu/gpu_memory_allocation.h" | 13 #include "content/common/gpu/gpu_memory_allocation.h" |
| 14 #include "content/common/gpu/gpu_memory_uma_stats.h" | 14 #include "content/common/gpu/gpu_memory_uma_stats.h" |
| 15 #include "content/common/gpu/gpu_process_launch_causes.h" | 15 #include "content/common/gpu/gpu_process_launch_causes.h" |
| 16 #include "content/common/gpu/gpu_rendering_stats.h" | 16 #include "content/common/gpu/gpu_rendering_stats.h" |
| 17 #include "content/public/common/common_param_traits.h" | 17 #include "content/public/common/common_param_traits.h" |
| 18 #include "content/public/common/gpu_info.h" | 18 #include "content/public/common/gpu_info.h" |
| 19 #include "content/public/common/gpu_memory_stats.h" | 19 #include "content/public/common/gpu_memory_stats.h" |
| 20 #include "gpu/command_buffer/common/command_buffer.h" | 20 #include "gpu/command_buffer/common/command_buffer.h" |
| 21 #include "gpu/command_buffer/common/constants.h" | 21 #include "gpu/command_buffer/common/constants.h" |
| 22 #include "gpu/command_buffer/common/mailbox.h" | |
| 23 #include "gpu/ipc/gpu_command_buffer_traits.h" | 22 #include "gpu/ipc/gpu_command_buffer_traits.h" |
| 24 #include "ipc/ipc_channel_handle.h" | 23 #include "ipc/ipc_channel_handle.h" |
| 25 #include "ipc/ipc_message_macros.h" | 24 #include "ipc/ipc_message_macros.h" |
| 26 #include "media/video/video_decode_accelerator.h" | 25 #include "media/video/video_decode_accelerator.h" |
| 27 #include "ui/gfx/native_widget_types.h" | 26 #include "ui/gfx/native_widget_types.h" |
| 28 #include "ui/gfx/size.h" | 27 #include "ui/gfx/size.h" |
| 29 #include "ui/gl/gpu_preference.h" | 28 #include "ui/gl/gpu_preference.h" |
| 30 #include "ui/surface/transport_dib.h" | 29 #include "ui/surface/transport_dib.h" |
| 31 | 30 |
| 32 #if defined(OS_ANDROID) | 31 #if defined(OS_ANDROID) |
| 33 #include "content/common/android/surface_texture_peer.h" | 32 #include "content/common/android/surface_texture_peer.h" |
| 34 #endif | 33 #endif |
| 35 | 34 |
| 36 #define IPC_MESSAGE_START GpuMsgStart | 35 #define IPC_MESSAGE_START GpuMsgStart |
| 37 | 36 |
| 38 IPC_STRUCT_BEGIN(GPUCreateCommandBufferConfig) | 37 IPC_STRUCT_BEGIN(GPUCreateCommandBufferConfig) |
| 39 IPC_STRUCT_MEMBER(int32, share_group_id) | 38 IPC_STRUCT_MEMBER(int32, share_group_id) |
| 40 IPC_STRUCT_MEMBER(std::string, allowed_extensions) | 39 IPC_STRUCT_MEMBER(std::string, allowed_extensions) |
| 41 IPC_STRUCT_MEMBER(std::vector<int>, attribs) | 40 IPC_STRUCT_MEMBER(std::vector<int>, attribs) |
| 42 IPC_STRUCT_MEMBER(GURL, active_url) | 41 IPC_STRUCT_MEMBER(GURL, active_url) |
| 43 IPC_STRUCT_MEMBER(gfx::GpuPreference, gpu_preference) | 42 IPC_STRUCT_MEMBER(gfx::GpuPreference, gpu_preference) |
| 44 IPC_STRUCT_END() | 43 IPC_STRUCT_END() |
| 45 | 44 |
| 46 #undef IPC_MESSAGE_EXPORT | 45 #undef IPC_MESSAGE_EXPORT |
| 47 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 46 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
| 48 IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params) | 47 IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params) |
| 49 IPC_STRUCT_MEMBER(int32, surface_id) | 48 IPC_STRUCT_MEMBER(int32, surface_id) |
| 50 IPC_STRUCT_MEMBER(uint64, surface_handle) | 49 IPC_STRUCT_MEMBER(uint64, surface_handle) |
| 51 IPC_STRUCT_MEMBER(int32, route_id) | 50 IPC_STRUCT_MEMBER(int32, route_id) |
| 52 IPC_STRUCT_MEMBER(gpu::Mailbox, mailbox_name) | 51 IPC_STRUCT_MEMBER(std::string, mailbox_name) |
| 53 IPC_STRUCT_MEMBER(gfx::Size, size) | 52 IPC_STRUCT_MEMBER(gfx::Size, size) |
| 54 #if defined(OS_MACOSX) | 53 #if defined(OS_MACOSX) |
| 55 IPC_STRUCT_MEMBER(gfx::PluginWindowHandle, window) | 54 IPC_STRUCT_MEMBER(gfx::PluginWindowHandle, window) |
| 56 #endif | 55 #endif |
| 57 IPC_STRUCT_END() | 56 IPC_STRUCT_END() |
| 58 #undef IPC_MESSAGE_EXPORT | 57 #undef IPC_MESSAGE_EXPORT |
| 59 #define IPC_MESSAGE_EXPORT | 58 #define IPC_MESSAGE_EXPORT |
| 60 | 59 |
| 61 IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params) | 60 IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params) |
| 62 IPC_STRUCT_MEMBER(int32, surface_id) | 61 IPC_STRUCT_MEMBER(int32, surface_id) |
| 63 IPC_STRUCT_MEMBER(uint64, surface_handle) | 62 IPC_STRUCT_MEMBER(uint64, surface_handle) |
| 64 IPC_STRUCT_MEMBER(int32, route_id) | 63 IPC_STRUCT_MEMBER(int32, route_id) |
| 65 IPC_STRUCT_MEMBER(int, x) | 64 IPC_STRUCT_MEMBER(int, x) |
| 66 IPC_STRUCT_MEMBER(int, y) | 65 IPC_STRUCT_MEMBER(int, y) |
| 67 IPC_STRUCT_MEMBER(int, width) | 66 IPC_STRUCT_MEMBER(int, width) |
| 68 IPC_STRUCT_MEMBER(int, height) | 67 IPC_STRUCT_MEMBER(int, height) |
| 69 IPC_STRUCT_MEMBER(gpu::Mailbox, mailbox_name) | 68 IPC_STRUCT_MEMBER(std::string, mailbox_name) |
| 70 IPC_STRUCT_MEMBER(gfx::Size, surface_size) | 69 IPC_STRUCT_MEMBER(gfx::Size, surface_size) |
| 71 #if defined(OS_MACOSX) | 70 #if defined(OS_MACOSX) |
| 72 IPC_STRUCT_MEMBER(gfx::PluginWindowHandle, window) | 71 IPC_STRUCT_MEMBER(gfx::PluginWindowHandle, window) |
| 73 #endif | 72 #endif |
| 74 IPC_STRUCT_END() | 73 IPC_STRUCT_END() |
| 75 | 74 |
| 76 IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfaceRelease_Params) | 75 IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfaceRelease_Params) |
| 77 IPC_STRUCT_MEMBER(int32, surface_id) | 76 IPC_STRUCT_MEMBER(int32, surface_id) |
| 78 IPC_STRUCT_MEMBER(int32, route_id) | 77 IPC_STRUCT_MEMBER(int32, route_id) |
| 79 IPC_STRUCT_END() | 78 IPC_STRUCT_END() |
| 80 | 79 |
| 81 IPC_STRUCT_BEGIN(AcceleratedSurfaceMsg_BufferPresented_Params) | 80 IPC_STRUCT_BEGIN(AcceleratedSurfaceMsg_BufferPresented_Params) |
| 82 IPC_STRUCT_MEMBER(gpu::Mailbox, mailbox_name) | 81 IPC_STRUCT_MEMBER(std::string, mailbox_name) |
| 83 IPC_STRUCT_MEMBER(uint32, sync_point) | 82 IPC_STRUCT_MEMBER(uint32, sync_point) |
| 84 #if defined(OS_MACOSX) | 83 #if defined(OS_MACOSX) |
| 85 IPC_STRUCT_MEMBER(int32, renderer_id) | 84 IPC_STRUCT_MEMBER(int32, renderer_id) |
| 86 #endif | 85 #endif |
| 87 IPC_STRUCT_END() | 86 IPC_STRUCT_END() |
| 88 | 87 |
| 89 IPC_STRUCT_BEGIN(GPUCommandBufferConsoleMessage) | 88 IPC_STRUCT_BEGIN(GPUCommandBufferConsoleMessage) |
| 90 IPC_STRUCT_MEMBER(int32, id) | 89 IPC_STRUCT_MEMBER(int32, id) |
| 91 IPC_STRUCT_MEMBER(std::string, message) | 90 IPC_STRUCT_MEMBER(std::string, message) |
| 92 IPC_STRUCT_END() | 91 IPC_STRUCT_END() |
| (...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 654 | 653 |
| 655 // Confirm decoder has been flushed. | 654 // Confirm decoder has been flushed. |
| 656 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_FlushDone) | 655 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_FlushDone) |
| 657 | 656 |
| 658 // Confirm decoder has been reset. | 657 // Confirm decoder has been reset. |
| 659 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_ResetDone) | 658 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_ResetDone) |
| 660 | 659 |
| 661 // Video decoder has encountered an error. | 660 // Video decoder has encountered an error. |
| 662 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification, | 661 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification, |
| 663 uint32) /* Error ID */ | 662 uint32) /* Error ID */ |
| OLD | NEW |