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

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

Issue 23128009: Use ES3 texture swizzling. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 4 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 | « no previous file | 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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 fBGRAIsInternalFormat = true; 131 fBGRAIsInternalFormat = true;
132 } 132 }
133 SkASSERT(fBGRAFormatSupport || 133 SkASSERT(fBGRAFormatSupport ||
134 kSkia8888_GrPixelConfig != kBGRA_8888_GrPixelConfig); 134 kSkia8888_GrPixelConfig != kBGRA_8888_GrPixelConfig);
135 } 135 }
136 136
137 if (kDesktop_GrGLBinding == binding) { 137 if (kDesktop_GrGLBinding == binding) {
138 fTextureSwizzleSupport = version >= GR_GL_VER(3,3) || 138 fTextureSwizzleSupport = version >= GR_GL_VER(3,3) ||
139 ctxInfo.hasExtension("GL_ARB_texture_swizzle"); 139 ctxInfo.hasExtension("GL_ARB_texture_swizzle");
140 } else { 140 } else {
141 fTextureSwizzleSupport = false; 141 fTextureSwizzleSupport = version >= GR_GL_VER(3,0);
142 } 142 }
143 143
144 if (kDesktop_GrGLBinding == binding) { 144 if (kDesktop_GrGLBinding == binding) {
145 fUnpackRowLengthSupport = true; 145 fUnpackRowLengthSupport = true;
146 fUnpackFlipYSupport = false; 146 fUnpackFlipYSupport = false;
147 fPackRowLengthSupport = true; 147 fPackRowLengthSupport = true;
148 fPackFlipYSupport = false; 148 fPackFlipYSupport = false;
149 } else { 149 } else {
150 fUnpackRowLengthSupport = version >= GR_GL_VER(3,0) || 150 fUnpackRowLengthSupport = version >= GR_GL_VER(3,0) ||
151 ctxInfo.hasExtension("GL_EXT_unpack_subimage") ; 151 ctxInfo.hasExtension("GL_EXT_unpack_subimage") ;
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after
594 GrPrintf("GL_ARB_imaging support: %s\n", (fImagingSupport ? "YES": "NO")); 594 GrPrintf("GL_ARB_imaging support: %s\n", (fImagingSupport ? "YES": "NO"));
595 GrPrintf("Two Format Limit: %s\n", (fTwoFormatLimit ? "YES": "NO")); 595 GrPrintf("Two Format Limit: %s\n", (fTwoFormatLimit ? "YES": "NO"));
596 GrPrintf("Fragment coord conventions support: %s\n", 596 GrPrintf("Fragment coord conventions support: %s\n",
597 (fFragCoordsConventionSupport ? "YES": "NO")); 597 (fFragCoordsConventionSupport ? "YES": "NO"));
598 GrPrintf("Vertex array object support: %s\n", (fVertexArrayObjectSupport ? " YES": "NO")); 598 GrPrintf("Vertex array object support: %s\n", (fVertexArrayObjectSupport ? " YES": "NO"));
599 GrPrintf("Use non-VBO for dynamic data: %s\n", 599 GrPrintf("Use non-VBO for dynamic data: %s\n",
600 (fUseNonVBOVertexAndIndexDynamicData ? "YES" : "NO")); 600 (fUseNonVBOVertexAndIndexDynamicData ? "YES" : "NO"));
601 GrPrintf("Core Profile: %s\n", (fIsCoreProfile ? "YES" : "NO")); 601 GrPrintf("Core Profile: %s\n", (fIsCoreProfile ? "YES" : "NO"));
602 GrPrintf("Discard FrameBuffer support: %s\n", (fDiscardFBSupport ? "YES" : " NO")); 602 GrPrintf("Discard FrameBuffer support: %s\n", (fDiscardFBSupport ? "YES" : " NO"));
603 } 603 }
OLDNEW
« no previous file with comments | « no previous file | src/gpu/gl/GrGpuGL.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698