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

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

Issue 2420813002: optimize precision for conversion from srgb to linear (Closed)
Patch Set: Addressed to Zhenyao's feedback Created 4 years, 2 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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 bool IsWebGLContext() const; 154 bool IsWebGLContext() const;
155 bool IsWebGL1OrES2Context() const; 155 bool IsWebGL1OrES2Context() const;
156 bool IsWebGL2OrES3Context() const; 156 bool IsWebGL2OrES3Context() const;
157 157
158 void EnableCHROMIUMColorBufferFloatRGBA(); 158 void EnableCHROMIUMColorBufferFloatRGBA();
159 void EnableCHROMIUMColorBufferFloatRGB(); 159 void EnableCHROMIUMColorBufferFloatRGB();
160 void EnableEXTColorBufferFloat(); 160 void EnableEXTColorBufferFloat();
161 void EnableOESTextureFloatLinear(); 161 void EnableOESTextureFloatLinear();
162 void EnableOESTextureHalfFloatLinear(); 162 void EnableOESTextureHalfFloatLinear();
163 163
164 bool ext_color_buffer_float_available() const {
165 return ext_color_buffer_float_available_;
166 }
167
164 private: 168 private:
165 friend class base::RefCounted<FeatureInfo>; 169 friend class base::RefCounted<FeatureInfo>;
166 friend class BufferManagerClientSideArraysTest; 170 friend class BufferManagerClientSideArraysTest;
167 171
168 ~FeatureInfo(); 172 ~FeatureInfo();
169 173
170 void AddExtensionString(const char* s); 174 void AddExtensionString(const char* s);
171 void InitializeBasicState(const base::CommandLine* command_line); 175 void InitializeBasicState(const base::CommandLine* command_line);
172 void InitializeFeatures(); 176 void InitializeFeatures();
173 177
(...skipping 24 matching lines...) Expand all
198 bool disable_shader_translator_; 202 bool disable_shader_translator_;
199 std::unique_ptr<gl::GLVersionInfo> gl_version_info_; 203 std::unique_ptr<gl::GLVersionInfo> gl_version_info_;
200 204
201 DISALLOW_COPY_AND_ASSIGN(FeatureInfo); 205 DISALLOW_COPY_AND_ASSIGN(FeatureInfo);
202 }; 206 };
203 207
204 } // namespace gles2 208 } // namespace gles2
205 } // namespace gpu 209 } // namespace gpu
206 210
207 #endif // GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ 211 #endif // GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698