OLD | NEW |
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 "TestClassDef.h" | |
10 #include "SkBitmap.h" | 9 #include "SkBitmap.h" |
11 #include "SkRect.h" | 10 #include "SkRect.h" |
12 | 11 |
13 static const char* boolStr(bool value) { | 12 static const char* boolStr(bool value) { |
14 return value ? "true" : "false"; | 13 return value ? "true" : "false"; |
15 } | 14 } |
16 | 15 |
17 // these are in the same order as the SkBitmap::Config enum | 16 // these are in the same order as the SkBitmap::Config enum |
18 static const char* gConfigName[] = { | 17 static const char* gConfigName[] = { |
19 "None", "A8", "Index8", "565", "4444", "8888" | 18 "None", "A8", "Index8", "565", "4444", "8888" |
(...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
531 // for the transfer. | 530 // for the transfer. |
532 REPORTER_ASSERT(reporter, | 531 REPORTER_ASSERT(reporter, |
533 subset.copyPixelsFrom(buf, 1, subset.rowBytes()) == | 532 subset.copyPixelsFrom(buf, 1, subset.rowBytes()) == |
534 false); | 533 false); |
535 | 534 |
536 #endif | 535 #endif |
537 } | 536 } |
538 } // for (size_t copyCase ... | 537 } // for (size_t copyCase ... |
539 } | 538 } |
540 } | 539 } |
OLD | NEW |