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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 gpu::CommandBufferNamespace GetNamespaceID() const override; | 128 gpu::CommandBufferNamespace GetNamespaceID() const override; |
129 gpu::CommandBufferId GetCommandBufferID() const override; | 129 gpu::CommandBufferId GetCommandBufferID() const override; |
130 int32_t GetExtraCommandBufferData() const override; | 130 int32_t GetExtraCommandBufferData() const override; |
131 uint64_t GenerateFenceSyncRelease() override; | 131 uint64_t GenerateFenceSyncRelease() override; |
132 bool IsFenceSyncRelease(uint64_t release) override; | 132 bool IsFenceSyncRelease(uint64_t release) override; |
133 bool IsFenceSyncFlushed(uint64_t release) override; | 133 bool IsFenceSyncFlushed(uint64_t release) override; |
134 bool IsFenceSyncFlushReceived(uint64_t release) override; | 134 bool IsFenceSyncFlushReceived(uint64_t release) override; |
135 void SignalSyncToken(const gpu::SyncToken& sync_token, | 135 void SignalSyncToken(const gpu::SyncToken& sync_token, |
136 const base::Closure& callback) override; | 136 const base::Closure& callback) override; |
137 bool CanWaitUnverifiedSyncToken(const gpu::SyncToken* sync_token) override; | 137 bool CanWaitUnverifiedSyncToken(const gpu::SyncToken* sync_token) override; |
| 138 int32_t CreateFence(ClientFence fence) override; |
| 139 void DestroyFence(int32_t id) override; |
138 | 140 |
139 void TakeFrontBuffer(const gpu::Mailbox& mailbox); | 141 void TakeFrontBuffer(const gpu::Mailbox& mailbox); |
140 void ReturnFrontBuffer(const gpu::Mailbox& mailbox, | 142 void ReturnFrontBuffer(const gpu::Mailbox& mailbox, |
141 const gpu::SyncToken& sync_token, | 143 const gpu::SyncToken& sync_token, |
142 bool is_lost); | 144 bool is_lost); |
143 | 145 |
144 void AddDeletionObserver(DeletionObserver* observer); | 146 void AddDeletionObserver(DeletionObserver* observer); |
145 void RemoveDeletionObserver(DeletionObserver* observer); | 147 void RemoveDeletionObserver(DeletionObserver* observer); |
146 | 148 |
147 bool EnsureBackbuffer(); | 149 bool EnsureBackbuffer(); |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
297 | 299 |
298 base::WeakPtr<CommandBufferProxyImpl> weak_this_; | 300 base::WeakPtr<CommandBufferProxyImpl> weak_this_; |
299 scoped_refptr<base::SequencedTaskRunner> callback_thread_; | 301 scoped_refptr<base::SequencedTaskRunner> callback_thread_; |
300 | 302 |
301 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxyImpl); | 303 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxyImpl); |
302 }; | 304 }; |
303 | 305 |
304 } // namespace gpu | 306 } // namespace gpu |
305 | 307 |
306 #endif // GPU_IPC_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ | 308 #endif // GPU_IPC_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ |
OLD | NEW |