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 #ifndef GPU_IPC_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ | 5 #ifndef GPU_IPC_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ |
6 #define GPU_IPC_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ | 6 #define GPU_IPC_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 size_t width, | 95 size_t width, |
96 size_t height, | 96 size_t height, |
97 unsigned internal_format) override; | 97 unsigned internal_format) override; |
98 void DestroyImage(int32_t id) override; | 98 void DestroyImage(int32_t id) override; |
99 int32_t CreateGpuMemoryBufferImage(size_t width, | 99 int32_t CreateGpuMemoryBufferImage(size_t width, |
100 size_t height, | 100 size_t height, |
101 unsigned internal_format, | 101 unsigned internal_format, |
102 unsigned usage) override; | 102 unsigned usage) override; |
103 void SignalQuery(uint32_t query, const base::Closure& callback) override; | 103 void SignalQuery(uint32_t query, const base::Closure& callback) override; |
104 void SetLock(base::Lock* lock) override; | 104 void SetLock(base::Lock* lock) override; |
| 105 void DetachFromThread() { lockless_thread_checker_.DetachFromThread(); } |
105 void EnsureWorkVisible() override; | 106 void EnsureWorkVisible() override; |
106 gpu::CommandBufferNamespace GetNamespaceID() const override; | 107 gpu::CommandBufferNamespace GetNamespaceID() const override; |
107 gpu::CommandBufferId GetCommandBufferID() const override; | 108 gpu::CommandBufferId GetCommandBufferID() const override; |
108 int32_t GetExtraCommandBufferData() const override; | 109 int32_t GetExtraCommandBufferData() const override; |
109 uint64_t GenerateFenceSyncRelease() override; | 110 uint64_t GenerateFenceSyncRelease() override; |
110 bool IsFenceSyncRelease(uint64_t release) override; | 111 bool IsFenceSyncRelease(uint64_t release) override; |
111 bool IsFenceSyncFlushed(uint64_t release) override; | 112 bool IsFenceSyncFlushed(uint64_t release) override; |
112 bool IsFenceSyncFlushReceived(uint64_t release) override; | 113 bool IsFenceSyncFlushReceived(uint64_t release) override; |
113 void SignalSyncToken(const gpu::SyncToken& sync_token, | 114 void SignalSyncToken(const gpu::SyncToken& sync_token, |
114 const base::Closure& callback) override; | 115 const base::Closure& callback) override; |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 | 268 |
268 base::WeakPtr<CommandBufferProxyImpl> weak_this_; | 269 base::WeakPtr<CommandBufferProxyImpl> weak_this_; |
269 scoped_refptr<base::SequencedTaskRunner> callback_thread_; | 270 scoped_refptr<base::SequencedTaskRunner> callback_thread_; |
270 | 271 |
271 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxyImpl); | 272 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxyImpl); |
272 }; | 273 }; |
273 | 274 |
274 } // namespace gpu | 275 } // namespace gpu |
275 | 276 |
276 #endif // GPU_IPC_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ | 277 #endif // GPU_IPC_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ |
OLD | NEW |