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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 return gles2_implementation_.get(); | 115 return gles2_implementation_.get(); |
116 } | 116 } |
117 | 117 |
118 gfx::GLContext* context() { | 118 gfx::GLContext* context() { |
119 return context_.get(); | 119 return context_.get(); |
120 } | 120 } |
121 | 121 |
122 const gpu::gles2::FeatureInfo::Workarounds& workarounds() const; | 122 const gpu::gles2::FeatureInfo::Workarounds& workarounds() const; |
123 | 123 |
124 // GpuControl implementation. | 124 // GpuControl implementation. |
| 125 void SetGpuControlClient(GpuControlClient*) override; |
125 Capabilities GetCapabilities() override; | 126 Capabilities GetCapabilities() override; |
126 int32_t CreateImage(ClientBuffer buffer, | 127 int32_t CreateImage(ClientBuffer buffer, |
127 size_t width, | 128 size_t width, |
128 size_t height, | 129 size_t height, |
129 unsigned internalformat) override; | 130 unsigned internalformat) override; |
130 void DestroyImage(int32_t id) override; | 131 void DestroyImage(int32_t id) override; |
131 int32_t CreateGpuMemoryBufferImage(size_t width, | 132 int32_t CreateGpuMemoryBufferImage(size_t width, |
132 size_t height, | 133 size_t height, |
133 unsigned internalformat, | 134 unsigned internalformat, |
134 unsigned usage) override; | 135 unsigned usage) override; |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 // Used on Android to virtualize GL for all contexts. | 185 // Used on Android to virtualize GL for all contexts. |
185 static int use_count_; | 186 static int use_count_; |
186 static scoped_refptr<gfx::GLShareGroup>* base_share_group_; | 187 static scoped_refptr<gfx::GLShareGroup>* base_share_group_; |
187 static scoped_refptr<gfx::GLSurface>* base_surface_; | 188 static scoped_refptr<gfx::GLSurface>* base_surface_; |
188 static scoped_refptr<gfx::GLContext>* base_context_; | 189 static scoped_refptr<gfx::GLContext>* base_context_; |
189 }; | 190 }; |
190 | 191 |
191 } // namespace gpu | 192 } // namespace gpu |
192 | 193 |
193 #endif // GPU_COMMAND_BUFFER_TESTS_GL_MANAGER_H_ | 194 #endif // GPU_COMMAND_BUFFER_TESTS_GL_MANAGER_H_ |
OLD | NEW |