Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(110)

Side by Side Diff: tests/TextureCompressionTest.cpp

Issue 1787883002: Add SkSpecialImage::extractSubset & NewFromPixmap (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Update to ToT Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tests/TestingSpecialImageAccess.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « tests/TestingSpecialImageAccess.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698