| 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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 | 167 |
| 168 bool InitializeOnGpuThread(const InitializeOnGpuThreadParams& params); | 168 bool InitializeOnGpuThread(const InitializeOnGpuThreadParams& params); |
| 169 bool DestroyOnGpuThread(); | 169 bool DestroyOnGpuThread(); |
| 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 SignalSyncPointOnGpuThread(uint32 sync_point, | 178 void SignalSyncPointOnGpuThread(uint32 sync_point, |
| 178 const base::Closure& callback); | 179 const base::Closure& callback); |
| 179 | 180 |
| 180 // Callbacks: | 181 // Callbacks: |
| 181 void OnContextLost(); | 182 void OnContextLost(); |
| 182 void OnResizeView(gfx::Size size, float scale_factor); | 183 void OnResizeView(gfx::Size size, float scale_factor); |
| 183 bool GetBufferChanged(int32 transfer_buffer_id); | 184 bool GetBufferChanged(int32 transfer_buffer_id); |
| 184 void PumpCommands(); | 185 void PumpCommands(); |
| 185 void ScheduleMoreIdleWork(); | 186 void ScheduleMoreIdleWork(); |
| 186 | 187 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 | 222 |
| 222 base::WeakPtr<InProcessCommandBuffer> gpu_thread_weak_ptr_; | 223 base::WeakPtr<InProcessCommandBuffer> gpu_thread_weak_ptr_; |
| 223 base::WeakPtrFactory<InProcessCommandBuffer> gpu_thread_weak_ptr_factory_; | 224 base::WeakPtrFactory<InProcessCommandBuffer> gpu_thread_weak_ptr_factory_; |
| 224 | 225 |
| 225 DISALLOW_COPY_AND_ASSIGN(InProcessCommandBuffer); | 226 DISALLOW_COPY_AND_ASSIGN(InProcessCommandBuffer); |
| 226 }; | 227 }; |
| 227 | 228 |
| 228 } // namespace gpu | 229 } // namespace gpu |
| 229 | 230 |
| 230 #endif // GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ | 231 #endif // GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ |
| OLD | NEW |