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

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

Issue 27044002: Clean up SkTypes.h. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: For patch -p1. Created 7 years, 2 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/GrSurface.cpp ('k') | src/pathops/SkPathOpsDebug.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"
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
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 }
OLDNEW
« no previous file with comments | « src/gpu/GrSurface.cpp ('k') | src/pathops/SkPathOpsDebug.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698