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 25 matching lines...) Expand all Loading... |
36 #include "ui/events/latency_info.h" | 36 #include "ui/events/latency_info.h" |
37 #include "ui/gfx/geometry/size.h" | 37 #include "ui/gfx/geometry/size.h" |
38 #include "ui/gfx/gpu_memory_buffer.h" | 38 #include "ui/gfx/gpu_memory_buffer.h" |
39 #include "ui/gfx/ipc/gfx_param_traits.h" | 39 #include "ui/gfx/ipc/gfx_param_traits.h" |
40 #include "ui/gfx/native_widget_types.h" | 40 #include "ui/gfx/native_widget_types.h" |
41 #include "ui/gfx/swap_result.h" | 41 #include "ui/gfx/swap_result.h" |
42 #include "ui/gl/gpu_preference.h" | 42 #include "ui/gl/gpu_preference.h" |
43 | 43 |
44 #if defined(OS_ANDROID) | 44 #if defined(OS_ANDROID) |
45 #include "content/common/android/surface_texture_peer.h" | 45 #include "content/common/android/surface_texture_peer.h" |
| 46 #elif defined(OS_MACOSX) |
| 47 #include "base/mac/scoped_mach_port.h" |
| 48 #include "ui/base/cocoa/remote_layer_api.h" |
46 #endif | 49 #endif |
47 | 50 |
48 #undef IPC_MESSAGE_EXPORT | 51 #undef IPC_MESSAGE_EXPORT |
49 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 52 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
50 | 53 |
51 #define IPC_MESSAGE_START GpuMsgStart | 54 #define IPC_MESSAGE_START GpuMsgStart |
52 | 55 |
53 IPC_ENUM_TRAITS_MAX_VALUE(content::CauseForGpuLaunch, | 56 IPC_ENUM_TRAITS_MAX_VALUE(content::CauseForGpuLaunch, |
54 content::CAUSE_FOR_GPU_LAUNCH_MAX_ENUM - 1) | 57 content::CAUSE_FOR_GPU_LAUNCH_MAX_ENUM - 1) |
55 IPC_ENUM_TRAITS_MAX_VALUE(content::CreateCommandBufferResult, | 58 IPC_ENUM_TRAITS_MAX_VALUE(content::CreateCommandBufferResult, |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 IPC_STRUCT_MEMBER(gfx::GpuMemoryBufferHandle, handle) | 113 IPC_STRUCT_MEMBER(gfx::GpuMemoryBufferHandle, handle) |
111 IPC_STRUCT_MEMBER(gfx::GpuMemoryBufferId, id) | 114 IPC_STRUCT_MEMBER(gfx::GpuMemoryBufferId, id) |
112 IPC_STRUCT_MEMBER(gfx::Size, size) | 115 IPC_STRUCT_MEMBER(gfx::Size, size) |
113 IPC_STRUCT_MEMBER(gfx::BufferFormat, format) | 116 IPC_STRUCT_MEMBER(gfx::BufferFormat, format) |
114 IPC_STRUCT_MEMBER(int32, client_id) | 117 IPC_STRUCT_MEMBER(int32, client_id) |
115 IPC_STRUCT_END() | 118 IPC_STRUCT_END() |
116 | 119 |
117 #if defined(OS_MACOSX) | 120 #if defined(OS_MACOSX) |
118 IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params) | 121 IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params) |
119 IPC_STRUCT_MEMBER(int32, surface_id) | 122 IPC_STRUCT_MEMBER(int32, surface_id) |
120 IPC_STRUCT_MEMBER(uint64, surface_handle) | 123 // Only one of ca_context_id or io_surface may be non-0. |
| 124 IPC_STRUCT_MEMBER(CAContextID, ca_context_id) |
| 125 IPC_STRUCT_MEMBER(base::mac::ScopedRefCountedMachSendRight, io_surface) |
121 IPC_STRUCT_MEMBER(int32, route_id) | 126 IPC_STRUCT_MEMBER(int32, route_id) |
122 IPC_STRUCT_MEMBER(gfx::Size, size) | 127 IPC_STRUCT_MEMBER(gfx::Size, size) |
123 IPC_STRUCT_MEMBER(float, scale_factor) | 128 IPC_STRUCT_MEMBER(float, scale_factor) |
124 IPC_STRUCT_MEMBER(std::vector<ui::LatencyInfo>, latency_info) | 129 IPC_STRUCT_MEMBER(std::vector<ui::LatencyInfo>, latency_info) |
125 IPC_STRUCT_END() | 130 IPC_STRUCT_END() |
126 | 131 |
127 IPC_STRUCT_BEGIN(AcceleratedSurfaceMsg_BufferPresented_Params) | 132 IPC_STRUCT_BEGIN(AcceleratedSurfaceMsg_BufferPresented_Params) |
128 // The vsync parameters, to synchronize presentation with the display. | 133 // The vsync parameters, to synchronize presentation with the display. |
129 IPC_STRUCT_MEMBER(base::TimeTicks, vsync_timebase) | 134 IPC_STRUCT_MEMBER(base::TimeTicks, vsync_timebase) |
130 IPC_STRUCT_MEMBER(base::TimeDelta, vsync_interval) | 135 IPC_STRUCT_MEMBER(base::TimeDelta, vsync_interval) |
(...skipping 706 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
837 IPC_MESSAGE_ROUTED0(AcceleratedJpegDecoderMsg_Destroy) | 842 IPC_MESSAGE_ROUTED0(AcceleratedJpegDecoderMsg_Destroy) |
838 | 843 |
839 //------------------------------------------------------------------------------ | 844 //------------------------------------------------------------------------------ |
840 // Accelerated JPEG Decoder Host Messages | 845 // Accelerated JPEG Decoder Host Messages |
841 // These messages are sent from the GPU process to Browser process. | 846 // These messages are sent from the GPU process to Browser process. |
842 // | 847 // |
843 // Report decode status. | 848 // Report decode status. |
844 IPC_MESSAGE_ROUTED2(AcceleratedJpegDecoderHostMsg_DecodeAck, | 849 IPC_MESSAGE_ROUTED2(AcceleratedJpegDecoderHostMsg_DecodeAck, |
845 int32, /* bitstream_buffer_id */ | 850 int32, /* bitstream_buffer_id */ |
846 media::JpegDecodeAccelerator::Error /* error */) | 851 media::JpegDecodeAccelerator::Error /* error */) |
OLD | NEW |