| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |