| 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 void SignalQuery(uint32_t query, const base::Closure& callback) override; | 139 void SignalQuery(uint32_t query, const base::Closure& callback) override; |
| 140 void SetLock(base::Lock*) override; | 140 void SetLock(base::Lock*) override; |
| 141 void EnsureWorkVisible() override; | 141 void EnsureWorkVisible() override; |
| 142 gpu::CommandBufferNamespace GetNamespaceID() const override; | 142 gpu::CommandBufferNamespace GetNamespaceID() const override; |
| 143 CommandBufferId GetCommandBufferID() const override; | 143 CommandBufferId GetCommandBufferID() const override; |
| 144 int32_t GetExtraCommandBufferData() const override; | 144 int32_t GetExtraCommandBufferData() const override; |
| 145 uint64_t GenerateFenceSyncRelease() override; | 145 uint64_t GenerateFenceSyncRelease() override; |
| 146 bool IsFenceSyncRelease(uint64_t release) override; | 146 bool IsFenceSyncRelease(uint64_t release) override; |
| 147 bool IsFenceSyncFlushed(uint64_t release) override; | 147 bool IsFenceSyncFlushed(uint64_t release) override; |
| 148 bool IsFenceSyncFlushReceived(uint64_t release) override; | 148 bool IsFenceSyncFlushReceived(uint64_t release) override; |
| 149 bool IsFenceSyncReleased(uint64_t release) override; |
| 149 void SignalSyncToken(const gpu::SyncToken& sync_token, | 150 void SignalSyncToken(const gpu::SyncToken& sync_token, |
| 150 const base::Closure& callback) override; | 151 const base::Closure& callback) override; |
| 151 bool CanWaitUnverifiedSyncToken(const gpu::SyncToken* sync_token) override; | 152 bool CanWaitUnverifiedSyncToken(const gpu::SyncToken* sync_token) override; |
| 152 | 153 |
| 153 private: | 154 private: |
| 154 void PumpCommands(); | 155 void PumpCommands(); |
| 155 bool GetBufferChanged(int32_t transfer_buffer_id); | 156 bool GetBufferChanged(int32_t transfer_buffer_id); |
| 156 void SetupBaseContext(); | 157 void SetupBaseContext(); |
| 157 void OnFenceSyncRelease(uint64_t release); | 158 void OnFenceSyncRelease(uint64_t release); |
| 158 bool OnWaitFenceSync(gpu::CommandBufferNamespace namespace_id, | 159 bool OnWaitFenceSync(gpu::CommandBufferNamespace namespace_id, |
| (...skipping 28 matching lines...) Expand all Loading... |
| 187 // Used on Android to virtualize GL for all contexts. | 188 // Used on Android to virtualize GL for all contexts. |
| 188 static int use_count_; | 189 static int use_count_; |
| 189 static scoped_refptr<gl::GLShareGroup>* base_share_group_; | 190 static scoped_refptr<gl::GLShareGroup>* base_share_group_; |
| 190 static scoped_refptr<gl::GLSurface>* base_surface_; | 191 static scoped_refptr<gl::GLSurface>* base_surface_; |
| 191 static scoped_refptr<gl::GLContext>* base_context_; | 192 static scoped_refptr<gl::GLContext>* base_context_; |
| 192 }; | 193 }; |
| 193 | 194 |
| 194 } // namespace gpu | 195 } // namespace gpu |
| 195 | 196 |
| 196 #endif // GPU_COMMAND_BUFFER_TESTS_GL_MANAGER_H_ | 197 #endif // GPU_COMMAND_BUFFER_TESTS_GL_MANAGER_H_ |
| OLD | NEW |