| 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 gpu::CommandBufferId GetCommandBufferID() const override; | 130 gpu::CommandBufferId GetCommandBufferID() const override; |
| 131 int32_t GetExtraCommandBufferData() const override; | 131 int32_t GetExtraCommandBufferData() const override; |
| 132 uint64_t GenerateFenceSyncRelease() override; | 132 uint64_t GenerateFenceSyncRelease() override; |
| 133 bool IsFenceSyncRelease(uint64_t release) override; | 133 bool IsFenceSyncRelease(uint64_t release) override; |
| 134 bool IsFenceSyncFlushed(uint64_t release) override; | 134 bool IsFenceSyncFlushed(uint64_t release) override; |
| 135 bool IsFenceSyncFlushReceived(uint64_t release) override; | 135 bool IsFenceSyncFlushReceived(uint64_t release) override; |
| 136 void SignalSyncToken(const gpu::SyncToken& sync_token, | 136 void SignalSyncToken(const gpu::SyncToken& sync_token, |
| 137 const base::Closure& callback) override; | 137 const base::Closure& callback) override; |
| 138 bool CanWaitUnverifiedSyncToken(const gpu::SyncToken* sync_token) override; | 138 bool CanWaitUnverifiedSyncToken(const gpu::SyncToken* sync_token) override; |
| 139 | 139 |
| 140 void TakeFrontBuffer(const gpu::Mailbox& mailbox); | 140 bool ProduceFrontBuffer(const gpu::Mailbox& mailbox); |
| 141 void ReturnFrontBuffer(const gpu::Mailbox& mailbox, | |
| 142 const gpu::SyncToken& sync_token, | |
| 143 bool is_lost); | |
| 144 | 141 |
| 145 void AddDeletionObserver(DeletionObserver* observer); | 142 void AddDeletionObserver(DeletionObserver* observer); |
| 146 void RemoveDeletionObserver(DeletionObserver* observer); | 143 void RemoveDeletionObserver(DeletionObserver* observer); |
| 147 | 144 |
| 148 bool EnsureBackbuffer(); | 145 bool EnsureBackbuffer(); |
| 149 | 146 |
| 150 void SetOnConsoleMessageCallback(const GpuConsoleMessageCallback& callback); | 147 void SetOnConsoleMessageCallback(const GpuConsoleMessageCallback& callback); |
| 151 | 148 |
| 152 void SetLatencyInfo(const std::vector<ui::LatencyInfo>& latency_info); | 149 void SetLatencyInfo(const std::vector<ui::LatencyInfo>& latency_info); |
| 153 using SwapBuffersCompletionCallback = base::Callback<void( | 150 using SwapBuffersCompletionCallback = base::Callback<void( |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 297 | 294 |
| 298 base::WeakPtr<CommandBufferProxyImpl> weak_this_; | 295 base::WeakPtr<CommandBufferProxyImpl> weak_this_; |
| 299 scoped_refptr<base::SequencedTaskRunner> callback_thread_; | 296 scoped_refptr<base::SequencedTaskRunner> callback_thread_; |
| 300 | 297 |
| 301 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxyImpl); | 298 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxyImpl); |
| 302 }; | 299 }; |
| 303 | 300 |
| 304 } // namespace gpu | 301 } // namespace gpu |
| 305 | 302 |
| 306 #endif // GPU_IPC_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ | 303 #endif // GPU_IPC_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ |
| OLD | NEW |