| 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 #include "Test.h" | |
| 9 #include "SkBitmap.h" | 8 #include "SkBitmap.h" |
| 10 #include "SkCanvas.h" | 9 #include "SkCanvas.h" |
| 11 #include "SkColorPriv.h" | 10 #include "SkColorPriv.h" |
| 12 #include "SkGradientShader.h" | 11 #include "SkGradientShader.h" |
| 13 #include "SkRect.h" | 12 #include "SkRect.h" |
| 13 #include "Test.h" |
| 14 | 14 |
| 15 // these are in the same order as the SkBitmap::Config enum | 15 // these are in the same order as the SkBitmap::Config enum |
| 16 static const char* gConfigName[] = { | 16 static const char* gConfigName[] = { |
| 17 "None", "A8", "Index8", "565", "4444", "8888" | 17 "None", "A8", "Index8", "565", "4444", "8888" |
| 18 }; | 18 }; |
| 19 | 19 |
| 20 /** 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 |
| 21 value in bad | 21 value in bad |
| 22 */ | 22 */ |
| 23 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); |
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 } | 257 } |
| 258 } | 258 } |
| 259 } | 259 } |
| 260 } | 260 } |
| 261 } | 261 } |
| 262 | 262 |
| 263 DEF_TEST(BlitRow, reporter) { | 263 DEF_TEST(BlitRow, reporter) { |
| 264 test_00_FF(reporter); | 264 test_00_FF(reporter); |
| 265 test_diagonal(reporter); | 265 test_diagonal(reporter); |
| 266 } | 266 } |
| OLD | NEW |