OLD | NEW |
---|---|
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 #include "GrGLCaps.h" | 9 #include "GrGLCaps.h" |
10 #include "GrGLContext.h" | 10 #include "GrGLContext.h" |
(...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
524 // Check for 3DC | 524 // Check for 3DC |
525 if (!hasLATC) { | 525 if (!hasLATC) { |
526 hasLATC = ctxInfo.hasExtension("GL_AMD_compressed_3DC_texture"); | 526 hasLATC = ctxInfo.hasExtension("GL_AMD_compressed_3DC_texture"); |
527 if (hasLATC) { | 527 if (hasLATC) { |
528 alias = k3DC_LATCAlias; | 528 alias = k3DC_LATCAlias; |
529 } | 529 } |
530 } | 530 } |
531 | 531 |
532 fConfigTextureSupport[kLATC_GrPixelConfig] = hasLATC; | 532 fConfigTextureSupport[kLATC_GrPixelConfig] = hasLATC; |
533 fLATCAlias = alias; | 533 fLATCAlias = alias; |
534 | |
535 // Check for R11_EAC | |
robertphillips
2014/06/27 16:56:47
What about GL_ARB_ES3_compatibility ?
krajcevski
2014/06/27 17:49:37
Done.
| |
536 fConfigTextureSupport[kR11_EAC_GrPixelConfig] = | |
537 ((kGL_GrGLStandard == standard) && (version >= GR_GL_VER(4, 3))) || | |
538 ((kGLES_GrGLStandard == standard) && (version >= GR_GL_VER(3, 0))); | |
534 } | 539 } |
535 | 540 |
536 bool GrGLCaps::readPixelsSupported(const GrGLInterface* intf, | 541 bool GrGLCaps::readPixelsSupported(const GrGLInterface* intf, |
537 GrGLenum format, | 542 GrGLenum format, |
538 GrGLenum type) const { | 543 GrGLenum type) const { |
539 if (GR_GL_RGBA == format && GR_GL_UNSIGNED_BYTE == type) { | 544 if (GR_GL_RGBA == format && GR_GL_UNSIGNED_BYTE == type) { |
540 // ES 2 guarantees this format is supported | 545 // ES 2 guarantees this format is supported |
541 return true; | 546 return true; |
542 } | 547 } |
543 | 548 |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
783 r.appendf("Two Format Limit: %s\n", (fTwoFormatLimit ? "YES": "NO")); | 788 r.appendf("Two Format Limit: %s\n", (fTwoFormatLimit ? "YES": "NO")); |
784 r.appendf("Fragment coord conventions support: %s\n", | 789 r.appendf("Fragment coord conventions support: %s\n", |
785 (fFragCoordsConventionSupport ? "YES": "NO")); | 790 (fFragCoordsConventionSupport ? "YES": "NO")); |
786 r.appendf("Vertex array object support: %s\n", (fVertexArrayObjectSupport ? "YES": "NO")); | 791 r.appendf("Vertex array object support: %s\n", (fVertexArrayObjectSupport ? "YES": "NO")); |
787 r.appendf("Use non-VBO for dynamic data: %s\n", | 792 r.appendf("Use non-VBO for dynamic data: %s\n", |
788 (fUseNonVBOVertexAndIndexDynamicData ? "YES" : "NO")); | 793 (fUseNonVBOVertexAndIndexDynamicData ? "YES" : "NO")); |
789 r.appendf("Full screen clear is free: %s\n", (fFullClearIsFree ? "YES" : "NO ")); | 794 r.appendf("Full screen clear is free: %s\n", (fFullClearIsFree ? "YES" : "NO ")); |
790 r.appendf("Drops tile on zero divide: %s\n", (fDropsTileOnZeroDivide ? "YES" : "NO")); | 795 r.appendf("Drops tile on zero divide: %s\n", (fDropsTileOnZeroDivide ? "YES" : "NO")); |
791 return r; | 796 return r; |
792 } | 797 } |
OLD | NEW |