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 // This file contains the GLES2Decoder class. | 5 // This file contains the GLES2Decoder class. |
6 | 6 |
7 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ | 7 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ |
8 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ | 8 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ |
9 | 9 |
10 #include <stdint.h> | 10 #include <stdint.h> |
(...skipping 23 matching lines...) Expand all Loading... |
34 } | 34 } |
35 | 35 |
36 namespace gpu { | 36 namespace gpu { |
37 | 37 |
38 struct Mailbox; | 38 struct Mailbox; |
39 | 39 |
40 namespace gles2 { | 40 namespace gles2 { |
41 | 41 |
42 class ContextGroup; | 42 class ContextGroup; |
43 class ErrorState; | 43 class ErrorState; |
| 44 class FeatureInfo; |
44 class GLES2Util; | 45 class GLES2Util; |
45 class ImageManager; | 46 class ImageManager; |
46 class Logger; | 47 class Logger; |
47 class QueryManager; | 48 class QueryManager; |
48 class ShaderTranslatorInterface; | 49 class ShaderTranslatorInterface; |
49 class Texture; | 50 class Texture; |
50 class TransformFeedbackManager; | 51 class TransformFeedbackManager; |
51 class VertexArrayManager; | 52 class VertexArrayManager; |
52 struct ContextCreationAttribHelper; | 53 struct ContextCreationAttribHelper; |
53 struct ContextState; | 54 struct ContextState; |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 virtual bool MakeCurrent() = 0; | 178 virtual bool MakeCurrent() = 0; |
178 | 179 |
179 // Gets the GLES2 Util which holds info. | 180 // Gets the GLES2 Util which holds info. |
180 virtual GLES2Util* GetGLES2Util() = 0; | 181 virtual GLES2Util* GetGLES2Util() = 0; |
181 | 182 |
182 // Gets the associated GLContext. | 183 // Gets the associated GLContext. |
183 virtual gl::GLContext* GetGLContext() = 0; | 184 virtual gl::GLContext* GetGLContext() = 0; |
184 | 185 |
185 // Gets the associated ContextGroup | 186 // Gets the associated ContextGroup |
186 virtual ContextGroup* GetContextGroup() = 0; | 187 virtual ContextGroup* GetContextGroup() = 0; |
| 188 virtual const FeatureInfo* GetFeatureInfo() const = 0; |
187 | 189 |
188 virtual Capabilities GetCapabilities() = 0; | 190 virtual Capabilities GetCapabilities() = 0; |
189 | 191 |
190 // Restores all of the decoder GL state. | 192 // Restores all of the decoder GL state. |
191 virtual void RestoreState(const ContextState* prev_state) = 0; | 193 virtual void RestoreState(const ContextState* prev_state) = 0; |
192 | 194 |
193 // Restore States. | 195 // Restore States. |
194 virtual void RestoreActiveTexture() const = 0; | 196 virtual void RestoreActiveTexture() const = 0; |
195 virtual void RestoreAllTextureUnitBindings( | 197 virtual void RestoreAllTextureUnitBindings( |
196 const ContextState* prev_state) const = 0; | 198 const ContextState* prev_state) const = 0; |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
347 bool debug_; | 349 bool debug_; |
348 bool log_commands_; | 350 bool log_commands_; |
349 bool unsafe_es3_apis_enabled_; | 351 bool unsafe_es3_apis_enabled_; |
350 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); | 352 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); |
351 }; | 353 }; |
352 | 354 |
353 } // namespace gles2 | 355 } // namespace gles2 |
354 } // namespace gpu | 356 } // namespace gpu |
355 | 357 |
356 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ | 358 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ |
OLD | NEW |