OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include "gpu/ipc/in_process_command_buffer.h" | 5 #include "gpu/ipc/in_process_command_buffer.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <queue> | 10 #include <queue> |
(...skipping 1067 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1078 if (!origin_task_runner_) { | 1078 if (!origin_task_runner_) { |
1079 UpdateVSyncParametersOnOriginThread(timebase, interval); | 1079 UpdateVSyncParametersOnOriginThread(timebase, interval); |
1080 return; | 1080 return; |
1081 } | 1081 } |
1082 origin_task_runner_->PostTask( | 1082 origin_task_runner_->PostTask( |
1083 FROM_HERE, | 1083 FROM_HERE, |
1084 base::Bind(&InProcessCommandBuffer::UpdateVSyncParametersOnOriginThread, | 1084 base::Bind(&InProcessCommandBuffer::UpdateVSyncParametersOnOriginThread, |
1085 client_thread_weak_ptr_, timebase, interval)); | 1085 client_thread_weak_ptr_, timebase, interval)); |
1086 } | 1086 } |
1087 | 1087 |
| 1088 void InProcessCommandBuffer::AddFilter(IPC::MessageFilter* message_filter) { |
| 1089 NOTREACHED(); |
| 1090 } |
| 1091 |
| 1092 int32_t InProcessCommandBuffer::GetRouteID() const { |
| 1093 NOTREACHED(); |
| 1094 return 0; |
| 1095 } |
| 1096 |
1088 void InProcessCommandBuffer::DidSwapBuffersCompleteOnOriginThread( | 1097 void InProcessCommandBuffer::DidSwapBuffersCompleteOnOriginThread( |
1089 SwapBuffersCompleteParams params) { | 1098 SwapBuffersCompleteParams params) { |
1090 #if defined(OS_MACOSX) | 1099 #if defined(OS_MACOSX) |
1091 gpu::GpuProcessHostedCALayerTreeParamsMac params_mac; | 1100 gpu::GpuProcessHostedCALayerTreeParamsMac params_mac; |
1092 params_mac.ca_context_id = params.ca_context_id; | 1101 params_mac.ca_context_id = params.ca_context_id; |
1093 params_mac.fullscreen_low_power_ca_context_valid = | 1102 params_mac.fullscreen_low_power_ca_context_valid = |
1094 params.fullscreen_low_power_ca_context_valid; | 1103 params.fullscreen_low_power_ca_context_valid; |
1095 params_mac.fullscreen_low_power_ca_context_id = | 1104 params_mac.fullscreen_low_power_ca_context_id = |
1096 params.fullscreen_low_power_ca_context_id; | 1105 params.fullscreen_low_power_ca_context_id; |
1097 params_mac.io_surface.reset(IOSurfaceLookupFromMachPort(params.io_surface)); | 1106 params_mac.io_surface.reset(IOSurfaceLookupFromMachPort(params.io_surface)); |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1168 return wrapped_callback; | 1177 return wrapped_callback; |
1169 } | 1178 } |
1170 | 1179 |
1171 InProcessCommandBuffer::GpuTask::GpuTask(const base::Closure& callback, | 1180 InProcessCommandBuffer::GpuTask::GpuTask(const base::Closure& callback, |
1172 uint32_t order_number) | 1181 uint32_t order_number) |
1173 : callback(callback), order_number(order_number) {} | 1182 : callback(callback), order_number(order_number) {} |
1174 | 1183 |
1175 InProcessCommandBuffer::GpuTask::~GpuTask() {} | 1184 InProcessCommandBuffer::GpuTask::~GpuTask() {} |
1176 | 1185 |
1177 } // namespace gpu | 1186 } // namespace gpu |
OLD | NEW |