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 956 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
967 QueueTask(base::Bind(&InProcessCommandBuffer::SignalSyncTokenOnGpuThread, | 967 QueueTask(base::Bind(&InProcessCommandBuffer::SignalSyncTokenOnGpuThread, |
968 base::Unretained(this), sync_token, | 968 base::Unretained(this), sync_token, |
969 WrapCallback(callback))); | 969 WrapCallback(callback))); |
970 } | 970 } |
971 | 971 |
972 bool InProcessCommandBuffer::CanWaitUnverifiedSyncToken( | 972 bool InProcessCommandBuffer::CanWaitUnverifiedSyncToken( |
973 const SyncToken* sync_token) { | 973 const SyncToken* sync_token) { |
974 return sync_token->namespace_id() == GetNamespaceID(); | 974 return sync_token->namespace_id() == GetNamespaceID(); |
975 } | 975 } |
976 | 976 |
| 977 int32_t InProcessCommandBuffer::CreateFence(ClientFence fence) { |
| 978 NOTIMPLEMENTED(); |
| 979 return -1; |
| 980 } |
| 981 |
| 982 void InProcessCommandBuffer::DestroyFence(int32_t id) { |
| 983 NOTIMPLEMENTED(); |
| 984 } |
| 985 |
977 gpu::error::Error InProcessCommandBuffer::GetLastError() { | 986 gpu::error::Error InProcessCommandBuffer::GetLastError() { |
978 CheckSequencedThread(); | 987 CheckSequencedThread(); |
979 return last_state_.error; | 988 return last_state_.error; |
980 } | 989 } |
981 | 990 |
982 namespace { | 991 namespace { |
983 | 992 |
984 void PostCallback( | 993 void PostCallback( |
985 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, | 994 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, |
986 const base::Closure& callback) { | 995 const base::Closure& callback) { |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1060 framebuffer_completeness_cache_ = | 1069 framebuffer_completeness_cache_ = |
1061 new gpu::gles2::FramebufferCompletenessCache; | 1070 new gpu::gles2::FramebufferCompletenessCache; |
1062 return framebuffer_completeness_cache_; | 1071 return framebuffer_completeness_cache_; |
1063 } | 1072 } |
1064 | 1073 |
1065 SyncPointManager* GpuInProcessThread::sync_point_manager() { | 1074 SyncPointManager* GpuInProcessThread::sync_point_manager() { |
1066 return sync_point_manager_; | 1075 return sync_point_manager_; |
1067 } | 1076 } |
1068 | 1077 |
1069 } // namespace gpu | 1078 } // namespace gpu |
OLD | NEW |