| 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 void WaitForTokenInRange(int32 start, int32 end) override; | 96 void WaitForTokenInRange(int32 start, int32 end) override; |
| 97 void WaitForGetOffsetInRange(int32 start, int32 end) override; | 97 void WaitForGetOffsetInRange(int32 start, int32 end) override; |
| 98 void SetGetBuffer(int32 shm_id) override; | 98 void SetGetBuffer(int32 shm_id) override; |
| 99 scoped_refptr<gpu::Buffer> CreateTransferBuffer(size_t size, | 99 scoped_refptr<gpu::Buffer> CreateTransferBuffer(size_t size, |
| 100 int32* id) override; | 100 int32* id) override; |
| 101 void DestroyTransferBuffer(int32 id) override; | 101 void DestroyTransferBuffer(int32 id) override; |
| 102 gpu::error::Error GetLastError() override; | 102 gpu::error::Error GetLastError() override; |
| 103 | 103 |
| 104 // GpuControl implementation: | 104 // GpuControl implementation: |
| 105 gpu::Capabilities GetCapabilities() override; | 105 gpu::Capabilities GetCapabilities() override; |
| 106 int32 CreateImage(ClientBuffer buffer, | 106 int32 CreateImage(const ClientBuffer* const buffers, |
| 107 size_t width, | 107 size_t width, |
| 108 size_t height, | 108 size_t height, |
| 109 unsigned internalformat) override; | 109 unsigned internalformat) override; |
| 110 void DestroyImage(int32 id) override; | 110 void DestroyImage(int32 id) override; |
| 111 int32 CreateGpuMemoryBufferImage(size_t width, | 111 int32 CreateGpuMemoryBufferImage(size_t width, |
| 112 size_t height, | 112 size_t height, |
| 113 unsigned internalformat, | 113 unsigned internalformat, |
| 114 unsigned usage) override; | 114 unsigned usage) override; |
| 115 uint32 InsertSyncPoint() override; | 115 uint32 InsertSyncPoint() override; |
| 116 uint32 InsertFutureSyncPoint() override; | 116 uint32 InsertFutureSyncPoint() override; |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 | 255 |
| 256 base::WeakPtr<InProcessCommandBuffer> gpu_thread_weak_ptr_; | 256 base::WeakPtr<InProcessCommandBuffer> gpu_thread_weak_ptr_; |
| 257 base::WeakPtrFactory<InProcessCommandBuffer> gpu_thread_weak_ptr_factory_; | 257 base::WeakPtrFactory<InProcessCommandBuffer> gpu_thread_weak_ptr_factory_; |
| 258 | 258 |
| 259 DISALLOW_COPY_AND_ASSIGN(InProcessCommandBuffer); | 259 DISALLOW_COPY_AND_ASSIGN(InProcessCommandBuffer); |
| 260 }; | 260 }; |
| 261 | 261 |
| 262 } // namespace gpu | 262 } // namespace gpu |
| 263 | 263 |
| 264 #endif // GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ | 264 #endif // GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ |
| OLD | NEW |