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

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

Issue 806943002: Change desktop and ES 3.0 to always use sized internal texture formats. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: This time for sure Created 6 years 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 | 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 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 238
239 /// Is GL_ARB_IMAGING supported 239 /// Is GL_ARB_IMAGING supported
240 bool imagingSupport() const { return fImagingSupport; } 240 bool imagingSupport() const { return fImagingSupport; }
241 241
242 /// Is GL_ARB_fragment_coord_conventions supported? 242 /// Is GL_ARB_fragment_coord_conventions supported?
243 bool fragCoordConventionsSupport() const { return fFragCoordsConventionSuppo rt; } 243 bool fragCoordConventionsSupport() const { return fFragCoordsConventionSuppo rt; }
244 244
245 /// Is there support for Vertex Array Objects? 245 /// Is there support for Vertex Array Objects?
246 bool vertexArrayObjectSupport() const { return fVertexArrayObjectSupport; } 246 bool vertexArrayObjectSupport() const { return fVertexArrayObjectSupport; }
247 247
248 /// Is there support for ES2 compatability?
249 bool ES2CompatibilitySupport() const { return fES2CompatibilitySupport; }
250
248 /// Use indices or vertices in CPU arrays rather than VBOs for dynamic conte nt. 251 /// Use indices or vertices in CPU arrays rather than VBOs for dynamic conte nt.
249 bool useNonVBOVertexAndIndexDynamicData() const { 252 bool useNonVBOVertexAndIndexDynamicData() const {
250 return fUseNonVBOVertexAndIndexDynamicData; 253 return fUseNonVBOVertexAndIndexDynamicData;
251 } 254 }
252 255
253 /// Does ReadPixels support the provided format/type combo? 256 /// Does ReadPixels support the provided format/type combo?
254 bool readPixelsSupported(const GrGLInterface* intf, 257 bool readPixelsSupported(const GrGLInterface* intf,
255 GrGLenum format, 258 GrGLenum format,
256 GrGLenum type, 259 GrGLenum type,
257 GrGLenum currFboFormat) const; 260 GrGLenum currFboFormat) const;
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 bool fUnpackFlipYSupport : 1; 360 bool fUnpackFlipYSupport : 1;
358 bool fPackRowLengthSupport : 1; 361 bool fPackRowLengthSupport : 1;
359 bool fPackFlipYSupport : 1; 362 bool fPackFlipYSupport : 1;
360 bool fTextureUsageSupport : 1; 363 bool fTextureUsageSupport : 1;
361 bool fTexStorageSupport : 1; 364 bool fTexStorageSupport : 1;
362 bool fTextureRedSupport : 1; 365 bool fTextureRedSupport : 1;
363 bool fImagingSupport : 1; 366 bool fImagingSupport : 1;
364 bool fTwoFormatLimit : 1; 367 bool fTwoFormatLimit : 1;
365 bool fFragCoordsConventionSupport : 1; 368 bool fFragCoordsConventionSupport : 1;
366 bool fVertexArrayObjectSupport : 1; 369 bool fVertexArrayObjectSupport : 1;
370 bool fES2CompatibilitySupport : 1;
367 bool fUseNonVBOVertexAndIndexDynamicData : 1; 371 bool fUseNonVBOVertexAndIndexDynamicData : 1;
368 bool fIsCoreProfile : 1; 372 bool fIsCoreProfile : 1;
369 bool fFullClearIsFree : 1; 373 bool fFullClearIsFree : 1;
370 bool fDropsTileOnZeroDivide : 1; 374 bool fDropsTileOnZeroDivide : 1;
371 // TODO(joshualitt) encapsulate the FB Fetch logic in a feature object 375 // TODO(joshualitt) encapsulate the FB Fetch logic in a feature object
372 bool fFBFetchSupport : 1; 376 bool fFBFetchSupport : 1;
373 377
374 const char* fFBFetchColorName; 378 const char* fFBFetchColorName;
375 const char* fFBFetchExtensionString; 379 const char* fFBFetchExtensionString;
376 380
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 bool fValue; 415 bool fValue;
412 }; 416 };
413 417
414 mutable SkTHashCache<ReadPixelsSupportedFormats, 418 mutable SkTHashCache<ReadPixelsSupportedFormats,
415 ReadPixelsSupportedFormats::Key> fReadPixelsSupportedCa che; 419 ReadPixelsSupportedFormats::Key> fReadPixelsSupportedCa che;
416 420
417 typedef GrDrawTargetCaps INHERITED; 421 typedef GrDrawTargetCaps INHERITED;
418 }; 422 };
419 423
420 #endif 424 #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