| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 gpu::CommandBufferNamespace GetNamespaceID() const override; | 74 gpu::CommandBufferNamespace GetNamespaceID() const override; |
| 75 gpu::CommandBufferId GetCommandBufferID() const override; | 75 gpu::CommandBufferId GetCommandBufferID() const override; |
| 76 int32_t GetExtraCommandBufferData() const override; | 76 int32_t GetExtraCommandBufferData() const override; |
| 77 uint64_t GenerateFenceSyncRelease() override; | 77 uint64_t GenerateFenceSyncRelease() override; |
| 78 bool IsFenceSyncRelease(uint64_t release) override; | 78 bool IsFenceSyncRelease(uint64_t release) override; |
| 79 bool IsFenceSyncFlushed(uint64_t release) override; | 79 bool IsFenceSyncFlushed(uint64_t release) override; |
| 80 bool IsFenceSyncFlushReceived(uint64_t release) override; | 80 bool IsFenceSyncFlushReceived(uint64_t release) override; |
| 81 void SignalSyncToken(const gpu::SyncToken& sync_token, | 81 void SignalSyncToken(const gpu::SyncToken& sync_token, |
| 82 const base::Closure& callback) override; | 82 const base::Closure& callback) override; |
| 83 bool CanWaitUnverifiedSyncToken(const gpu::SyncToken* sync_token) override; | 83 bool CanWaitUnverifiedSyncToken(const gpu::SyncToken* sync_token) override; |
| 84 int32_t CreateFence(ClientFence fence) override; |
| 85 void DestroyFence(int32_t id) override; |
| 84 | 86 |
| 85 // Called by ThreadState to set the needed global variables when this context | 87 // Called by ThreadState to set the needed global variables when this context |
| 86 // is current. | 88 // is current. |
| 87 void ApplyCurrentContext(gl::GLSurface* current_surface); | 89 void ApplyCurrentContext(gl::GLSurface* current_surface); |
| 88 static void ApplyContextReleased(); | 90 static void ApplyContextReleased(); |
| 89 | 91 |
| 90 private: | 92 private: |
| 91 friend class base::RefCountedThreadSafe<Context>; | 93 friend class base::RefCountedThreadSafe<Context>; |
| 92 ~Context() override; | 94 ~Context() override; |
| 93 bool CreateService(gl::GLSurface* gl_surface); | 95 bool CreateService(gl::GLSurface* gl_surface); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 114 | 116 |
| 115 scoped_refptr<gl::GLContext> gl_context_; | 117 scoped_refptr<gl::GLContext> gl_context_; |
| 116 | 118 |
| 117 std::unique_ptr<gpu::gles2::GLES2Interface> client_gl_context_; | 119 std::unique_ptr<gpu::gles2::GLES2Interface> client_gl_context_; |
| 118 DISALLOW_COPY_AND_ASSIGN(Context); | 120 DISALLOW_COPY_AND_ASSIGN(Context); |
| 119 }; | 121 }; |
| 120 | 122 |
| 121 } // namespace egl | 123 } // namespace egl |
| 122 | 124 |
| 123 #endif // GPU_GLES2_CONFORM_TEST_CONTEXT_H_ | 125 #endif // GPU_GLES2_CONFORM_TEST_CONTEXT_H_ |
| OLD | NEW |