| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_TESTS_GL_MANAGER_H_ | 5 #ifndef GPU_COMMAND_BUFFER_TESTS_GL_MANAGER_H_ |
| 6 #define GPU_COMMAND_BUFFER_TESTS_GL_MANAGER_H_ | 6 #define GPU_COMMAND_BUFFER_TESTS_GL_MANAGER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 Capabilities GetCapabilities() override; | 120 Capabilities GetCapabilities() override; |
| 121 int32_t CreateImage(ClientBuffer buffer, | 121 int32_t CreateImage(ClientBuffer buffer, |
| 122 size_t width, | 122 size_t width, |
| 123 size_t height, | 123 size_t height, |
| 124 unsigned internalformat) override; | 124 unsigned internalformat) override; |
| 125 void DestroyImage(int32_t id) override; | 125 void DestroyImage(int32_t id) override; |
| 126 int32_t CreateGpuMemoryBufferImage(size_t width, | 126 int32_t CreateGpuMemoryBufferImage(size_t width, |
| 127 size_t height, | 127 size_t height, |
| 128 unsigned internalformat, | 128 unsigned internalformat, |
| 129 unsigned usage) override; | 129 unsigned usage) override; |
| 130 uint32_t InsertSyncPoint() override; | |
| 131 uint32_t InsertFutureSyncPoint() override; | |
| 132 void RetireSyncPoint(uint32_t sync_point) override; | |
| 133 void SignalSyncPoint(uint32_t sync_point, | |
| 134 const base::Closure& callback) override; | |
| 135 void SignalQuery(uint32_t query, const base::Closure& callback) override; | 130 void SignalQuery(uint32_t query, const base::Closure& callback) override; |
| 136 void SetLock(base::Lock*) override; | 131 void SetLock(base::Lock*) override; |
| 137 bool IsGpuChannelLost() override; | 132 bool IsGpuChannelLost() override; |
| 138 void EnsureWorkVisible() override; | 133 void EnsureWorkVisible() override; |
| 139 gpu::CommandBufferNamespace GetNamespaceID() const override; | 134 gpu::CommandBufferNamespace GetNamespaceID() const override; |
| 140 uint64_t GetCommandBufferID() const override; | 135 uint64_t GetCommandBufferID() const override; |
| 141 int32_t GetExtraCommandBufferData() const override; | 136 int32_t GetExtraCommandBufferData() const override; |
| 142 uint64_t GenerateFenceSyncRelease() override; | 137 uint64_t GenerateFenceSyncRelease() override; |
| 143 bool IsFenceSyncRelease(uint64_t release) override; | 138 bool IsFenceSyncRelease(uint64_t release) override; |
| 144 bool IsFenceSyncFlushed(uint64_t release) override; | 139 bool IsFenceSyncFlushed(uint64_t release) override; |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 // Used on Android to virtualize GL for all contexts. | 175 // Used on Android to virtualize GL for all contexts. |
| 181 static int use_count_; | 176 static int use_count_; |
| 182 static scoped_refptr<gfx::GLShareGroup>* base_share_group_; | 177 static scoped_refptr<gfx::GLShareGroup>* base_share_group_; |
| 183 static scoped_refptr<gfx::GLSurface>* base_surface_; | 178 static scoped_refptr<gfx::GLSurface>* base_surface_; |
| 184 static scoped_refptr<gfx::GLContext>* base_context_; | 179 static scoped_refptr<gfx::GLContext>* base_context_; |
| 185 }; | 180 }; |
| 186 | 181 |
| 187 } // namespace gpu | 182 } // namespace gpu |
| 188 | 183 |
| 189 #endif // GPU_COMMAND_BUFFER_TESTS_GL_MANAGER_H_ | 184 #endif // GPU_COMMAND_BUFFER_TESTS_GL_MANAGER_H_ |
| OLD | NEW |