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

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

Issue 778783002: Use texture size to determine precision of texture coord varyings (Closed) Base URL: https://skia.googlesource.com/skia.git@defaultp
Patch Set: include skrandom.h in new gm cpp 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 | « 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 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 return SkToBool(fVerifiedColorConfigs[u32Idx] & (1 << bitIdx)); 318 return SkToBool(fVerifiedColorConfigs[u32Idx] & (1 << bitIdx));
319 } 319 }
320 }; 320 };
321 321
322 void initFSAASupport(const GrGLContextInfo&, const GrGLInterface*); 322 void initFSAASupport(const GrGLContextInfo&, const GrGLInterface*);
323 void initStencilFormats(const GrGLContextInfo&); 323 void initStencilFormats(const GrGLContextInfo&);
324 // This must be called after initFSAASupport(). 324 // This must be called after initFSAASupport().
325 void initConfigRenderableTable(const GrGLContextInfo&); 325 void initConfigRenderableTable(const GrGLContextInfo&);
326 void initConfigTexturableTable(const GrGLContextInfo&, const GrGLInterface*) ; 326 void initConfigTexturableTable(const GrGLContextInfo&, const GrGLInterface*) ;
327 327
328 bool doReadPixelsSupported(const GrGLInterface* intf, 328 // Must be called after fGeometryShaderSupport is initialized.
329 GrGLenum format, 329 void initShaderPrecisionTable(const GrGLContextInfo&, const GrGLInterface*);
330 GrGLenum type) const; 330
331 bool doReadPixelsSupported(const GrGLInterface* intf, GrGLenum format, GrGLe num type) const;
331 332
332 // tracks configs that have been verified to pass the FBO completeness when 333 // tracks configs that have been verified to pass the FBO completeness when
333 // used as a color attachment 334 // used as a color attachment
334 VerifiedColorConfigs fVerifiedColorConfigs; 335 VerifiedColorConfigs fVerifiedColorConfigs;
335 336
336 SkTArray<StencilFormat, true> fStencilFormats; 337 SkTArray<StencilFormat, true> fStencilFormats;
337 // tracks configs that have been verified to pass the FBO completeness when 338 // tracks configs that have been verified to pass the FBO completeness when
338 // used as a color attachment when a particular stencil format is used 339 // used as a color attachment when a particular stencil format is used
339 // as a stencil attachment. 340 // as a stencil attachment.
340 SkTArray<VerifiedColorConfigs, true> fStencilVerifiedColorConfigs; 341 SkTArray<VerifiedColorConfigs, true> fStencilVerifiedColorConfigs;
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 bool fValue; 411 bool fValue;
411 }; 412 };
412 413
413 mutable SkTHashCache<ReadPixelsSupportedFormats, 414 mutable SkTHashCache<ReadPixelsSupportedFormats,
414 ReadPixelsSupportedFormats::Key> fReadPixelsSupportedCa che; 415 ReadPixelsSupportedFormats::Key> fReadPixelsSupportedCa che;
415 416
416 typedef GrDrawTargetCaps INHERITED; 417 typedef GrDrawTargetCaps INHERITED;
417 }; 418 };
418 419
419 #endif 420 #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