Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(196)

Side by Side Diff: gpu/ipc/client/command_buffer_proxy_impl.h

Issue 2771053003: WIP: Plumbing input event latency reporting through Mus GPU.
Patch Set: NON_EXPORTED_BASE Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gpu/ipc/DEPS ('k') | gpu/ipc/client/command_buffer_proxy_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « gpu/ipc/DEPS ('k') | gpu/ipc/client/command_buffer_proxy_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698