| OLD | NEW | 
|    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" | 
 |   11 #include <stdio.h> | 
|   11  |   12  | 
|   12 void GrGLClearErr(const GrGLInterface* gl) { |   13 void GrGLClearErr(const GrGLInterface* gl) { | 
|   13     while (GR_GL_NO_ERROR != gl->fGetError()) {} |   14     while (GR_GL_NO_ERROR != gl->fGetError()) {} | 
|   14 } |   15 } | 
|   15  |   16  | 
|   16 namespace { |   17 namespace { | 
|   17 const char *get_error_string(uint32_t err) { |   18 const char *get_error_string(uint32_t err) { | 
|   18     switch (err) { |   19     switch (err) { | 
|   19     case GR_GL_NO_ERROR: |   20     case GR_GL_NO_ERROR: | 
|   20         return ""; |   21         return ""; | 
| (...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  288     dest[9]  = 0; |  289     dest[9]  = 0; | 
|  289     dest[10] = 1; |  290     dest[10] = 1; | 
|  290     dest[11] = 0; |  291     dest[11] = 0; | 
|  291  |  292  | 
|  292     // Col 3 |  293     // Col 3 | 
|  293     dest[12] = SkScalarToFloat(src[SkMatrix::kMTransX]); |  294     dest[12] = SkScalarToFloat(src[SkMatrix::kMTransX]); | 
|  294     dest[13] = SkScalarToFloat(src[SkMatrix::kMTransY]); |  295     dest[13] = SkScalarToFloat(src[SkMatrix::kMTransY]); | 
|  295     dest[14] = 0; |  296     dest[14] = 0; | 
|  296     dest[15] = SkScalarToFloat(src[SkMatrix::kMPersp2]); |  297     dest[15] = SkScalarToFloat(src[SkMatrix::kMPersp2]); | 
|  297 } |  298 } | 
| OLD | NEW |