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

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

Issue 2626413002: Route D3D VSync signal to Compositor (Closed)
Patch Set: Merged with recent BeginFrameSource changes Created 3 years, 10 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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 gfx::SwapResult result, 145 gfx::SwapResult result,
146 const gpu::GpuProcessHostedCALayerTreeParamsMac* params_mac)>; 146 const gpu::GpuProcessHostedCALayerTreeParamsMac* params_mac)>;
147 void SetSwapBuffersCompletionCallback( 147 void SetSwapBuffersCompletionCallback(
148 const SwapBuffersCompletionCallback& callback); 148 const SwapBuffersCompletionCallback& callback);
149 149
150 using UpdateVSyncParametersCallback = 150 using UpdateVSyncParametersCallback =
151 base::Callback<void(base::TimeTicks timebase, base::TimeDelta interval)>; 151 base::Callback<void(base::TimeTicks timebase, base::TimeDelta interval)>;
152 void SetUpdateVSyncParametersCallback( 152 void SetUpdateVSyncParametersCallback(
153 const UpdateVSyncParametersCallback& callback); 153 const UpdateVSyncParametersCallback& callback);
154 154
155 void SetNeedsVSync(bool needs_vsync);
156
155 int32_t route_id() const { return route_id_; } 157 int32_t route_id() const { return route_id_; }
156 158
157 const scoped_refptr<GpuChannelHost>& channel() const { return channel_; } 159 const scoped_refptr<GpuChannelHost>& channel() const { return channel_; }
158 160
159 base::SharedMemoryHandle GetSharedStateHandle() const { 161 base::SharedMemoryHandle GetSharedStateHandle() const {
160 return shared_state_shm_->handle(); 162 return shared_state_shm_->handle();
161 } 163 }
162 uint32_t CreateStreamTexture(uint32_t texture_id); 164 uint32_t CreateStreamTexture(uint32_t texture_id);
163 165
164 private: 166 private:
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 291
290 base::WeakPtr<CommandBufferProxyImpl> weak_this_; 292 base::WeakPtr<CommandBufferProxyImpl> weak_this_;
291 scoped_refptr<base::SequencedTaskRunner> callback_thread_; 293 scoped_refptr<base::SequencedTaskRunner> callback_thread_;
292 294
293 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxyImpl); 295 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxyImpl);
294 }; 296 };
295 297
296 } // namespace gpu 298 } // namespace gpu
297 299
298 #endif // GPU_IPC_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ 300 #endif // GPU_IPC_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/compositor/gpu_vsync_begin_frame_source.cc ('k') | gpu/ipc/client/command_buffer_proxy_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698