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

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

Issue 2555173003: [Do not submit] D3DKMTWaitForVerticalBlankEvent VSync prototype (Closed)
Patch Set: Added command line switch and experiment support Created 3 years, 11 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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 gfx::SwapResult result, 149 gfx::SwapResult result,
150 const gpu::GpuProcessHostedCALayerTreeParamsMac* params_mac)>; 150 const gpu::GpuProcessHostedCALayerTreeParamsMac* params_mac)>;
151 void SetSwapBuffersCompletionCallback( 151 void SetSwapBuffersCompletionCallback(
152 const SwapBuffersCompletionCallback& callback); 152 const SwapBuffersCompletionCallback& callback);
153 153
154 using UpdateVSyncParametersCallback = 154 using UpdateVSyncParametersCallback =
155 base::Callback<void(base::TimeTicks timebase, base::TimeDelta interval)>; 155 base::Callback<void(base::TimeTicks timebase, base::TimeDelta interval)>;
156 void SetUpdateVSyncParametersCallback( 156 void SetUpdateVSyncParametersCallback(
157 const UpdateVSyncParametersCallback& callback); 157 const UpdateVSyncParametersCallback& callback);
158 158
159 void EnableVSync(bool enabled);
160
159 int32_t route_id() const { return route_id_; } 161 int32_t route_id() const { return route_id_; }
160 162
161 const scoped_refptr<GpuChannelHost>& channel() const { return channel_; } 163 const scoped_refptr<GpuChannelHost>& channel() const { return channel_; }
162 164
163 base::SharedMemoryHandle GetSharedStateHandle() const { 165 base::SharedMemoryHandle GetSharedStateHandle() const {
164 return shared_state_shm_->handle(); 166 return shared_state_shm_->handle();
165 } 167 }
166 uint32_t CreateStreamTexture(uint32_t texture_id); 168 uint32_t CreateStreamTexture(uint32_t texture_id);
167 169
168 private: 170 private:
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 295
294 base::WeakPtr<CommandBufferProxyImpl> weak_this_; 296 base::WeakPtr<CommandBufferProxyImpl> weak_this_;
295 scoped_refptr<base::SequencedTaskRunner> callback_thread_; 297 scoped_refptr<base::SequencedTaskRunner> callback_thread_;
296 298
297 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxyImpl); 299 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxyImpl);
298 }; 300 };
299 301
300 } // namespace gpu 302 } // namespace gpu
301 303
302 #endif // GPU_IPC_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ 304 #endif // GPU_IPC_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698