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

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

Issue 2814483002: Splitting up RenderWidgetHostLatencyTracker and some renames. (Closed)
Patch Set: [Moving OnGpuSwapBuffersCompleted() back up. 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
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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 const gpu::SyncToken& sync_token, 133 const gpu::SyncToken& sync_token,
134 bool is_lost); 134 bool is_lost);
135 135
136 void AddDeletionObserver(DeletionObserver* observer); 136 void AddDeletionObserver(DeletionObserver* observer);
137 void RemoveDeletionObserver(DeletionObserver* observer); 137 void RemoveDeletionObserver(DeletionObserver* observer);
138 138
139 bool EnsureBackbuffer(); 139 bool EnsureBackbuffer();
140 140
141 void SetOnConsoleMessageCallback(const GpuConsoleMessageCallback& callback); 141 void SetOnConsoleMessageCallback(const GpuConsoleMessageCallback& callback);
142 142
143 void SetLatencyInfo(const std::vector<ui::LatencyInfo>& latency_info); 143 void AddLatencyInfo(const std::vector<ui::LatencyInfo>& latency_info);
144 using SwapBuffersCompletionCallback = base::Callback<void( 144 using SwapBuffersCompletionCallback = base::Callback<void(
145 const std::vector<ui::LatencyInfo>& latency_info, 145 const std::vector<ui::LatencyInfo>& latency_info,
146 gfx::SwapResult result, 146 gfx::SwapResult result,
147 const gpu::GpuProcessHostedCALayerTreeParamsMac* params_mac)>; 147 const gpu::GpuProcessHostedCALayerTreeParamsMac* params_mac)>;
148 void SetSwapBuffersCompletionCallback( 148 void SetSwapBuffersCompletionCallback(
149 const SwapBuffersCompletionCallback& callback); 149 const SwapBuffersCompletionCallback& callback);
150 150
151 using UpdateVSyncParametersCallback = 151 using UpdateVSyncParametersCallback =
152 base::Callback<void(base::TimeTicks timebase, base::TimeDelta interval)>; 152 base::Callback<void(base::TimeTicks timebase, base::TimeDelta interval)>;
153 void SetUpdateVSyncParametersCallback( 153 void SetUpdateVSyncParametersCallback(
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 294
295 base::WeakPtr<CommandBufferProxyImpl> weak_this_; 295 base::WeakPtr<CommandBufferProxyImpl> weak_this_;
296 scoped_refptr<base::SequencedTaskRunner> callback_thread_; 296 scoped_refptr<base::SequencedTaskRunner> callback_thread_;
297 297
298 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxyImpl); 298 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxyImpl);
299 }; 299 };
300 300
301 } // namespace gpu 301 } // namespace gpu
302 302
303 #endif // GPU_IPC_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ 303 #endif // GPU_IPC_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698