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

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

Issue 1781093002: Add CONTEXT_TYPE_OPENGLES2_PEPPER (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 <string> 8 #include <string>
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 bool IsES3Capable() const; 151 bool IsES3Capable() const;
152 void EnableES3Validators(); 152 void EnableES3Validators();
153 153
154 bool IsES3Enabled() const { 154 bool IsES3Enabled() const {
155 return unsafe_es3_apis_enabled_; 155 return unsafe_es3_apis_enabled_;
156 } 156 }
157 157
158 bool disable_shader_translator() const { return disable_shader_translator_; } 158 bool disable_shader_translator() const { return disable_shader_translator_; }
159 159
160 bool IsWebGLContext() const; 160 bool IsWebGLContext() const;
161 bool IsPepperContext() const;
161 162
162 void EnableCHROMIUMColorBufferFloatRGBA(); 163 void EnableCHROMIUMColorBufferFloatRGBA();
163 void EnableCHROMIUMColorBufferFloatRGB(); 164 void EnableCHROMIUMColorBufferFloatRGB();
164 void EnableEXTColorBufferFloat(); 165 void EnableEXTColorBufferFloat();
165 void EnableOESTextureFloatLinear(); 166 void EnableOESTextureFloatLinear();
166 void EnableOESTextureHalfFloatLinear(); 167 void EnableOESTextureHalfFloatLinear();
167 168
168 private: 169 private:
169 friend class base::RefCounted<FeatureInfo>; 170 friend class base::RefCounted<FeatureInfo>;
170 friend class BufferManagerClientSideArraysTest; 171 friend class BufferManagerClientSideArraysTest;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 bool disable_shader_translator_; 205 bool disable_shader_translator_;
205 scoped_ptr<gfx::GLVersionInfo> gl_version_info_; 206 scoped_ptr<gfx::GLVersionInfo> gl_version_info_;
206 207
207 DISALLOW_COPY_AND_ASSIGN(FeatureInfo); 208 DISALLOW_COPY_AND_ASSIGN(FeatureInfo);
208 }; 209 };
209 210
210 } // namespace gles2 211 } // namespace gles2
211 } // namespace gpu 212 } // namespace gpu
212 213
213 #endif // GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ 214 #endif // GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698