Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(258)

Side by Side Diff: gpu/command_buffer/service/gles2_cmd_decoder.h

Issue 2170293002: Use GLVersionInfo instead of gl::GetGLImplementation() to decide GL paths (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add comment Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
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_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc ('k') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698