OLD | NEW |
1 | |
2 /* | 1 /* |
3 * Copyright 2011 Google Inc. | 2 * Copyright 2011 Google Inc. |
4 * | 3 * |
5 * 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 |
6 * found in the LICENSE file. | 5 * found in the LICENSE file. |
7 */ | 6 */ |
| 7 |
8 #include "Test.h" | 8 #include "Test.h" |
| 9 #include "TestClassDef.h" |
9 #include "SkBitmap.h" | 10 #include "SkBitmap.h" |
10 #include "SkCanvas.h" | 11 #include "SkCanvas.h" |
11 #include "SkColorPriv.h" | 12 #include "SkColorPriv.h" |
12 #include "SkGradientShader.h" | 13 #include "SkGradientShader.h" |
13 #include "SkRect.h" | 14 #include "SkRect.h" |
14 | 15 |
15 // these are in the same order as the SkBitmap::Config enum | 16 // these are in the same order as the SkBitmap::Config enum |
16 static const char* gConfigName[] = { | 17 static const char* gConfigName[] = { |
17 "None", "A8", "Index8", "565", "4444", "8888" | 18 "None", "A8", "Index8", "565", "4444", "8888" |
18 }; | 19 }; |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 str.printf("Diagonal config=%s bg=0x%x dither=%d alpha=0
x%x src=0x%x", | 256 str.printf("Diagonal config=%s bg=0x%x dither=%d alpha=0
x%x src=0x%x", |
256 gConfigName[gDstConfig[i]], bgColor, dither,
alpha, c); | 257 gConfigName[gDstConfig[i]], bgColor, dither,
alpha, c); |
257 reporter->reportFailed(str); | 258 reporter->reportFailed(str); |
258 } | 259 } |
259 } | 260 } |
260 } | 261 } |
261 } | 262 } |
262 } | 263 } |
263 } | 264 } |
264 | 265 |
265 static void TestBlitRow(skiatest::Reporter* reporter) { | 266 DEF_TEST(BlitRow, reporter) { |
266 test_00_FF(reporter); | 267 test_00_FF(reporter); |
267 test_diagonal(reporter); | 268 test_diagonal(reporter); |
268 } | 269 } |
269 | |
270 #include "TestClassDef.h" | |
271 DEFINE_TESTCLASS("BlitRow", TestBlitRowClass, TestBlitRow) | |
OLD | NEW |