| 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 <map> | 8 #include <map> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 InProcessCommandBuffer* share_group, | 85 InProcessCommandBuffer* share_group, |
| 86 GpuMemoryBufferManager* gpu_memory_buffer_manager, | 86 GpuMemoryBufferManager* gpu_memory_buffer_manager, |
| 87 ImageFactory* image_factory); | 87 ImageFactory* image_factory); |
| 88 void Destroy(); | 88 void Destroy(); |
| 89 | 89 |
| 90 // CommandBuffer implementation: | 90 // CommandBuffer implementation: |
| 91 bool Initialize() override; | 91 bool Initialize() override; |
| 92 State GetLastState() override; | 92 State GetLastState() override; |
| 93 int32 GetLastToken() override; | 93 int32 GetLastToken() override; |
| 94 void Flush(int32 put_offset) override; | 94 void Flush(int32 put_offset) override; |
| 95 void OrderingBarrier(int32 put_offset) override; |
| 95 void WaitForTokenInRange(int32 start, int32 end) override; | 96 void WaitForTokenInRange(int32 start, int32 end) override; |
| 96 void WaitForGetOffsetInRange(int32 start, int32 end) override; | 97 void WaitForGetOffsetInRange(int32 start, int32 end) override; |
| 97 void SetGetBuffer(int32 shm_id) override; | 98 void SetGetBuffer(int32 shm_id) override; |
| 98 scoped_refptr<gpu::Buffer> CreateTransferBuffer(size_t size, | 99 scoped_refptr<gpu::Buffer> CreateTransferBuffer(size_t size, |
| 99 int32* id) override; | 100 int32* id) override; |
| 100 void DestroyTransferBuffer(int32 id) override; | 101 void DestroyTransferBuffer(int32 id) override; |
| 101 gpu::error::Error GetLastError() override; | 102 gpu::error::Error GetLastError() override; |
| 102 | 103 |
| 103 // GpuControl implementation: | 104 // GpuControl implementation: |
| 104 gpu::Capabilities GetCapabilities() override; | 105 gpu::Capabilities GetCapabilities() override; |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 | 254 |
| 254 base::WeakPtr<InProcessCommandBuffer> gpu_thread_weak_ptr_; | 255 base::WeakPtr<InProcessCommandBuffer> gpu_thread_weak_ptr_; |
| 255 base::WeakPtrFactory<InProcessCommandBuffer> gpu_thread_weak_ptr_factory_; | 256 base::WeakPtrFactory<InProcessCommandBuffer> gpu_thread_weak_ptr_factory_; |
| 256 | 257 |
| 257 DISALLOW_COPY_AND_ASSIGN(InProcessCommandBuffer); | 258 DISALLOW_COPY_AND_ASSIGN(InProcessCommandBuffer); |
| 258 }; | 259 }; |
| 259 | 260 |
| 260 } // namespace gpu | 261 } // namespace gpu |
| 261 | 262 |
| 262 #endif // GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ | 263 #endif // GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ |
| OLD | NEW |