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

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

Issue 26695005: separate state for msaa renderability (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: bool to int 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/SkGpuDevice.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 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
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&, const GrGLInterface*); 289 void initFSAASupport(const GrGLContextInfo&, const GrGLInterface*);
290 void initStencilFormats(const GrGLContextInfo&); 290 void initStencilFormats(const GrGLContextInfo&);
291 // This must be called after initFSAASupport().
291 void initConfigRenderableTable(const GrGLContextInfo&); 292 void initConfigRenderableTable(const GrGLContextInfo&);
292 293
293 // tracks configs that have been verified to pass the FBO completeness when 294 // tracks configs that have been verified to pass the FBO completeness when
294 // used as a color attachment 295 // used as a color attachment
295 VerifiedColorConfigs fVerifiedColorConfigs; 296 VerifiedColorConfigs fVerifiedColorConfigs;
296 297
297 SkTArray<StencilFormat, true> fStencilFormats; 298 SkTArray<StencilFormat, true> fStencilFormats;
298 // tracks configs that have been verified to pass the FBO completeness when 299 // tracks configs that have been verified to pass the FBO completeness when
299 // used as a color attachment when a particular stencil format is used 300 // used as a color attachment when a particular stencil format is used
300 // as a stencil attachment. 301 // as a stencil attachment.
(...skipping 25 matching lines...) Expand all
326 bool fVertexArrayObjectSupport : 1; 327 bool fVertexArrayObjectSupport : 1;
327 bool fUseNonVBOVertexAndIndexDynamicData : 1; 328 bool fUseNonVBOVertexAndIndexDynamicData : 1;
328 bool fIsCoreProfile : 1; 329 bool fIsCoreProfile : 1;
329 bool fFixedFunctionSupport : 1; 330 bool fFixedFunctionSupport : 1;
330 bool fDiscardFBSupport : 1; 331 bool fDiscardFBSupport : 1;
331 332
332 typedef GrDrawTargetCaps INHERITED; 333 typedef GrDrawTargetCaps INHERITED;
333 }; 334 };
334 335
335 #endif 336 #endif
OLDNEW
« no previous file with comments | « src/gpu/SkGpuDevice.cpp ('k') | src/gpu/gl/GrGLCaps.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698