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

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

Issue 143803012: update mesa version mapping to GL version (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 11 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 | « 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 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 *minor = 1; 68 *minor = 1;
69 return true; 69 return true;
70 case 8: 70 case 8:
71 *major = 3; 71 *major = 3;
72 *minor = 0; 72 *minor = 0;
73 return true; 73 return true;
74 case 9: 74 case 9:
75 *major = 3; 75 *major = 3;
76 *minor = 1; 76 *minor = 1;
77 return true; 77 return true;
78 case 10:
79 *major = 3;
80 *minor = 3;
81 return true;
78 default: 82 default:
79 return false; 83 return false;
80 } 84 }
81 } 85 }
82 } 86 }
83 87
84 /////////////////////////////////////////////////////////////////////////////// 88 ///////////////////////////////////////////////////////////////////////////////
85 89
86 #if GR_GL_LOG_CALLS 90 #if GR_GL_LOG_CALLS
87 bool gLogCallsGL = !!(GR_GL_LOG_CALLS_START); 91 bool gLogCallsGL = !!(GR_GL_LOG_CALLS_START);
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 dest[9] = 0; 291 dest[9] = 0;
288 dest[10] = 1; 292 dest[10] = 1;
289 dest[11] = 0; 293 dest[11] = 0;
290 294
291 // Col 3 295 // Col 3
292 dest[12] = SkScalarToFloat(src[SkMatrix::kMTransX]); 296 dest[12] = SkScalarToFloat(src[SkMatrix::kMTransX]);
293 dest[13] = SkScalarToFloat(src[SkMatrix::kMTransY]); 297 dest[13] = SkScalarToFloat(src[SkMatrix::kMTransY]);
294 dest[14] = 0; 298 dest[14] = 0;
295 dest[15] = SkScalarToFloat(src[SkMatrix::kMPersp2]); 299 dest[15] = SkScalarToFloat(src[SkMatrix::kMPersp2]);
296 } 300 }
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