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

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

Issue 330763008: Add R11 EAC pixel config (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Finding the size should be easy to do Created 6 years, 5 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/GrTexture.cpp ('k') | src/gpu/gl/GrGpuGL.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 #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
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
536 if (kGL_GrGLStandard == standard) {
537 fConfigTextureSupport[kR11_EAC_GrPixelConfig] =
538 version >= GR_GL_VER(4, 3) || ctxInfo.hasExtension("GL_ARB_ES3_compa tibility");
539 } else {
540 fConfigTextureSupport[kR11_EAC_GrPixelConfig] = version >= GR_GL_VER(3, 0);
541 }
534 } 542 }
535 543
536 bool GrGLCaps::readPixelsSupported(const GrGLInterface* intf, 544 bool GrGLCaps::readPixelsSupported(const GrGLInterface* intf,
537 GrGLenum format, 545 GrGLenum format,
538 GrGLenum type) const { 546 GrGLenum type) const {
539 if (GR_GL_RGBA == format && GR_GL_UNSIGNED_BYTE == type) { 547 if (GR_GL_RGBA == format && GR_GL_UNSIGNED_BYTE == type) {
540 // ES 2 guarantees this format is supported 548 // ES 2 guarantees this format is supported
541 return true; 549 return true;
542 } 550 }
543 551
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
783 r.appendf("Two Format Limit: %s\n", (fTwoFormatLimit ? "YES": "NO")); 791 r.appendf("Two Format Limit: %s\n", (fTwoFormatLimit ? "YES": "NO"));
784 r.appendf("Fragment coord conventions support: %s\n", 792 r.appendf("Fragment coord conventions support: %s\n",
785 (fFragCoordsConventionSupport ? "YES": "NO")); 793 (fFragCoordsConventionSupport ? "YES": "NO"));
786 r.appendf("Vertex array object support: %s\n", (fVertexArrayObjectSupport ? "YES": "NO")); 794 r.appendf("Vertex array object support: %s\n", (fVertexArrayObjectSupport ? "YES": "NO"));
787 r.appendf("Use non-VBO for dynamic data: %s\n", 795 r.appendf("Use non-VBO for dynamic data: %s\n",
788 (fUseNonVBOVertexAndIndexDynamicData ? "YES" : "NO")); 796 (fUseNonVBOVertexAndIndexDynamicData ? "YES" : "NO"));
789 r.appendf("Full screen clear is free: %s\n", (fFullClearIsFree ? "YES" : "NO ")); 797 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")); 798 r.appendf("Drops tile on zero divide: %s\n", (fDropsTileOnZeroDivide ? "YES" : "NO"));
791 return r; 799 return r;
792 } 800 }
OLDNEW
« no previous file with comments | « src/gpu/GrTexture.cpp ('k') | src/gpu/gl/GrGpuGL.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698