/external/skia/tests/ |
H A D | BitmapTest.cpp | 21 SkPixelRef* pr = SkMallocPixelRef::NewAllocate(info, info.minRowBytes(), NULL); 29 const size_t explicitRowBytes = info.minRowBytes() + 24; 33 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes()); 35 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes()); 38 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes()); 50 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes()); 53 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes()); 56 bool success = bm.setInfo(info, info.minRowBytes() - 1); // invalid for 32bit
|
H A D | BitmapGetColorTest.cpp | 40 bm.installPixels(info, storage, info.minRowBytes());
|
H A D | MallocPixelRefTest.cpp | 28 SkMallocPixelRef::NewAllocate(info, info.minRowBytes() - 1, NULL)); 33 size_t rowBytes = info.minRowBytes() - 1; 42 size_t rowBytes = info.minRowBytes() + 2; 50 size_t rowBytes = info.minRowBytes() + 7;
|
H A D | CanvasTest.cpp | 692 const size_t minRowBytes = info.minRowBytes(); local 693 const size_t size = info.getSafeSize(minRowBytes); 698 SkCanvas* canvas = SkCanvas::NewRasterDirect(info, baseAddr, minRowBytes); 706 REPORTER_ASSERT(reporter, minRowBytes == rowBytes); 717 REPORTER_ASSERT(reporter, NULL == SkCanvas::NewRasterDirect(info, baseAddr, minRowBytes)); 721 REPORTER_ASSERT(reporter, NULL == SkCanvas::NewRasterDirect(info, baseAddr, minRowBytes)); 725 REPORTER_ASSERT(reporter, NULL == SkCanvas::NewRasterDirect(info, baseAddr, minRowBytes)); 729 canvas = SkCanvas::NewRasterDirect(info, baseAddr, minRowBytes);
|
H A D | BitmapCopyTest.cpp | 454 bufBm.installPixels(info, buf, info.minRowBytes() * 2); 497 bufBm.installPixels(info, buf, info.minRowBytes()); 512 bufBm.installPixels(info, buf, info.minRowBytes()); 523 bufBm.installPixels(info, buf, info.minRowBytes());
|
H A D | SurfaceTest.cpp | 47 const size_t rowBytes = info.minRowBytes(); 134 size_t rowBytes = info.minRowBytes(); 149 const size_t rowBytes = info.minRowBytes(); 277 REPORTER_ASSERT(reporter, info.minRowBytes() <= rowBytes); 340 REPORTER_ASSERT(reporter, requestInfo.minRowBytes() <= rowBytes);
|
H A D | CachedDecodingPixelRefTest.cpp | 189 REPORTER_ASSERT(fReporter, rowBytes >= info.minRowBytes());
|
H A D | WritePixelsTest.cpp | 303 const size_t rowBytes = c.fTightRowBytes ? info.minRowBytes() : 4 * DEV_W + 100;
|
/external/skia/src/image/ |
H A D | SkImagePriv.h | 33 return SkAlign4(info.minRowBytes());
|
H A D | SkSurface_Raster.cpp | 98 fBitmap.setInfo(info, info.minRowBytes());
|
/external/skia/bench/ |
H A D | CodecBench.cpp | 62 fPixelStorage.reset(fInfo.getSafeSize(fInfo.minRowBytes())); 75 codec->getPixels(fInfo, fPixelStorage.get(), fInfo.minRowBytes(),
|
H A D | DecodingBench.cpp | 71 const size_t rowBytes = bm.info().minRowBytes();
|
H A D | nanobench.cpp | 692 const size_t rowBytes = info.minRowBytes();
|
/external/skia/include/codec/ |
H A D | SkScanlineDecoder.h | 32 if ((rowBytes < fDstInfo.minRowBytes() && countLines > 1 ) || countLines <= 0 88 SkAutoMalloc storage(fDstInfo.minRowBytes());
|
/external/skia/src/core/ |
H A D | SkMallocPixelRef.cpp | 117 if ((rowBytes < info.minRowBytes()) 143 SkASSERT(rowBytes >= info.minRowBytes()); 166 SkASSERT(rowBytes >= info.minRowBytes());
|
H A D | SkImageGenerator.cpp | 19 if (rowBytes < info.minRowBytes()) {
|
H A D | SkImageInfo.cpp | 93 if (NULL == fPixels || fRowBytes < fInfo.minRowBytes()) {
|
H A D | SkBitmap.cpp | 326 SkPixelRef* pr = factory->create(correctedInfo, correctedInfo.minRowBytes(), ctable); 440 if (dstRowBytes < fInfo.minRowBytes() || 464 size_t rowBytes = fInfo.minRowBytes(); 874 if (NULL == dstPixels || dstRB < requestedDstInfo.minRowBytes()) { 1229 // If there was an error reading "info", don't use it to compute minRowBytes() 1234 const size_t ramRB = info.minRowBytes(); 1263 SkAutoTUnref<SkPixelRef> pr(SkMallocPixelRef::NewWithData(info, info.minRowBytes(), 1318 SkASSERT(fPixelRef->rowBytes() >= fInfo.minRowBytes());
|
H A D | SkDevice.cpp | 191 SkASSERT(rowBytes >= info.minRowBytes()); 206 SkASSERT(rowBytes >= info.minRowBytes());
|
H A D | SkBitmapProcState.cpp | 111 return bm.info().getSafeSize(bm.info().minRowBytes())
|
/external/skia/include/core/ |
H A D | SkBitmap.h | 237 * (e.g. rowBytes < info.minRowBytes() or rowBytes is not aligned with 250 return this->tryAllocPixels(info, info.minRowBytes()); 254 this->allocPixels(info, info.minRowBytes());
|
H A D | SkImageInfo.h | 246 size_t minRowBytes() const { function in struct:SkImageInfo
|
/external/skia/src/codec/ |
H A D | SkJpegCodec.cpp | 497 this->initializeSwizzler(dstInfo, NULL, dstInfo.minRowBytes(), options);
|
H A D | SkCodec_libpng.cpp | 665 // be at least dstInfo.minRowBytes. 666 if (this->initializeSwizzler(dstInfo, NULL, dstInfo.minRowBytes(), options, ctable,
|
H A D | SkSwizzler.cpp | 282 if (info.minRowBytes() > dstRowBytes) {
|