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

Side by Side Diff: gpu/ipc/in_process_command_buffer.h

Issue 2529703002: Mus: Install SwapBuffersCompleted/VSync callbacks to DirectOutputSurface(Ozone) (Closed)
Patch Set: Grab capabilities from the InProcessCommandBuffer instead of making them up Created 4 years 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/gl_in_process_context.cc ('k') | gpu/ipc/in_process_command_buffer.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_IN_PROCESS_COMMAND_BUFFER_H_ 5 #ifndef GPU_IPC_IN_PROCESS_COMMAND_BUFFER_H_
6 #define GPU_IPC_IN_PROCESS_COMMAND_BUFFER_H_ 6 #define GPU_IPC_IN_PROCESS_COMMAND_BUFFER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 gfx::SwapResult result, 153 gfx::SwapResult result,
154 const gpu::GpuProcessHostedCALayerTreeParamsMac* params_mac)>; 154 const gpu::GpuProcessHostedCALayerTreeParamsMac* params_mac)>;
155 void SetSwapBuffersCompletionCallback( 155 void SetSwapBuffersCompletionCallback(
156 const SwapBuffersCompletionCallback& callback); 156 const SwapBuffersCompletionCallback& callback);
157 157
158 using UpdateVSyncParametersCallback = 158 using UpdateVSyncParametersCallback =
159 base::Callback<void(base::TimeTicks timebase, base::TimeDelta interval)>; 159 base::Callback<void(base::TimeTicks timebase, base::TimeDelta interval)>;
160 void SetUpdateVSyncParametersCallback( 160 void SetUpdateVSyncParametersCallback(
161 const UpdateVSyncParametersCallback& callback); 161 const UpdateVSyncParametersCallback& callback);
162 162
163 void DidSwapBuffersCompleteOnOriginThread(SwapBuffersCompleteParams params);
164 void UpdateVSyncParametersOnOriginThread(base::TimeTicks timebase,
165 base::TimeDelta interval);
166
163 // The serializer interface to the GPU service (i.e. thread). 167 // The serializer interface to the GPU service (i.e. thread).
164 class Service { 168 class Service {
165 public: 169 public:
166 Service(); 170 Service();
167 Service(const gpu::GpuPreferences& gpu_preferences); 171 Service(const gpu::GpuPreferences& gpu_preferences);
168 Service(gpu::gles2::MailboxManager* mailbox_manager, 172 Service(gpu::gles2::MailboxManager* mailbox_manager,
169 scoped_refptr<gl::GLShareGroup> share_group); 173 scoped_refptr<gl::GLShareGroup> share_group);
170 174
171 virtual ~Service(); 175 virtual ~Service();
172 176
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 base::WeakPtr<InProcessCommandBuffer> gpu_thread_weak_ptr_; 336 base::WeakPtr<InProcessCommandBuffer> gpu_thread_weak_ptr_;
333 base::WeakPtrFactory<InProcessCommandBuffer> client_thread_weak_ptr_factory_; 337 base::WeakPtrFactory<InProcessCommandBuffer> client_thread_weak_ptr_factory_;
334 base::WeakPtrFactory<InProcessCommandBuffer> gpu_thread_weak_ptr_factory_; 338 base::WeakPtrFactory<InProcessCommandBuffer> gpu_thread_weak_ptr_factory_;
335 339
336 DISALLOW_COPY_AND_ASSIGN(InProcessCommandBuffer); 340 DISALLOW_COPY_AND_ASSIGN(InProcessCommandBuffer);
337 }; 341 };
338 342
339 } // namespace gpu 343 } // namespace gpu
340 344
341 #endif // GPU_IPC_IN_PROCESS_COMMAND_BUFFER_H_ 345 #endif // GPU_IPC_IN_PROCESS_COMMAND_BUFFER_H_
OLDNEW
« no previous file with comments | « gpu/ipc/gl_in_process_context.cc ('k') | gpu/ipc/in_process_command_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698