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

Side by Side Diff: tests/BlitRowTest.cpp

Issue 27933002: More clang warning fixes. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: trybot fixes 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/gl/GrGpuGL.cpp ('k') | tests/CanvasTest.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 /* 2 /*
3 * Copyright 2011 Google Inc. 3 * Copyright 2011 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 #include "Test.h" 8 #include "Test.h"
9 #include "SkBitmap.h" 9 #include "SkBitmap.h"
10 #include "SkCanvas.h" 10 #include "SkCanvas.h"
11 #include "SkColorPriv.h" 11 #include "SkColorPriv.h"
12 #include "SkGradientShader.h" 12 #include "SkGradientShader.h"
13 #include "SkRect.h" 13 #include "SkRect.h"
14 14
15 static inline const char* boolStr(bool value) {
16 return value ? "true" : "false";
17 }
18
19 // these are in the same order as the SkBitmap::Config enum 15 // these are in the same order as the SkBitmap::Config enum
20 static const char* gConfigName[] = { 16 static const char* gConfigName[] = {
21 "None", "A1", "A8", "Index8", "565", "4444", "8888", "RLE_Index8" 17 "None", "A1", "A8", "Index8", "565", "4444", "8888", "RLE_Index8"
22 }; 18 };
23 19
24 /** Returns -1 on success, else the x coord of the first bad pixel, return its 20 /** Returns -1 on success, else the x coord of the first bad pixel, return its
25 value in bad 21 value in bad
26 */ 22 */
27 typedef int (*Proc)(const void*, int width, uint32_t expected, uint32_t* bad); 23 typedef int (*Proc)(const void*, int width, uint32_t expected, uint32_t* bad);
28 24
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 } 262 }
267 } 263 }
268 264
269 static void TestBlitRow(skiatest::Reporter* reporter) { 265 static void TestBlitRow(skiatest::Reporter* reporter) {
270 test_00_FF(reporter); 266 test_00_FF(reporter);
271 test_diagonal(reporter); 267 test_diagonal(reporter);
272 } 268 }
273 269
274 #include "TestClassDef.h" 270 #include "TestClassDef.h"
275 DEFINE_TESTCLASS("BlitRow", TestBlitRowClass, TestBlitRow) 271 DEFINE_TESTCLASS("BlitRow", TestBlitRowClass, TestBlitRow)
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGpuGL.cpp ('k') | tests/CanvasTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698