OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 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 "SkAutoPixmapStorage.h" | |
9 #include "SkBitmap.h" | 8 #include "SkBitmap.h" |
10 #include "SkData.h" | 9 #include "SkData.h" |
11 #include "SkEndian.h" | 10 #include "SkEndian.h" |
12 #include "SkImageInfo.h" | 11 #include "SkImageInfo.h" |
13 #include "SkTemplates.h" | 12 #include "SkTemplates.h" |
14 #include "SkTextureCompressor.h" | 13 #include "SkTextureCompressor.h" |
15 #include "Test.h" | 14 #include "Test.h" |
16 | 15 |
17 // TODO: Create separate tests for RGB and RGBA data once | 16 // TODO: Create separate tests for RGB and RGBA data once |
18 // ASTC and ETC1 decompression is implemented. | 17 // ASTC and ETC1 decompression is implemented. |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 (kIndex << 28) | (kIndex << 31) | (kIndex << 34) | (kIndex << 37
) | | 267 (kIndex << 28) | (kIndex << 31) | (kIndex << 34) | (kIndex << 37
) | |
269 (kIndex << 40) | (kIndex << 43) | (kIndex << 46) | (kIndex << 49
) | | 268 (kIndex << 40) | (kIndex << 43) | (kIndex << 46) | (kIndex << 49
) | |
270 (kIndex << 52) | (kIndex << 55) | (kIndex << 58) | (kIndex << 61
)); | 269 (kIndex << 52) | (kIndex << 55) | (kIndex << 58) | (kIndex << 61
)); |
271 | 270 |
272 const uint64_t* blockPtr = reinterpret_cast<const uint64_t*>(latcData->d
ata()); | 271 const uint64_t* blockPtr = reinterpret_cast<const uint64_t*>(latcData->d
ata()); |
273 for (size_t i = 0; i < (kSizeToBe/8); ++i) { | 272 for (size_t i = 0; i < (kSizeToBe/8); ++i) { |
274 REPORTER_ASSERT(reporter, blockPtr[i] == kConstColorEncoding); | 273 REPORTER_ASSERT(reporter, blockPtr[i] == kConstColorEncoding); |
275 } | 274 } |
276 } | 275 } |
277 } | 276 } |
OLD | NEW |