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