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

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

Issue 302553008: Revert of Revert of Add compressed texture capabilities for GPU devices (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 7 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
« no previous file with comments | « src/gpu/GrDrawTargetCaps.h ('k') | 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 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 int bitIdx = config % 32; 306 int bitIdx = config % 32;
307 return SkToBool(fVerifiedColorConfigs[u32Idx] & (1 << bitIdx)); 307 return SkToBool(fVerifiedColorConfigs[u32Idx] & (1 << bitIdx));
308 } 308 }
309 }; 309 };
310 310
311 void initFSAASupport(const GrGLContextInfo&, const GrGLInterface*); 311 void initFSAASupport(const GrGLContextInfo&, const GrGLInterface*);
312 void initStencilFormats(const GrGLContextInfo&); 312 void initStencilFormats(const GrGLContextInfo&);
313 // This must be called after initFSAASupport(). 313 // This must be called after initFSAASupport().
314 void initConfigRenderableTable(const GrGLContextInfo&); 314 void initConfigRenderableTable(const GrGLContextInfo&);
315 315
316 void initCompressedTextureSupport(const GrGLContextInfo &);
317
316 // tracks configs that have been verified to pass the FBO completeness when 318 // tracks configs that have been verified to pass the FBO completeness when
317 // used as a color attachment 319 // used as a color attachment
318 VerifiedColorConfigs fVerifiedColorConfigs; 320 VerifiedColorConfigs fVerifiedColorConfigs;
319 321
320 SkTArray<StencilFormat, true> fStencilFormats; 322 SkTArray<StencilFormat, true> fStencilFormats;
321 // tracks configs that have been verified to pass the FBO completeness when 323 // tracks configs that have been verified to pass the FBO completeness when
322 // used as a color attachment when a particular stencil format is used 324 // used as a color attachment when a particular stencil format is used
323 // as a stencil attachment. 325 // as a stencil attachment.
324 SkTArray<VerifiedColorConfigs, true> fStencilVerifiedColorConfigs; 326 SkTArray<VerifiedColorConfigs, true> fStencilVerifiedColorConfigs;
325 327
(...skipping 24 matching lines...) Expand all
350 bool fVertexArrayObjectSupport : 1; 352 bool fVertexArrayObjectSupport : 1;
351 bool fUseNonVBOVertexAndIndexDynamicData : 1; 353 bool fUseNonVBOVertexAndIndexDynamicData : 1;
352 bool fIsCoreProfile : 1; 354 bool fIsCoreProfile : 1;
353 bool fFullClearIsFree : 1; 355 bool fFullClearIsFree : 1;
354 bool fDropsTileOnZeroDivide : 1; 356 bool fDropsTileOnZeroDivide : 1;
355 357
356 typedef GrDrawTargetCaps INHERITED; 358 typedef GrDrawTargetCaps INHERITED;
357 }; 359 };
358 360
359 #endif 361 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrDrawTargetCaps.h ('k') | src/gpu/gl/GrGLCaps.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698