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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 gpu::Capabilities GetCapabilities() override; | 61 gpu::Capabilities GetCapabilities() override; |
62 int32_t CreateImage(ClientBuffer buffer, | 62 int32_t CreateImage(ClientBuffer buffer, |
63 size_t width, | 63 size_t width, |
64 size_t height, | 64 size_t height, |
65 unsigned internalformat) override; | 65 unsigned internalformat) override; |
66 void DestroyImage(int32_t id) override; | 66 void DestroyImage(int32_t id) override; |
67 int32_t CreateGpuMemoryBufferImage(size_t width, | 67 int32_t CreateGpuMemoryBufferImage(size_t width, |
68 size_t height, | 68 size_t height, |
69 unsigned internalformat, | 69 unsigned internalformat, |
70 unsigned usage) override; | 70 unsigned usage) override; |
71 int32_t GetImageGpuMemoryBufferId(unsigned image_id) override; | |
72 void SignalQuery(uint32_t query, const base::Closure& callback) override; | 71 void SignalQuery(uint32_t query, const base::Closure& callback) override; |
73 void SetLock(base::Lock*) override; | 72 void SetLock(base::Lock*) override; |
74 void EnsureWorkVisible() override; | 73 void EnsureWorkVisible() override; |
75 gpu::CommandBufferNamespace GetNamespaceID() const override; | 74 gpu::CommandBufferNamespace GetNamespaceID() const override; |
76 gpu::CommandBufferId GetCommandBufferID() const override; | 75 gpu::CommandBufferId GetCommandBufferID() const override; |
77 int32_t GetExtraCommandBufferData() const override; | 76 int32_t GetExtraCommandBufferData() const override; |
78 uint64_t GenerateFenceSyncRelease() override; | 77 uint64_t GenerateFenceSyncRelease() override; |
79 bool IsFenceSyncRelease(uint64_t release) override; | 78 bool IsFenceSyncRelease(uint64_t release) override; |
80 bool IsFenceSyncFlushed(uint64_t release) override; | 79 bool IsFenceSyncFlushed(uint64_t release) override; |
81 bool IsFenceSyncFlushReceived(uint64_t release) override; | 80 bool IsFenceSyncFlushReceived(uint64_t release) override; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 | 114 |
116 scoped_refptr<gl::GLContext> gl_context_; | 115 scoped_refptr<gl::GLContext> gl_context_; |
117 | 116 |
118 std::unique_ptr<gpu::gles2::GLES2Interface> client_gl_context_; | 117 std::unique_ptr<gpu::gles2::GLES2Interface> client_gl_context_; |
119 DISALLOW_COPY_AND_ASSIGN(Context); | 118 DISALLOW_COPY_AND_ASSIGN(Context); |
120 }; | 119 }; |
121 | 120 |
122 } // namespace egl | 121 } // namespace egl |
123 | 122 |
124 #endif // GPU_GLES2_CONFORM_TEST_CONTEXT_H_ | 123 #endif // GPU_GLES2_CONFORM_TEST_CONTEXT_H_ |
OLD | NEW |