| 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_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ | 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ |
| 6 #define GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ | 6 #define GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 void FlushOnGpuThread(int32 put_offset); | 170 void FlushOnGpuThread(int32 put_offset); |
| 171 uint32 CreateStreamTextureOnGpuThread(uint32 client_texture_id); | 171 uint32 CreateStreamTextureOnGpuThread(uint32 client_texture_id); |
| 172 bool MakeCurrent(); | 172 bool MakeCurrent(); |
| 173 base::Closure WrapCallback(const base::Closure& callback); | 173 base::Closure WrapCallback(const base::Closure& callback); |
| 174 State GetStateFast(); | 174 State GetStateFast(); |
| 175 void QueueTask(const base::Closure& task) { service_->ScheduleTask(task); } | 175 void QueueTask(const base::Closure& task) { service_->ScheduleTask(task); } |
| 176 void CheckSequencedThread(); | 176 void CheckSequencedThread(); |
| 177 void RetireSyncPointOnGpuThread(uint32 sync_point); | 177 void RetireSyncPointOnGpuThread(uint32 sync_point); |
| 178 void SignalSyncPointOnGpuThread(uint32 sync_point, | 178 void SignalSyncPointOnGpuThread(uint32 sync_point, |
| 179 const base::Closure& callback); | 179 const base::Closure& callback); |
| 180 void DestroyTransferBufferOnGputhread(int32 id); |
| 180 | 181 |
| 181 // Callbacks: | 182 // Callbacks: |
| 182 void OnContextLost(); | 183 void OnContextLost(); |
| 183 void OnResizeView(gfx::Size size, float scale_factor); | 184 void OnResizeView(gfx::Size size, float scale_factor); |
| 184 bool GetBufferChanged(int32 transfer_buffer_id); | 185 bool GetBufferChanged(int32 transfer_buffer_id); |
| 185 void PumpCommands(); | 186 void PumpCommands(); |
| 186 void ScheduleMoreIdleWork(); | 187 void ScheduleMoreIdleWork(); |
| 187 | 188 |
| 188 static scoped_refptr<Service> GetDefaultService(); | 189 static scoped_refptr<Service> GetDefaultService(); |
| 189 | 190 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 | 223 |
| 223 base::WeakPtr<InProcessCommandBuffer> gpu_thread_weak_ptr_; | 224 base::WeakPtr<InProcessCommandBuffer> gpu_thread_weak_ptr_; |
| 224 base::WeakPtrFactory<InProcessCommandBuffer> gpu_thread_weak_ptr_factory_; | 225 base::WeakPtrFactory<InProcessCommandBuffer> gpu_thread_weak_ptr_factory_; |
| 225 | 226 |
| 226 DISALLOW_COPY_AND_ASSIGN(InProcessCommandBuffer); | 227 DISALLOW_COPY_AND_ASSIGN(InProcessCommandBuffer); |
| 227 }; | 228 }; |
| 228 | 229 |
| 229 } // namespace gpu | 230 } // namespace gpu |
| 230 | 231 |
| 231 #endif // GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ | 232 #endif // GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ |
| OLD | NEW |