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 1047 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1058 if (!origin_task_runner_) { | 1058 if (!origin_task_runner_) { |
1059 UpdateVSyncParametersOnOriginThread(timebase, interval); | 1059 UpdateVSyncParametersOnOriginThread(timebase, interval); |
1060 return; | 1060 return; |
1061 } | 1061 } |
1062 origin_task_runner_->PostTask( | 1062 origin_task_runner_->PostTask( |
1063 FROM_HERE, | 1063 FROM_HERE, |
1064 base::Bind(&InProcessCommandBuffer::UpdateVSyncParametersOnOriginThread, | 1064 base::Bind(&InProcessCommandBuffer::UpdateVSyncParametersOnOriginThread, |
1065 client_thread_weak_ptr_, timebase, interval)); | 1065 client_thread_weak_ptr_, timebase, interval)); |
1066 } | 1066 } |
1067 | 1067 |
1068 void InProcessCommandBuffer::AddFilter(IPC::MessageFilter* message_filter) { | |
1069 NOTREACHED(); | |
Fady Samuel
2017/02/14 09:09:38
This is used by Mus. Any reason not to update this
stanisc
2017/02/14 19:56:13
I am not sure GPU VSyncProvider could be used with
| |
1070 } | |
1071 | |
1072 int32_t InProcessCommandBuffer::GetRouteID() const { | |
1073 NOTREACHED(); | |
Fady Samuel
2017/02/14 09:09:38
This is used by Mus. Any reason not to update this
stanisc
2017/02/14 19:56:13
See above.
| |
1074 return 0; | |
1075 } | |
1076 | |
1068 void InProcessCommandBuffer::DidSwapBuffersCompleteOnOriginThread( | 1077 void InProcessCommandBuffer::DidSwapBuffersCompleteOnOriginThread( |
1069 SwapBuffersCompleteParams params) { | 1078 SwapBuffersCompleteParams params) { |
1070 #if defined(OS_MACOSX) | 1079 #if defined(OS_MACOSX) |
1071 gpu::GpuProcessHostedCALayerTreeParamsMac params_mac; | 1080 gpu::GpuProcessHostedCALayerTreeParamsMac params_mac; |
1072 params_mac.ca_context_id = params.ca_context_id; | 1081 params_mac.ca_context_id = params.ca_context_id; |
1073 params_mac.fullscreen_low_power_ca_context_valid = | 1082 params_mac.fullscreen_low_power_ca_context_valid = |
1074 params.fullscreen_low_power_ca_context_valid; | 1083 params.fullscreen_low_power_ca_context_valid; |
1075 params_mac.fullscreen_low_power_ca_context_id = | 1084 params_mac.fullscreen_low_power_ca_context_id = |
1076 params.fullscreen_low_power_ca_context_id; | 1085 params.fullscreen_low_power_ca_context_id; |
1077 params_mac.io_surface.reset(IOSurfaceLookupFromMachPort(params.io_surface)); | 1086 params_mac.io_surface.reset(IOSurfaceLookupFromMachPort(params.io_surface)); |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1148 return wrapped_callback; | 1157 return wrapped_callback; |
1149 } | 1158 } |
1150 | 1159 |
1151 InProcessCommandBuffer::GpuTask::GpuTask(const base::Closure& callback, | 1160 InProcessCommandBuffer::GpuTask::GpuTask(const base::Closure& callback, |
1152 uint32_t order_number) | 1161 uint32_t order_number) |
1153 : callback(callback), order_number(order_number) {} | 1162 : callback(callback), order_number(order_number) {} |
1154 | 1163 |
1155 InProcessCommandBuffer::GpuTask::~GpuTask() {} | 1164 InProcessCommandBuffer::GpuTask::~GpuTask() {} |
1156 | 1165 |
1157 } // namespace gpu | 1166 } // namespace gpu |
OLD | NEW |