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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 int32_t GetExtraCommandBufferData() const override; | 120 int32_t GetExtraCommandBufferData() const override; |
121 uint64_t GenerateFenceSyncRelease() override; | 121 uint64_t GenerateFenceSyncRelease() override; |
122 bool IsFenceSyncRelease(uint64_t release) override; | 122 bool IsFenceSyncRelease(uint64_t release) override; |
123 bool IsFenceSyncFlushed(uint64_t release) override; | 123 bool IsFenceSyncFlushed(uint64_t release) override; |
124 bool IsFenceSyncFlushReceived(uint64_t release) override; | 124 bool IsFenceSyncFlushReceived(uint64_t release) override; |
125 bool IsFenceSyncReleased(uint64_t release) override; | 125 bool IsFenceSyncReleased(uint64_t release) override; |
126 void SignalSyncToken(const gpu::SyncToken& sync_token, | 126 void SignalSyncToken(const gpu::SyncToken& sync_token, |
127 const base::Closure& callback) override; | 127 const base::Closure& callback) override; |
128 void WaitSyncTokenHint(const gpu::SyncToken& sync_token) override; | 128 void WaitSyncTokenHint(const gpu::SyncToken& sync_token) override; |
129 bool CanWaitUnverifiedSyncToken(const gpu::SyncToken& sync_token) override; | 129 bool CanWaitUnverifiedSyncToken(const gpu::SyncToken& sync_token) override; |
| 130 void AddLatencyInfo( |
| 131 const std::vector<ui::LatencyInfo>& latency_info) override; |
130 | 132 |
131 void TakeFrontBuffer(const gpu::Mailbox& mailbox); | 133 void TakeFrontBuffer(const gpu::Mailbox& mailbox); |
132 void ReturnFrontBuffer(const gpu::Mailbox& mailbox, | 134 void ReturnFrontBuffer(const gpu::Mailbox& mailbox, |
133 const gpu::SyncToken& sync_token, | 135 const gpu::SyncToken& sync_token, |
134 bool is_lost); | 136 bool is_lost); |
135 | 137 |
136 void AddDeletionObserver(DeletionObserver* observer); | 138 void AddDeletionObserver(DeletionObserver* observer); |
137 void RemoveDeletionObserver(DeletionObserver* observer); | 139 void RemoveDeletionObserver(DeletionObserver* observer); |
138 | 140 |
139 bool EnsureBackbuffer(); | 141 bool EnsureBackbuffer(); |
140 | 142 |
141 void SetOnConsoleMessageCallback(const GpuConsoleMessageCallback& callback); | 143 void SetOnConsoleMessageCallback(const GpuConsoleMessageCallback& callback); |
142 | 144 |
143 void SetLatencyInfo(const std::vector<ui::LatencyInfo>& latency_info); | |
144 using SwapBuffersCompletionCallback = base::Callback<void( | 145 using SwapBuffersCompletionCallback = base::Callback<void( |
145 const std::vector<ui::LatencyInfo>& latency_info, | 146 const std::vector<ui::LatencyInfo>& latency_info, |
146 gfx::SwapResult result, | 147 gfx::SwapResult result, |
147 const gpu::GpuProcessHostedCALayerTreeParamsMac* params_mac)>; | 148 const gpu::GpuProcessHostedCALayerTreeParamsMac* params_mac)>; |
148 void SetSwapBuffersCompletionCallback( | 149 void SetSwapBuffersCompletionCallback( |
149 const SwapBuffersCompletionCallback& callback); | 150 const SwapBuffersCompletionCallback& callback); |
150 | 151 |
151 using UpdateVSyncParametersCallback = | 152 using UpdateVSyncParametersCallback = |
152 base::Callback<void(base::TimeTicks timebase, base::TimeDelta interval)>; | 153 base::Callback<void(base::TimeTicks timebase, base::TimeDelta interval)>; |
153 void SetUpdateVSyncParametersCallback( | 154 void SetUpdateVSyncParametersCallback( |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 | 295 |
295 base::WeakPtr<CommandBufferProxyImpl> weak_this_; | 296 base::WeakPtr<CommandBufferProxyImpl> weak_this_; |
296 scoped_refptr<base::SequencedTaskRunner> callback_thread_; | 297 scoped_refptr<base::SequencedTaskRunner> callback_thread_; |
297 | 298 |
298 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxyImpl); | 299 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxyImpl); |
299 }; | 300 }; |
300 | 301 |
301 } // namespace gpu | 302 } // namespace gpu |
302 | 303 |
303 #endif // GPU_IPC_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ | 304 #endif // GPU_IPC_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ |
OLD | NEW |