/third_party/skia/docs/examples/ |
D | Canvas_readPixels_a.cpp | 11 sk_sp<SkData> data(SkData::MakeUninitialized(info.minRowBytes() * info.height())); in draw() 12 sk_bzero(data->writable_data(), info.minRowBytes() * info.height()); in draw() 15 canvas->readPixels(info, data->writable_data(), info.minRowBytes(), x, y); in draw() 18 sk_sp<SkImage> image = SkImage::MakeRasterData(info, data, info.minRowBytes()); in draw()
|
D | Surface_readPixels_2.cpp | 13 sk_sp<SkData> data(SkData::MakeUninitialized(info.minRowBytes() * info.height())); in draw() 14 sk_bzero(data->writable_data(), info.minRowBytes() * info.height()); in draw() 17 surf->readPixels(info, data->writable_data(), info.minRowBytes(), x, y); in draw() 20 sk_sp<SkImage> image = SkImage::MakeRasterData(info, data, info.minRowBytes()); in draw()
|
D | ImageInfo_minRowBytes.cpp | 11 size_t minRowBytes = imageInfo.minRowBytes(); in draw() local 12 bool widthTooLarge = !minRowBytes; in draw()
|
D | ImageInfo_minRowBytes64.cpp | 11 uint64_t minRowBytes = imageInfo.minRowBytes64(); in draw() local 12 bool widthTooLarge = (uint64_t) (int32_t) minRowBytes != minRowBytes; in draw()
|
D | Canvas_MakeRasterDirect.cpp | 8 const size_t minRowBytes = info.minRowBytes(); // bytes used by one bitmap row in draw() local 14 std::unique_ptr<SkCanvas> canvas = SkCanvas::MakeRasterDirect(info, pixels, minRowBytes); in draw()
|
D | Color_Type_RGB_101010.cpp | 21 if (bitmap.installPixels(imageInfo, (void*) redBits, imageInfo.minRowBytes())) { in draw() 24 SkPixmap bluePixmap(imageInfo, &blueBits, imageInfo.minRowBytes()); in draw() 25 if (bitmap.installPixels(imageInfo, (void*) blueBits, imageInfo.minRowBytes())) { in draw()
|
D | Color_Type_RGBA_1010102.cpp | 25 if (bitmap.installPixels(imageInfo, (void*) redBits, imageInfo.minRowBytes())) { in draw() 28 SkPixmap bluePixmap(imageInfo, &blueBits, imageInfo.minRowBytes()); in draw() 29 if (bitmap.installPixels(imageInfo, (void*) blueBits, imageInfo.minRowBytes())) { in draw()
|
D | Color_Type_RGB_888.cpp | 21 if (bitmap.installPixels(imageInfo, (void*) red888, imageInfo.minRowBytes())) { in draw() 24 if (bitmap.installPixels(imageInfo, (void*) blue888, imageInfo.minRowBytes())) { in draw()
|
D | Color_Type_RGB_565.cpp | 21 SkPixmap redPixmap(imageInfo, &red565, imageInfo.minRowBytes()); in draw() 25 SkPixmap bluePixmap(imageInfo, &blue565, imageInfo.minRowBytes()); in draw()
|
D | Color_Type_BGRA_8888.cpp | 21 SkPixmap redPixmap(imageInfo, &red8888, imageInfo.minRowBytes()); in draw() 25 SkPixmap bluePixmap(imageInfo, &blue8888, imageInfo.minRowBytes()); in draw()
|
D | Color_Type_ARGB_4444.cpp | 21 SkPixmap redPixmap(imageInfo, &red4444, imageInfo.minRowBytes()); in draw() 25 SkPixmap bluePixmap(imageInfo, &blue4444, imageInfo.minRowBytes()); in draw()
|
D | Color_Type_RGBA_8888.cpp | 21 SkPixmap redPixmap(imageInfo, &red8888, imageInfo.minRowBytes()); in draw() 25 SkPixmap bluePixmap(imageInfo, &blue8888, imageInfo.minRowBytes()); in draw()
|
D | Color_Type_RGBA_F16.cpp | 43 SkPixmap redPixmap(imageInfo, red_f16, imageInfo.minRowBytes()); in draw() 47 SkPixmap bluePixmap(imageInfo, blue_f16, imageInfo.minRowBytes()); in draw()
|
D | Pixmap_rowBytes.cpp | 11 pixmap.info().minRowBytes()); in draw()
|
D | Bitmap_getAddr8.cpp | 12 if (bitmap.installPixels(info, pixels, info.minRowBytes())) { in draw()
|
/third_party/skia/tests/ |
D | BitmapTest.cpp | 57 sk_sp<SkPixelRef> pr = SkMallocPixelRef::MakeAllocate(info, info.minRowBytes()); in test_bigalloc() 65 const size_t explicitRowBytes = info.minRowBytes() + 24; in test_allocpixels() 69 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes()); in test_allocpixels() 71 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes()); in test_allocpixels() 74 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes()); in test_allocpixels() 86 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes()); in test_allocpixels() 89 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes()); in test_allocpixels() 92 bool success = bm.setInfo(info, info.minRowBytes() - 1); // invalid for 32bit in test_allocpixels() 119 success = bm.setInfo(imageInfo, imageInfo.minRowBytes() + rowBytesPadding); in test_allocpixels()
|
D | MallocPixelRefTest.cpp | 27 SkMallocPixelRef::MakeAllocate(info, info.minRowBytes() - 1)); in DEF_TEST() 32 size_t rowBytes = info.minRowBytes() - 1; in DEF_TEST() 41 size_t rowBytes = info.minRowBytes() + info.bytesPerPixel(); in DEF_TEST() 49 size_t rowBytes = info.minRowBytes() + info.bytesPerPixel(); in DEF_TEST()
|
D | CanvasTest.cpp | 181 const size_t minRowBytes = info.minRowBytes(); in DEF_TEST() local 182 const size_t size = info.computeByteSize(minRowBytes); in DEF_TEST() 187 std::unique_ptr<SkCanvas> canvas = SkCanvas::MakeRasterDirect(info, baseAddr, minRowBytes); in DEF_TEST() 194 REPORTER_ASSERT(reporter, minRowBytes == pmap.rowBytes()); in DEF_TEST() 204 minRowBytes + 1)); in DEF_TEST() 208 REPORTER_ASSERT(reporter, nullptr == SkCanvas::MakeRasterDirect(info, baseAddr, minRowBytes)); in DEF_TEST() 212 REPORTER_ASSERT(reporter, nullptr == SkCanvas::MakeRasterDirect(info, baseAddr, minRowBytes)); in DEF_TEST() 216 REPORTER_ASSERT(reporter, nullptr == SkCanvas::MakeRasterDirect(info, baseAddr, minRowBytes)); in DEF_TEST() 220 canvas = SkCanvas::MakeRasterDirect(info, baseAddr, minRowBytes); in DEF_TEST()
|
D | FloatingPointTextureTest.cpp | 53 GrCPixmap controlPixmap(info, controlPixelData.begin(), info.minRowBytes()); in runFPTest() 66 GrPixmap readPixmap(info, readBuffer.begin(), info.minRowBytes()); in runFPTest()
|
/third_party/skia/include/core/ |
D | SkImageInfo.h | 608 size_t minRowBytes() const { in minRowBytes() function 609 uint64_t minRowBytes = this->minRowBytes64(); in minRowBytes() local 610 if (!SkTFitsIn<int32_t>(minRowBytes)) { in minRowBytes() 613 return (size_t)minRowBytes; in minRowBytes() 672 return this->computeByteSize(this->minRowBytes()); in computeMinByteSize()
|
/third_party/skia/src/core/ |
D | SkMallocPixelRef.cpp | 26 rowBytes = info.minRowBytes(); in MakeAllocate() 64 if ((rowBytes < info.minRowBytes()) || (data->size() < info.computeByteSize(rowBytes))) { in MakeWithData()
|
D | SkImageInfo.cpp | 147 if (nullptr == fPixels || fRowBytes < fInfo.minRowBytes()) { in trim() 184 if (nullptr == fPixels || fRowBytes < fInfo.minRowBytes()) { in trim()
|
/third_party/skia/src/utils/ |
D | SkAnimCodecPlayer.cpp | 59 size_t rb = fImageInfo.minRowBytes(); in getFrameAt() 105 rb = imageInfo.minRowBytes(); in getFrameAt()
|
/third_party/skia/src/gpu/ |
D | GrGpu.cpp | 63 const size_t minRowBytes = w * bpp; in validate_texel_levels() local 65 if (texels[currentMipLevel].fRowBytes < minRowBytes) { in validate_texel_levels() 72 if (texels[currentMipLevel].fRowBytes != minRowBytes) { in validate_texel_levels() 425 size_t minRowBytes = SkToSizeT(GrColorTypeBytesPerPixel(dstColorType) * rect.width()); in readPixels() local 427 if (rowBytes != minRowBytes) { in readPixels() 431 if (rowBytes < minRowBytes) { in readPixels()
|
D | GrPixmap.h | 65 if (fRowBytes < info.minRowBytes() || !addr) { in GrPixmapBase() 101 size_t rb = info.minRowBytes(); in Allocate()
|