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

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

Issue 2420813002: optimize precision for conversion from srgb to linear (Closed)
Patch Set: rebase code Created 4 years, 1 month 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
« no previous file with comments | « no previous file | gpu/command_buffer/service/gles2_cmd_srgb_converter.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
168 bool oes_texture_float_linear_available() const {
169 return oes_texture_float_linear_available_;
170 }
171
164 private: 172 private:
165 friend class base::RefCounted<FeatureInfo>; 173 friend class base::RefCounted<FeatureInfo>;
166 friend class BufferManagerClientSideArraysTest; 174 friend class BufferManagerClientSideArraysTest;
167 175
168 ~FeatureInfo(); 176 ~FeatureInfo();
169 177
170 void AddExtensionString(const char* s); 178 void AddExtensionString(const char* s);
171 void InitializeBasicState(const base::CommandLine* command_line); 179 void InitializeBasicState(const base::CommandLine* command_line);
172 void InitializeFeatures(); 180 void InitializeFeatures();
173 181
(...skipping 24 matching lines...) Expand all
198 bool disable_shader_translator_; 206 bool disable_shader_translator_;
199 std::unique_ptr<gl::GLVersionInfo> gl_version_info_; 207 std::unique_ptr<gl::GLVersionInfo> gl_version_info_;
200 208
201 DISALLOW_COPY_AND_ASSIGN(FeatureInfo); 209 DISALLOW_COPY_AND_ASSIGN(FeatureInfo);
202 }; 210 };
203 211
204 } // namespace gles2 212 } // namespace gles2
205 } // namespace gpu 213 } // namespace gpu
206 214
207 #endif // GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ 215 #endif // GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_
OLDNEW
« no previous file with comments | « no previous file | gpu/command_buffer/service/gles2_cmd_srgb_converter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698