| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_GLES2_CONFORM_TEST_CONTEXT_H_ | 5 #ifndef GPU_GLES2_CONFORM_TEST_CONTEXT_H_ |
| 6 #define GPU_GLES2_CONFORM_TEST_CONTEXT_H_ | 6 #define GPU_GLES2_CONFORM_TEST_CONTEXT_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 void SignalQuery(uint32_t query, const base::Closure& callback) override; | 70 void SignalQuery(uint32_t query, const base::Closure& callback) override; |
| 71 void SetLock(base::Lock*) override; | 71 void SetLock(base::Lock*) override; |
| 72 void EnsureWorkVisible() override; | 72 void EnsureWorkVisible() override; |
| 73 gpu::CommandBufferNamespace GetNamespaceID() const override; | 73 gpu::CommandBufferNamespace GetNamespaceID() const override; |
| 74 gpu::CommandBufferId GetCommandBufferID() const override; | 74 gpu::CommandBufferId GetCommandBufferID() const override; |
| 75 int32_t GetExtraCommandBufferData() const override; | 75 int32_t GetExtraCommandBufferData() const override; |
| 76 uint64_t GenerateFenceSyncRelease() override; | 76 uint64_t GenerateFenceSyncRelease() override; |
| 77 bool IsFenceSyncRelease(uint64_t release) override; | 77 bool IsFenceSyncRelease(uint64_t release) override; |
| 78 bool IsFenceSyncFlushed(uint64_t release) override; | 78 bool IsFenceSyncFlushed(uint64_t release) override; |
| 79 bool IsFenceSyncFlushReceived(uint64_t release) override; | 79 bool IsFenceSyncFlushReceived(uint64_t release) override; |
| 80 bool IsFenceSyncReleased(uint64_t release) override; |
| 80 void SignalSyncToken(const gpu::SyncToken& sync_token, | 81 void SignalSyncToken(const gpu::SyncToken& sync_token, |
| 81 const base::Closure& callback) override; | 82 const base::Closure& callback) override; |
| 82 bool CanWaitUnverifiedSyncToken(const gpu::SyncToken* sync_token) override; | 83 bool CanWaitUnverifiedSyncToken(const gpu::SyncToken* sync_token) override; |
| 83 | 84 |
| 84 // Called by ThreadState to set the needed global variables when this context | 85 // Called by ThreadState to set the needed global variables when this context |
| 85 // is current. | 86 // is current. |
| 86 void ApplyCurrentContext(gl::GLSurface* current_surface); | 87 void ApplyCurrentContext(gl::GLSurface* current_surface); |
| 87 static void ApplyContextReleased(); | 88 static void ApplyContextReleased(); |
| 88 | 89 |
| 89 private: | 90 private: |
| (...skipping 23 matching lines...) Expand all Loading... |
| 113 | 114 |
| 114 scoped_refptr<gl::GLContext> gl_context_; | 115 scoped_refptr<gl::GLContext> gl_context_; |
| 115 | 116 |
| 116 std::unique_ptr<gpu::gles2::GLES2Interface> client_gl_context_; | 117 std::unique_ptr<gpu::gles2::GLES2Interface> client_gl_context_; |
| 117 DISALLOW_COPY_AND_ASSIGN(Context); | 118 DISALLOW_COPY_AND_ASSIGN(Context); |
| 118 }; | 119 }; |
| 119 | 120 |
| 120 } // namespace egl | 121 } // namespace egl |
| 121 | 122 |
| 122 #endif // GPU_GLES2_CONFORM_TEST_CONTEXT_H_ | 123 #endif // GPU_GLES2_CONFORM_TEST_CONTEXT_H_ |
| OLD | NEW |