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

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

Issue 22823006: Changed rules about sized internal formats on GLES3. (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 | « src/gpu/gl/GrGLUtil.h ('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 2011 Google Inc. 2 * Copyright 2011 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 "GrGLUtil.h" 9 #include "GrGLUtil.h"
10 10
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 if (NULL != vendorString) { 199 if (NULL != vendorString) {
200 if (0 == strcmp(vendorString, "ARM")) { 200 if (0 == strcmp(vendorString, "ARM")) {
201 return kARM_GrGLVendor; 201 return kARM_GrGLVendor;
202 } 202 }
203 if (0 == strcmp(vendorString, "Imagination Technologies")) { 203 if (0 == strcmp(vendorString, "Imagination Technologies")) {
204 return kImagination_GrGLVendor; 204 return kImagination_GrGLVendor;
205 } 205 }
206 if (0 == strcmp(vendorString, "Intel")) { 206 if (0 == strcmp(vendorString, "Intel")) {
207 return kIntel_GrGLVendor; 207 return kIntel_GrGLVendor;
208 } 208 }
209 if (0 == strcmp(vendorString, "Qualcomm")) {
210 return kQualcomm_GrGLVendor;
211 }
209 } 212 }
210 return kOther_GrGLVendor; 213 return kOther_GrGLVendor;
211 } 214 }
212 215
213 GrGLBinding GrGLGetBindingInUse(const GrGLInterface* gl) { 216 GrGLBinding GrGLGetBindingInUse(const GrGLInterface* gl) {
214 const GrGLubyte* v; 217 const GrGLubyte* v;
215 GR_GL_CALL_RET(gl, v, GetString(GR_GL_VERSION)); 218 GR_GL_CALL_RET(gl, v, GetString(GR_GL_VERSION));
216 return GrGLGetBindingInUseFromString((const char*) v); 219 return GrGLGetBindingInUseFromString((const char*) v);
217 } 220 }
218 221
219 GrGLVersion GrGLGetVersion(const GrGLInterface* gl) { 222 GrGLVersion GrGLGetVersion(const GrGLInterface* gl) {
220 const GrGLubyte* v; 223 const GrGLubyte* v;
221 GR_GL_CALL_RET(gl, v, GetString(GR_GL_VERSION)); 224 GR_GL_CALL_RET(gl, v, GetString(GR_GL_VERSION));
222 return GrGLGetVersionFromString((const char*) v); 225 return GrGLGetVersionFromString((const char*) v);
223 } 226 }
224 227
225 GrGLSLVersion GrGLGetGLSLVersion(const GrGLInterface* gl) { 228 GrGLSLVersion GrGLGetGLSLVersion(const GrGLInterface* gl) {
226 const GrGLubyte* v; 229 const GrGLubyte* v;
227 GR_GL_CALL_RET(gl, v, GetString(GR_GL_SHADING_LANGUAGE_VERSION)); 230 GR_GL_CALL_RET(gl, v, GetString(GR_GL_SHADING_LANGUAGE_VERSION));
228 return GrGLGetGLSLVersionFromString((const char*) v); 231 return GrGLGetGLSLVersionFromString((const char*) v);
229 } 232 }
230 233
231 GrGLVendor GrGLGetVendor(const GrGLInterface* gl) { 234 GrGLVendor GrGLGetVendor(const GrGLInterface* gl) {
232 const GrGLubyte* v; 235 const GrGLubyte* v;
233 GR_GL_CALL_RET(gl, v, GetString(GR_GL_VENDOR)); 236 GR_GL_CALL_RET(gl, v, GetString(GR_GL_VENDOR));
234 return GrGLGetVendorFromString((const char*) v); 237 return GrGLGetVendorFromString((const char*) v);
235 } 238 }
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLUtil.h ('k') | src/gpu/gl/GrGpuGL.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698