| 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 State GetLastState() override; | 96 State GetLastState() override; |
| 97 int32 GetLastToken() override; | 97 int32 GetLastToken() override; |
| 98 void Flush(int32 put_offset) override; | 98 void Flush(int32 put_offset) override; |
| 99 void OrderingBarrier(int32 put_offset) override; | 99 void OrderingBarrier(int32 put_offset) override; |
| 100 void WaitForTokenInRange(int32 start, int32 end) override; | 100 void WaitForTokenInRange(int32 start, int32 end) override; |
| 101 void WaitForGetOffsetInRange(int32 start, int32 end) override; | 101 void WaitForGetOffsetInRange(int32 start, int32 end) override; |
| 102 void SetGetBuffer(int32 shm_id) override; | 102 void SetGetBuffer(int32 shm_id) override; |
| 103 scoped_refptr<gpu::Buffer> CreateTransferBuffer(size_t size, | 103 scoped_refptr<gpu::Buffer> CreateTransferBuffer(size_t size, |
| 104 int32* id) override; | 104 int32* id) override; |
| 105 void DestroyTransferBuffer(int32 id) override; | 105 void DestroyTransferBuffer(int32 id) override; |
| 106 void GetRouteInformation(int* channel_id, uint32_t* route_id) override; |
| 106 gpu::error::Error GetLastError() override; | 107 gpu::error::Error GetLastError() override; |
| 107 | 108 |
| 108 // GpuControl implementation: | 109 // GpuControl implementation: |
| 109 gpu::Capabilities GetCapabilities() override; | 110 gpu::Capabilities GetCapabilities() override; |
| 110 int32 CreateImage(ClientBuffer buffer, | 111 int32 CreateImage(ClientBuffer buffer, |
| 111 size_t width, | 112 size_t width, |
| 112 size_t height, | 113 size_t height, |
| 113 unsigned internalformat) override; | 114 unsigned internalformat) override; |
| 114 void DestroyImage(int32 id) override; | 115 void DestroyImage(int32 id) override; |
| 115 int32 CreateGpuMemoryBufferImage(size_t width, | 116 int32 CreateGpuMemoryBufferImage(size_t width, |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 SyncPointManager* sync_point_manager_; // Non-owning. | 297 SyncPointManager* sync_point_manager_; // Non-owning. |
| 297 scoped_refptr<gpu::gles2::ShaderTranslatorCache> shader_translator_cache_; | 298 scoped_refptr<gpu::gles2::ShaderTranslatorCache> shader_translator_cache_; |
| 298 scoped_refptr<gpu::gles2::FramebufferCompletenessCache> | 299 scoped_refptr<gpu::gles2::FramebufferCompletenessCache> |
| 299 framebuffer_completeness_cache_; | 300 framebuffer_completeness_cache_; |
| 300 DISALLOW_COPY_AND_ASSIGN(GpuInProcessThread); | 301 DISALLOW_COPY_AND_ASSIGN(GpuInProcessThread); |
| 301 }; | 302 }; |
| 302 | 303 |
| 303 } // namespace gpu | 304 } // namespace gpu |
| 304 | 305 |
| 305 #endif // GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ | 306 #endif // GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ |
| OLD | NEW |