/external/skqp/tests/ |
D | BitmapTest.cpp | 47 sk_sp<SkPixelRef> pr = SkMallocPixelRef::MakeAllocate(info, info.minRowBytes()); in test_bigalloc() 55 const size_t explicitRowBytes = info.minRowBytes() + 24; in test_allocpixels() 59 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes()); in test_allocpixels() 61 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes()); in test_allocpixels() 64 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes()); in test_allocpixels() 76 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes()); in test_allocpixels() 79 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes()); in test_allocpixels() 82 bool success = bm.setInfo(info, info.minRowBytes() - 1); // invalid for 32bit in test_allocpixels()
|
D | MallocPixelRefTest.cpp | 29 SkMallocPixelRef::MakeAllocate(info, info.minRowBytes() - 1)); in DEF_TEST() 34 size_t rowBytes = info.minRowBytes() - 1; in DEF_TEST() 43 size_t rowBytes = info.minRowBytes() + 2; in DEF_TEST() 51 size_t rowBytes = info.minRowBytes() + 7; in DEF_TEST()
|
D | CanvasTest.cpp | 569 const size_t minRowBytes = info.minRowBytes(); in test_newraster() local 570 const size_t size = info.computeByteSize(minRowBytes); in test_newraster() 575 std::unique_ptr<SkCanvas> canvas = SkCanvas::MakeRasterDirect(info, baseAddr, minRowBytes); in test_newraster() 582 REPORTER_ASSERT(reporter, minRowBytes == pmap.rowBytes()); in test_newraster() 592 REPORTER_ASSERT(reporter, nullptr == SkCanvas::MakeRasterDirect(info, baseAddr, minRowBytes)); in test_newraster() 596 REPORTER_ASSERT(reporter, nullptr == SkCanvas::MakeRasterDirect(info, baseAddr, minRowBytes)); in test_newraster() 600 REPORTER_ASSERT(reporter, nullptr == SkCanvas::MakeRasterDirect(info, baseAddr, minRowBytes)); in test_newraster() 604 canvas = SkCanvas::MakeRasterDirect(info, baseAddr, minRowBytes); in test_newraster()
|
D | BitmapGetColorTest.cpp | 40 bm.installPixels(info, storage, info.minRowBytes()); in DEF_TEST()
|
/external/skia/tests/ |
D | BitmapTest.cpp | 47 sk_sp<SkPixelRef> pr = SkMallocPixelRef::MakeAllocate(info, info.minRowBytes()); in test_bigalloc() 55 const size_t explicitRowBytes = info.minRowBytes() + 24; in test_allocpixels() 59 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes()); in test_allocpixels() 61 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes()); in test_allocpixels() 64 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes()); in test_allocpixels() 76 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes()); in test_allocpixels() 79 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes()); in test_allocpixels() 82 bool success = bm.setInfo(info, info.minRowBytes() - 1); // invalid for 32bit in test_allocpixels()
|
D | MallocPixelRefTest.cpp | 29 SkMallocPixelRef::MakeAllocate(info, info.minRowBytes() - 1)); in DEF_TEST() 34 size_t rowBytes = info.minRowBytes() - 1; in DEF_TEST() 43 size_t rowBytes = info.minRowBytes() + 2; in DEF_TEST() 51 size_t rowBytes = info.minRowBytes() + 7; in DEF_TEST()
|
D | CanvasTest.cpp | 569 const size_t minRowBytes = info.minRowBytes(); in test_newraster() local 570 const size_t size = info.computeByteSize(minRowBytes); in test_newraster() 575 std::unique_ptr<SkCanvas> canvas = SkCanvas::MakeRasterDirect(info, baseAddr, minRowBytes); in test_newraster() 582 REPORTER_ASSERT(reporter, minRowBytes == pmap.rowBytes()); in test_newraster() 592 REPORTER_ASSERT(reporter, nullptr == SkCanvas::MakeRasterDirect(info, baseAddr, minRowBytes)); in test_newraster() 596 REPORTER_ASSERT(reporter, nullptr == SkCanvas::MakeRasterDirect(info, baseAddr, minRowBytes)); in test_newraster() 600 REPORTER_ASSERT(reporter, nullptr == SkCanvas::MakeRasterDirect(info, baseAddr, minRowBytes)); in test_newraster() 604 canvas = SkCanvas::MakeRasterDirect(info, baseAddr, minRowBytes); in test_newraster()
|
D | BitmapGetColorTest.cpp | 40 bm.installPixels(info, storage, info.minRowBytes()); in DEF_TEST()
|
/external/skqp/bench/ |
D | ColorCodecBench.cpp | 40 SkCodec::MakeFromData(fEncoded)->getPixels(fDstInfo, fDst.get(), fDstInfo.minRowBytes()); in decodeAndXform() 55 dst = SkTAddOffset<void>(dst, fDstInfo.minRowBytes()); in xformOnly() 56 src = SkTAddOffset<void>(src, fSrcInfo.minRowBytes()); in xformOnly() 94 codec->getPixels(fSrcInfo, fSrc.get(), fSrcInfo.minRowBytes()); in onDelayedSetup()
|
D | CodecBench.cpp | 60 codec->getPixels(fInfo, fPixelStorage.get(), fInfo.minRowBytes(), in onDraw()
|
D | AndroidCodecBench.cpp | 53 codec->getAndroidPixels(fInfo, fPixelStorage.get(), fInfo.minRowBytes(), &options); in onDraw()
|
/external/skia/bench/ |
D | ColorCodecBench.cpp | 40 SkCodec::MakeFromData(fEncoded)->getPixels(fDstInfo, fDst.get(), fDstInfo.minRowBytes()); in decodeAndXform() 55 dst = SkTAddOffset<void>(dst, fDstInfo.minRowBytes()); in xformOnly() 56 src = SkTAddOffset<void>(src, fSrcInfo.minRowBytes()); in xformOnly() 94 codec->getPixels(fSrcInfo, fSrc.get(), fSrcInfo.minRowBytes()); in onDelayedSetup()
|
/external/skia/include/core/ |
D | SkImageInfo.h | 244 size_t minRowBytes() const { in minRowBytes() function 245 uint64_t minRowBytes = this->minRowBytes64(); in minRowBytes() local 246 if (!sk_64_isS32(minRowBytes)) { in minRowBytes() 249 return sk_64_asS32(minRowBytes); in minRowBytes() 285 return this->computeByteSize(this->minRowBytes()); in computeMinByteSize()
|
/external/skqp/include/core/ |
D | SkImageInfo.h | 281 size_t minRowBytes() const { in minRowBytes() function 282 uint64_t minRowBytes = this->minRowBytes64(); in minRowBytes() local 283 if (!sk_64_isS32(minRowBytes)) { in minRowBytes() 286 return sk_64_asS32(minRowBytes); in minRowBytes() 326 return this->computeByteSize(this->minRowBytes()); in computeMinByteSize()
|
/external/skia/docs/ |
D | SkImageInfo_Reference.bmh | 111 if (bitmap.installPixels(imageInfo, (void*) &color, imageInfo.minRowBytes())) { 151 if (bitmap.installPixels(imageInfo, (void*) &color, imageInfo.minRowBytes())) { 182 if (bitmap.installPixels(imageInfo, (void*) &color, imageInfo.minRowBytes())) { 302 SkPixmap alphaPixmap(imageInfo, &alpha8, imageInfo.minRowBytes()); 333 SkPixmap redPixmap(imageInfo, &red565, imageInfo.minRowBytes()); 337 SkPixmap bluePixmap(imageInfo, &blue565, imageInfo.minRowBytes()); 381 SkPixmap redPixmap(imageInfo, &red4444, imageInfo.minRowBytes()); 385 SkPixmap bluePixmap(imageInfo, &blue4444, imageInfo.minRowBytes()); 431 SkPixmap redPixmap(imageInfo, &red8888, imageInfo.minRowBytes()); 435 SkPixmap bluePixmap(imageInfo, &blue8888, imageInfo.minRowBytes()); [all …]
|
/external/skqp/src/core/ |
D | SkMallocPixelRef.cpp | 62 rowBytes = info.minRowBytes(); in MakeUsing() 122 if ((rowBytes < info.minRowBytes()) || (data->size() < info.computeByteSize(rowBytes))) { in MakeWithData()
|
D | SkImageInfo.cpp | 168 if (nullptr == fPixels || fRowBytes < fInfo.minRowBytes()) { in trim() 204 if (nullptr == fPixels || fRowBytes < fInfo.minRowBytes()) { in trim()
|
D | SkAutoPixmapStorage.cpp | 28 size_t rb = info.minRowBytes(); in AllocSize()
|
/external/skia/src/core/ |
D | SkMallocPixelRef.cpp | 62 rowBytes = info.minRowBytes(); in MakeUsing() 122 if ((rowBytes < info.minRowBytes()) || (data->size() < info.computeByteSize(rowBytes))) { in MakeWithData()
|
D | SkImageInfo.cpp | 208 if (nullptr == fPixels || fRowBytes < fInfo.minRowBytes()) { in trim() 244 if (nullptr == fPixels || fRowBytes < fInfo.minRowBytes()) { in trim()
|
D | SkAutoPixmapStorage.cpp | 28 size_t rb = info.minRowBytes(); in AllocSize()
|
/external/skqp/src/images/ |
D | SkImageEncoderPriv.h | 27 if (!src.addr() || src.rowBytes() < src.info().minRowBytes()) { in SkPixmapIsValid()
|
/external/skia/src/images/ |
D | SkImageEncoderPriv.h | 27 if (!src.addr() || src.rowBytes() < src.info().minRowBytes()) { in SkPixmapIsValid()
|
/external/skia/src/image/ |
D | SkImage.cpp | 327 const size_t rowBytes = info.minRowBytes(); in makeRasterImage() 334 pm = { info.makeColorSpace(nullptr), data->writable_data(), info.minRowBytes() }; in makeRasterImage() 420 size_t rowBytes = info.minRowBytes(); in SkImageMakeRasterCopyAndAssignColorSpace()
|
/external/skqp/src/image/ |
D | SkImage.cpp | 329 const size_t rowBytes = info.minRowBytes(); in makeRasterImage() 336 pm = { info.makeColorSpace(nullptr), data->writable_data(), info.minRowBytes() }; in makeRasterImage() 454 size_t rowBytes = info.minRowBytes(); in SkImageMakeRasterCopyAndAssignColorSpace()
|