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

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

Issue 2148723004: WebGL 2: make sure VertexAttrib type match the corresponding attrib type in shader (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update vertex attrib base type for vertexAttrib{I}Pointer only if the vertex attrib array is enabled 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 #ifndef GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_
6 #define GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ 6 #define GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 bool IsES3Capable() const; 141 bool IsES3Capable() const;
142 void EnableES3Validators(); 142 void EnableES3Validators();
143 143
144 bool IsES3Enabled() const { 144 bool IsES3Enabled() const {
145 return unsafe_es3_apis_enabled_; 145 return unsafe_es3_apis_enabled_;
146 } 146 }
147 147
148 bool disable_shader_translator() const { return disable_shader_translator_; } 148 bool disable_shader_translator() const { return disable_shader_translator_; }
149 149
150 bool IsWebGLContext() const; 150 bool IsWebGLContext() const;
151 bool IsWebGL2Context() const;
151 152
152 void EnableCHROMIUMColorBufferFloatRGBA(); 153 void EnableCHROMIUMColorBufferFloatRGBA();
153 void EnableCHROMIUMColorBufferFloatRGB(); 154 void EnableCHROMIUMColorBufferFloatRGB();
154 void EnableEXTColorBufferFloat(); 155 void EnableEXTColorBufferFloat();
155 void EnableOESTextureFloatLinear(); 156 void EnableOESTextureFloatLinear();
156 void EnableOESTextureHalfFloatLinear(); 157 void EnableOESTextureHalfFloatLinear();
157 158
158 private: 159 private:
159 friend class base::RefCounted<FeatureInfo>; 160 friend class base::RefCounted<FeatureInfo>;
160 friend class BufferManagerClientSideArraysTest; 161 friend class BufferManagerClientSideArraysTest;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 bool disable_shader_translator_; 195 bool disable_shader_translator_;
195 std::unique_ptr<gl::GLVersionInfo> gl_version_info_; 196 std::unique_ptr<gl::GLVersionInfo> gl_version_info_;
196 197
197 DISALLOW_COPY_AND_ASSIGN(FeatureInfo); 198 DISALLOW_COPY_AND_ASSIGN(FeatureInfo);
198 }; 199 };
199 200
200 } // namespace gles2 201 } // namespace gles2
201 } // namespace gpu 202 } // namespace gpu
202 203
203 #endif // GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ 204 #endif // GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698