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

Side by Side Diff: src/gpu/gl/GrGLCaps.h

Issue 12330181: Checkpoint towards core profile support. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Checkpoint towards core profile support. Created 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/gpu/gl/GrGLCaps.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2012 Google Inc. 2 * Copyright 2012 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 8
9 #ifndef GrGLCaps_DEFINED 9 #ifndef GrGLCaps_DEFINED
10 #define GrGLCaps_DEFINED 10 #define GrGLCaps_DEFINED
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 221
222 // Use indices or vertices in CPU arrays rather than VBOs for dynamic conten t. 222 // Use indices or vertices in CPU arrays rather than VBOs for dynamic conten t.
223 bool useNonVBOVertexAndIndexDynamicData() const { 223 bool useNonVBOVertexAndIndexDynamicData() const {
224 return fUseNonVBOVertexAndIndexDynamicData; 224 return fUseNonVBOVertexAndIndexDynamicData;
225 } 225 }
226 226
227 // Does ReadPixels support the provided format/type combo? 227 // Does ReadPixels support the provided format/type combo?
228 bool readPixelsSupported(const GrGLInterface* intf, 228 bool readPixelsSupported(const GrGLInterface* intf,
229 GrGLenum format, 229 GrGLenum format,
230 GrGLenum type) const; 230 GrGLenum type) const;
231
232 bool isCoreProfile() const { return fIsCoreProfile; }
231 233
232 private: 234 private:
233 /** 235 /**
234 * Maintains a bit per GrPixelConfig. It is used to avoid redundantly 236 * Maintains a bit per GrPixelConfig. It is used to avoid redundantly
235 * performing glCheckFrameBufferStatus for the same config. 237 * performing glCheckFrameBufferStatus for the same config.
236 */ 238 */
237 struct VerifiedColorConfigs { 239 struct VerifiedColorConfigs {
238 VerifiedColorConfigs() { 240 VerifiedColorConfigs() {
239 this->reset(); 241 this->reset();
240 } 242 }
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 bool fUnpackFlipYSupport : 1; 298 bool fUnpackFlipYSupport : 1;
297 bool fPackRowLengthSupport : 1; 299 bool fPackRowLengthSupport : 1;
298 bool fPackFlipYSupport : 1; 300 bool fPackFlipYSupport : 1;
299 bool fTextureUsageSupport : 1; 301 bool fTextureUsageSupport : 1;
300 bool fTexStorageSupport : 1; 302 bool fTexStorageSupport : 1;
301 bool fTextureRedSupport : 1; 303 bool fTextureRedSupport : 1;
302 bool fImagingSupport : 1; 304 bool fImagingSupport : 1;
303 bool fTwoFormatLimit : 1; 305 bool fTwoFormatLimit : 1;
304 bool fFragCoordsConventionSupport : 1; 306 bool fFragCoordsConventionSupport : 1;
305 bool fUseNonVBOVertexAndIndexDynamicData : 1; 307 bool fUseNonVBOVertexAndIndexDynamicData : 1;
308 bool fIsCoreProfile : 1;
306 }; 309 };
307 310
308 #endif 311 #endif
OLDNEW
« no previous file with comments | « no previous file | src/gpu/gl/GrGLCaps.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698