Home | History | Annotate | Download | only in tests

Lines Matching refs:kWidth

46     static const int kWidth = 17;
54 REPORTER_ASSERT(reporter, kWidth % 4 != 0);
58 pixmap.alloc(SkImageInfo::MakeA8(kWidth, kHeight));
76 static const int kWidth = 12;
83 REPORTER_ASSERT(reporter, kWidth % 12 == 0);
87 pixmap.alloc(SkImageInfo::MakeN32Premul(kWidth, kHeight));
105 static const int kWidth = 48; // We need the number to be divisible by both
114 REPORTER_ASSERT(reporter, kWidth % 48 == 0);
118 pixmap.alloc(SkImageInfo::MakeA8(kWidth, kHeight));
129 for (int x = 0; x < kWidth; ++x) {
140 SkAutoTMalloc<uint8_t> decompMemory(kWidth*kHeight);
164 decompBuffer, kWidth,
166 kWidth, kHeight, fmt);
176 for (int x = 0; x < kWidth; ++x) {
177 bool ok = pixels[y*pixmap.rowBytes() + x] == decompBuffer[y*kWidth + x];
192 static const int kWidth = 8;
196 pixmap.alloc(SkImageInfo::MakeA8(kWidth, kHeight));
201 REPORTER_ASSERT(reporter, kWidth % latcDimX == 0);
204 SkTextureCompressor::GetCompressedDataSize(kLATCFormat, kWidth, kHeight);
205 REPORTER_ASSERT(reporter, kSizeToBe == ((kWidth*kHeight*kLATCEncodedBlockSize)/16));
210 for (int i = 0; i < kWidth*kHeight; ++i) {