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

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

Issue 26342006: Move renderable config list to GrDrawTargetCaps (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: fix size_t/int comparison Created 7 years, 2 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 | « src/gpu/GrGpu.cpp ('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 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 bool isVerified(GrPixelConfig config) const { 279 bool isVerified(GrPixelConfig config) const {
280 #if !GR_GL_CHECK_FBO_STATUS_ONCE_PER_FORMAT 280 #if !GR_GL_CHECK_FBO_STATUS_ONCE_PER_FORMAT
281 return false; 281 return false;
282 #endif 282 #endif
283 int u32Idx = config / 32; 283 int u32Idx = config / 32;
284 int bitIdx = config % 32; 284 int bitIdx = config % 32;
285 return SkToBool(fVerifiedColorConfigs[u32Idx] & (1 << bitIdx)); 285 return SkToBool(fVerifiedColorConfigs[u32Idx] & (1 << bitIdx));
286 } 286 }
287 }; 287 };
288 288
289 void initFSAASupport(const GrGLContextInfo& ctxInfo, const GrGLInterface* gl i); 289 void initFSAASupport(const GrGLContextInfo&, const GrGLInterface*);
290 void initStencilFormats(const GrGLContextInfo& ctxInfo); 290 void initStencilFormats(const GrGLContextInfo&);
291 void initConfigRenderableTable(const GrGLContextInfo&);
291 292
292 // tracks configs that have been verified to pass the FBO completeness when 293 // tracks configs that have been verified to pass the FBO completeness when
293 // used as a color attachment 294 // used as a color attachment
294 VerifiedColorConfigs fVerifiedColorConfigs; 295 VerifiedColorConfigs fVerifiedColorConfigs;
295 296
296 SkTArray<StencilFormat, true> fStencilFormats; 297 SkTArray<StencilFormat, true> fStencilFormats;
297 // tracks configs that have been verified to pass the FBO completeness when 298 // tracks configs that have been verified to pass the FBO completeness when
298 // used as a color attachment when a particular stencil format is used 299 // used as a color attachment when a particular stencil format is used
299 // as a stencil attachment. 300 // as a stencil attachment.
300 SkTArray<VerifiedColorConfigs, true> fStencilVerifiedColorConfigs; 301 SkTArray<VerifiedColorConfigs, true> fStencilVerifiedColorConfigs;
(...skipping 24 matching lines...) Expand all
325 bool fVertexArrayObjectSupport : 1; 326 bool fVertexArrayObjectSupport : 1;
326 bool fUseNonVBOVertexAndIndexDynamicData : 1; 327 bool fUseNonVBOVertexAndIndexDynamicData : 1;
327 bool fIsCoreProfile : 1; 328 bool fIsCoreProfile : 1;
328 bool fFixedFunctionSupport : 1; 329 bool fFixedFunctionSupport : 1;
329 bool fDiscardFBSupport : 1; 330 bool fDiscardFBSupport : 1;
330 331
331 typedef GrDrawTargetCaps INHERITED; 332 typedef GrDrawTargetCaps INHERITED;
332 }; 333 };
333 334
334 #endif 335 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrGpu.cpp ('k') | src/gpu/gl/GrGLCaps.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698