| 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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 size_t width, | 129 size_t width, |
| 130 size_t height, | 130 size_t height, |
| 131 unsigned internalformat) override; | 131 unsigned internalformat) override; |
| 132 void DestroyImage(int32_t id) override; | 132 void DestroyImage(int32_t id) override; |
| 133 int32_t CreateGpuMemoryBufferImage(size_t width, | 133 int32_t CreateGpuMemoryBufferImage(size_t width, |
| 134 size_t height, | 134 size_t height, |
| 135 unsigned internalformat, | 135 unsigned internalformat, |
| 136 unsigned usage) override; | 136 unsigned usage) override; |
| 137 void SignalQuery(uint32_t query, const base::Closure& callback) override; | 137 void SignalQuery(uint32_t query, const base::Closure& callback) override; |
| 138 void SetLock(base::Lock*) override; | 138 void SetLock(base::Lock*) override; |
| 139 bool IsGpuChannelLost() override; | |
| 140 void EnsureWorkVisible() override; | 139 void EnsureWorkVisible() override; |
| 141 gpu::CommandBufferNamespace GetNamespaceID() const override; | 140 gpu::CommandBufferNamespace GetNamespaceID() const override; |
| 142 CommandBufferId GetCommandBufferID() const override; | 141 CommandBufferId GetCommandBufferID() const override; |
| 143 int32_t GetExtraCommandBufferData() const override; | 142 int32_t GetExtraCommandBufferData() const override; |
| 144 uint64_t GenerateFenceSyncRelease() override; | 143 uint64_t GenerateFenceSyncRelease() override; |
| 145 bool IsFenceSyncRelease(uint64_t release) override; | 144 bool IsFenceSyncRelease(uint64_t release) override; |
| 146 bool IsFenceSyncFlushed(uint64_t release) override; | 145 bool IsFenceSyncFlushed(uint64_t release) override; |
| 147 bool IsFenceSyncFlushReceived(uint64_t release) override; | 146 bool IsFenceSyncFlushReceived(uint64_t release) override; |
| 148 void SignalSyncToken(const gpu::SyncToken& sync_token, | 147 void SignalSyncToken(const gpu::SyncToken& sync_token, |
| 149 const base::Closure& callback) override; | 148 const base::Closure& callback) override; |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 // Used on Android to virtualize GL for all contexts. | 185 // Used on Android to virtualize GL for all contexts. |
| 187 static int use_count_; | 186 static int use_count_; |
| 188 static scoped_refptr<gfx::GLShareGroup>* base_share_group_; | 187 static scoped_refptr<gfx::GLShareGroup>* base_share_group_; |
| 189 static scoped_refptr<gfx::GLSurface>* base_surface_; | 188 static scoped_refptr<gfx::GLSurface>* base_surface_; |
| 190 static scoped_refptr<gfx::GLContext>* base_context_; | 189 static scoped_refptr<gfx::GLContext>* base_context_; |
| 191 }; | 190 }; |
| 192 | 191 |
| 193 } // namespace gpu | 192 } // namespace gpu |
| 194 | 193 |
| 195 #endif // GPU_COMMAND_BUFFER_TESTS_GL_MANAGER_H_ | 194 #endif // GPU_COMMAND_BUFFER_TESTS_GL_MANAGER_H_ |
| OLD | NEW |