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

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

Issue 23003009: Always support pack/unpack row length on ES3. Add support for NV_pack_subimage extension. (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 | no next file » | 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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 } else { 140 } else {
141 fTextureSwizzleSupport = false; 141 fTextureSwizzleSupport = false;
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 =ctxInfo.hasExtension("GL_EXT_unpack_subimage"); 150 fUnpackRowLengthSupport = version >= GR_GL_VER(3,0) ||
151 ctxInfo.hasExtension("GL_EXT_unpack_subimage") ;
151 fUnpackFlipYSupport = ctxInfo.hasExtension("GL_CHROMIUM_flipy"); 152 fUnpackFlipYSupport = ctxInfo.hasExtension("GL_CHROMIUM_flipy");
152 // no extension for pack row length 153 fPackRowLengthSupport = version >= GR_GL_VER(3,0) ||
153 fPackRowLengthSupport = false; 154 ctxInfo.hasExtension("GL_NV_pack_subimage");
154 fPackFlipYSupport = 155 fPackFlipYSupport =
155 ctxInfo.hasExtension("GL_ANGLE_pack_reverse_row_order"); 156 ctxInfo.hasExtension("GL_ANGLE_pack_reverse_row_order");
156 } 157 }
157 158
158 fTextureUsageSupport = (kES_GrGLBinding == binding) && 159 fTextureUsageSupport = (kES_GrGLBinding == binding) &&
159 ctxInfo.hasExtension("GL_ANGLE_texture_usage"); 160 ctxInfo.hasExtension("GL_ANGLE_texture_usage");
160 161
161 // Tex storage is in desktop 4.2 and can be an extension to desktop or ES. 162 // Tex storage is in desktop 4.2 and can be an extension to desktop or ES.
162 fTexStorageSupport = (kDesktop_GrGLBinding == binding && 163 fTexStorageSupport = (kDesktop_GrGLBinding == binding &&
163 version >= GR_GL_VER(4,2)) || 164 version >= GR_GL_VER(4,2)) ||
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after
590 GrPrintf("GL_ARB_imaging support: %s\n", (fImagingSupport ? "YES": "NO")); 591 GrPrintf("GL_ARB_imaging support: %s\n", (fImagingSupport ? "YES": "NO"));
591 GrPrintf("Two Format Limit: %s\n", (fTwoFormatLimit ? "YES": "NO")); 592 GrPrintf("Two Format Limit: %s\n", (fTwoFormatLimit ? "YES": "NO"));
592 GrPrintf("Fragment coord conventions support: %s\n", 593 GrPrintf("Fragment coord conventions support: %s\n",
593 (fFragCoordsConventionSupport ? "YES": "NO")); 594 (fFragCoordsConventionSupport ? "YES": "NO"));
594 GrPrintf("Vertex array object support: %s\n", (fVertexArrayObjectSupport ? " YES": "NO")); 595 GrPrintf("Vertex array object support: %s\n", (fVertexArrayObjectSupport ? " YES": "NO"));
595 GrPrintf("Use non-VBO for dynamic data: %s\n", 596 GrPrintf("Use non-VBO for dynamic data: %s\n",
596 (fUseNonVBOVertexAndIndexDynamicData ? "YES" : "NO")); 597 (fUseNonVBOVertexAndIndexDynamicData ? "YES" : "NO"));
597 GrPrintf("Core Profile: %s\n", (fIsCoreProfile ? "YES" : "NO")); 598 GrPrintf("Core Profile: %s\n", (fIsCoreProfile ? "YES" : "NO"));
598 GrPrintf("Discard FrameBuffer support: %s\n", (fDiscardFBSupport ? "YES" : " NO")); 599 GrPrintf("Discard FrameBuffer support: %s\n", (fDiscardFBSupport ? "YES" : " NO"));
599 } 600 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698