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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 gpu::CommandBufferId GetCommandBufferID() const override; | 107 gpu::CommandBufferId GetCommandBufferID() const override; |
108 int32_t GetExtraCommandBufferData() const override; | 108 int32_t GetExtraCommandBufferData() const override; |
109 uint64_t GenerateFenceSyncRelease() override; | 109 uint64_t GenerateFenceSyncRelease() override; |
110 bool IsFenceSyncRelease(uint64_t release) override; | 110 bool IsFenceSyncRelease(uint64_t release) override; |
111 bool IsFenceSyncFlushed(uint64_t release) override; | 111 bool IsFenceSyncFlushed(uint64_t release) override; |
112 bool IsFenceSyncFlushReceived(uint64_t release) override; | 112 bool IsFenceSyncFlushReceived(uint64_t release) override; |
113 void SignalSyncToken(const gpu::SyncToken& sync_token, | 113 void SignalSyncToken(const gpu::SyncToken& sync_token, |
114 const base::Closure& callback) override; | 114 const base::Closure& callback) override; |
115 bool CanWaitUnverifiedSyncToken(const gpu::SyncToken* sync_token) override; | 115 bool CanWaitUnverifiedSyncToken(const gpu::SyncToken* sync_token) override; |
116 | 116 |
117 bool ProduceFrontBuffer(const gpu::Mailbox& mailbox); | 117 void TakeFrontBuffer(const gpu::Mailbox& mailbox); |
| 118 void ReturnFrontBuffer(const gpu::Mailbox& mailbox, |
| 119 const gpu::SyncToken& sync_token, |
| 120 bool is_lost); |
118 | 121 |
119 void AddDeletionObserver(DeletionObserver* observer); | 122 void AddDeletionObserver(DeletionObserver* observer); |
120 void RemoveDeletionObserver(DeletionObserver* observer); | 123 void RemoveDeletionObserver(DeletionObserver* observer); |
121 | 124 |
122 bool EnsureBackbuffer(); | 125 bool EnsureBackbuffer(); |
123 | 126 |
124 void SetOnConsoleMessageCallback(const GpuConsoleMessageCallback& callback); | 127 void SetOnConsoleMessageCallback(const GpuConsoleMessageCallback& callback); |
125 | 128 |
126 void SetLatencyInfo(const std::vector<ui::LatencyInfo>& latency_info); | 129 void SetLatencyInfo(const std::vector<ui::LatencyInfo>& latency_info); |
127 using SwapBuffersCompletionCallback = | 130 using SwapBuffersCompletionCallback = |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 | 250 |
248 base::WeakPtr<CommandBufferProxyImpl> weak_this_; | 251 base::WeakPtr<CommandBufferProxyImpl> weak_this_; |
249 scoped_refptr<base::SequencedTaskRunner> callback_thread_; | 252 scoped_refptr<base::SequencedTaskRunner> callback_thread_; |
250 | 253 |
251 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxyImpl); | 254 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxyImpl); |
252 }; | 255 }; |
253 | 256 |
254 } // namespace gpu | 257 } // namespace gpu |
255 | 258 |
256 #endif // GPU_IPC_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ | 259 #endif // GPU_IPC_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ |
OLD | NEW |