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

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

Issue 52843003: Don't check if shaders compile or program links in release Chromium (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: actually save file so it gets uploaded Created 7 years, 1 month 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.h » ('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 #include "SkMatrix.h" 10 #include "SkMatrix.h"
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 } 122 }
123 return kNone_GrGLBinding; 123 return kNone_GrGLBinding;
124 } 124 }
125 125
126 bool GrGLIsMesaFromVersionString(const char* versionString) { 126 bool GrGLIsMesaFromVersionString(const char* versionString) {
127 int major, minor, mesaMajor, mesaMinor; 127 int major, minor, mesaMajor, mesaMinor;
128 int n = sscanf(versionString, "%d.%d Mesa %d.%d", &major, &minor, &mesaMajor , &mesaMinor); 128 int n = sscanf(versionString, "%d.%d Mesa %d.%d", &major, &minor, &mesaMajor , &mesaMinor);
129 return 4 == n; 129 return 4 == n;
130 } 130 }
131 131
132 bool GrGLIsChromiumFromRendererString(const char* rendererString) {
133 return 0 == strcmp(rendererString, "Chromium");
134 }
135
132 GrGLVersion GrGLGetVersionFromString(const char* versionString) { 136 GrGLVersion GrGLGetVersionFromString(const char* versionString) {
133 if (NULL == versionString) { 137 if (NULL == versionString) {
134 SkDEBUGFAIL("NULL GL version string."); 138 SkDEBUGFAIL("NULL GL version string.");
135 return 0; 139 return 0;
136 } 140 }
137 141
138 int major, minor; 142 int major, minor;
139 143
140 // check for mesa 144 // check for mesa
141 int mesaMajor, mesaMinor; 145 int mesaMajor, mesaMinor;
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 dest[9] = 0; 293 dest[9] = 0;
290 dest[10] = 1; 294 dest[10] = 1;
291 dest[11] = 0; 295 dest[11] = 0;
292 296
293 // Col 3 297 // Col 3
294 dest[12] = SkScalarToFloat(src[SkMatrix::kMTransX]); 298 dest[12] = SkScalarToFloat(src[SkMatrix::kMTransX]);
295 dest[13] = SkScalarToFloat(src[SkMatrix::kMTransY]); 299 dest[13] = SkScalarToFloat(src[SkMatrix::kMTransY]);
296 dest[14] = 0; 300 dest[14] = 0;
297 dest[15] = SkScalarToFloat(src[SkMatrix::kMPersp2]); 301 dest[15] = SkScalarToFloat(src[SkMatrix::kMPersp2]);
298 } 302 }
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLUtil.h ('k') | src/gpu/gl/GrGpuGL.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698