| 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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 void SetUpdateVSyncParametersCallback( | 158 void SetUpdateVSyncParametersCallback( |
| 159 const UpdateVSyncParametersCallback& callback); | 159 const UpdateVSyncParametersCallback& callback); |
| 160 | 160 |
| 161 void DidSwapBuffersCompleteOnOriginThread(SwapBuffersCompleteParams params); | 161 void DidSwapBuffersCompleteOnOriginThread(SwapBuffersCompleteParams params); |
| 162 void UpdateVSyncParametersOnOriginThread(base::TimeTicks timebase, | 162 void UpdateVSyncParametersOnOriginThread(base::TimeTicks timebase, |
| 163 base::TimeDelta interval); | 163 base::TimeDelta interval); |
| 164 | 164 |
| 165 // The serializer interface to the GPU service (i.e. thread). | 165 // The serializer interface to the GPU service (i.e. thread). |
| 166 class Service { | 166 class Service { |
| 167 public: | 167 public: |
| 168 Service(); | |
| 169 Service(const gpu::GpuPreferences& gpu_preferences); | 168 Service(const gpu::GpuPreferences& gpu_preferences); |
| 170 Service(gpu::gles2::MailboxManager* mailbox_manager, | 169 Service(gpu::gles2::MailboxManager* mailbox_manager, |
| 171 scoped_refptr<gl::GLShareGroup> share_group); | 170 scoped_refptr<gl::GLShareGroup> share_group); |
| 172 | 171 |
| 173 virtual ~Service(); | 172 virtual ~Service(); |
| 174 | 173 |
| 175 virtual void AddRef() const = 0; | 174 virtual void AddRef() const = 0; |
| 176 virtual void Release() const = 0; | 175 virtual void Release() const = 0; |
| 177 | 176 |
| 178 // Queues a task to run as soon as possible. | 177 // Queues a task to run as soon as possible. |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 333 base::WeakPtr<InProcessCommandBuffer> gpu_thread_weak_ptr_; | 332 base::WeakPtr<InProcessCommandBuffer> gpu_thread_weak_ptr_; |
| 334 base::WeakPtrFactory<InProcessCommandBuffer> client_thread_weak_ptr_factory_; | 333 base::WeakPtrFactory<InProcessCommandBuffer> client_thread_weak_ptr_factory_; |
| 335 base::WeakPtrFactory<InProcessCommandBuffer> gpu_thread_weak_ptr_factory_; | 334 base::WeakPtrFactory<InProcessCommandBuffer> gpu_thread_weak_ptr_factory_; |
| 336 | 335 |
| 337 DISALLOW_COPY_AND_ASSIGN(InProcessCommandBuffer); | 336 DISALLOW_COPY_AND_ASSIGN(InProcessCommandBuffer); |
| 338 }; | 337 }; |
| 339 | 338 |
| 340 } // namespace gpu | 339 } // namespace gpu |
| 341 | 340 |
| 342 #endif // GPU_IPC_IN_PROCESS_COMMAND_BUFFER_H_ | 341 #endif // GPU_IPC_IN_PROCESS_COMMAND_BUFFER_H_ |
| OLD | NEW |