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 1000 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1011 | 1011 |
1012 void InProcessCommandBuffer::SignalSyncToken(const SyncToken& sync_token, | 1012 void InProcessCommandBuffer::SignalSyncToken(const SyncToken& sync_token, |
1013 const base::Closure& callback) { | 1013 const base::Closure& callback) { |
1014 CheckSequencedThread(); | 1014 CheckSequencedThread(); |
1015 QueueTask( | 1015 QueueTask( |
1016 true, | 1016 true, |
1017 base::Bind(&InProcessCommandBuffer::SignalSyncTokenOnGpuThread, | 1017 base::Bind(&InProcessCommandBuffer::SignalSyncTokenOnGpuThread, |
1018 base::Unretained(this), sync_token, WrapCallback(callback))); | 1018 base::Unretained(this), sync_token, WrapCallback(callback))); |
1019 } | 1019 } |
1020 | 1020 |
| 1021 void InProcessCommandBuffer::WaitSyncToken(const SyncToken& sync_token) {} |
| 1022 |
1021 bool InProcessCommandBuffer::CanWaitUnverifiedSyncToken( | 1023 bool InProcessCommandBuffer::CanWaitUnverifiedSyncToken( |
1022 const SyncToken* sync_token) { | 1024 const SyncToken& sync_token) { |
1023 return sync_token->namespace_id() == GetNamespaceID(); | 1025 return sync_token.namespace_id() == GetNamespaceID(); |
1024 } | 1026 } |
1025 | 1027 |
1026 #if defined(OS_WIN) | 1028 #if defined(OS_WIN) |
1027 void InProcessCommandBuffer::DidCreateAcceleratedSurfaceChildWindow( | 1029 void InProcessCommandBuffer::DidCreateAcceleratedSurfaceChildWindow( |
1028 SurfaceHandle parent_window, | 1030 SurfaceHandle parent_window, |
1029 SurfaceHandle child_window) { | 1031 SurfaceHandle child_window) { |
1030 ::SetParent(child_window, parent_window); | 1032 ::SetParent(child_window, parent_window); |
1031 } | 1033 } |
1032 #endif | 1034 #endif |
1033 | 1035 |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1156 return wrapped_callback; | 1158 return wrapped_callback; |
1157 } | 1159 } |
1158 | 1160 |
1159 InProcessCommandBuffer::GpuTask::GpuTask(const base::Closure& callback, | 1161 InProcessCommandBuffer::GpuTask::GpuTask(const base::Closure& callback, |
1160 uint32_t order_number) | 1162 uint32_t order_number) |
1161 : callback(callback), order_number(order_number) {} | 1163 : callback(callback), order_number(order_number) {} |
1162 | 1164 |
1163 InProcessCommandBuffer::GpuTask::~GpuTask() {} | 1165 InProcessCommandBuffer::GpuTask::~GpuTask() {} |
1164 | 1166 |
1165 } // namespace gpu | 1167 } // namespace gpu |
OLD | NEW |