OLD | NEW |
1 #include "Test.h" | 1 #include "Test.h" |
2 #include "TestClassDef.h" | |
3 | 2 |
4 #include "SkPixelRef.h" | 3 #include "SkPixelRef.h" |
5 #include "SkMallocPixelRef.h" | 4 #include "SkMallocPixelRef.h" |
6 | 5 |
7 static void test_info(skiatest::Reporter* reporter) { | 6 static void test_info(skiatest::Reporter* reporter) { |
8 static const struct { | 7 static const struct { |
9 SkBitmap::Config fConfig; | 8 SkBitmap::Config fConfig; |
10 SkAlphaType fAlphaType; | 9 SkAlphaType fAlphaType; |
11 SkColorType fExpectedColorType; | 10 SkColorType fExpectedColorType; |
12 bool fExpectedSuccess; | 11 bool fExpectedSuccess; |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 pixelRef->notifyPixelsChanged(); | 77 pixelRef->notifyPixelsChanged(); |
79 REPORTER_ASSERT(r, 1 == count); | 78 REPORTER_ASSERT(r, 1 == count); |
80 | 79 |
81 // Quick check that NULL is safe. | 80 // Quick check that NULL is safe. |
82 REPORTER_ASSERT(r, 0 != pixelRef->getGenerationID()); | 81 REPORTER_ASSERT(r, 0 != pixelRef->getGenerationID()); |
83 pixelRef->addGenIDChangeListener(NULL); | 82 pixelRef->addGenIDChangeListener(NULL); |
84 pixelRef->notifyPixelsChanged(); | 83 pixelRef->notifyPixelsChanged(); |
85 | 84 |
86 test_info(r); | 85 test_info(r); |
87 } | 86 } |
OLD | NEW |