/third_party/flutter/skia/include/core/ |
D | SkPixmap.h | 567 bool readPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes) const { in readPixels() function 568 return this->readPixels(dstInfo, dstPixels, dstRowBytes, 0, 0); in readPixels() 597 bool readPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes, int srcX, 622 bool readPixels(const SkPixmap& dst, int srcX, int srcY) const { in readPixels() function 623 return this->readPixels(dst.info(), dst.writable_addr(), dst.rowBytes(), srcX, srcY); in readPixels() 643 bool readPixels(const SkPixmap& dst) const { in readPixels() function 644 return this->readPixels(dst.info(), dst.writable_addr(), dst.rowBytes(), 0, 0); in readPixels()
|
D | SkBitmap.h | 925 bool readPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes, 954 bool readPixels(const SkPixmap& dst, int srcX, int srcY) const; 976 bool readPixels(const SkPixmap& dst) const { in readPixels() function 977 return this->readPixels(dst, 0, 0); in readPixels()
|
/third_party/skia/include/core/ |
D | SkPixmap.h | 563 bool readPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes) const { in readPixels() function 564 return this->readPixels(dstInfo, dstPixels, dstRowBytes, 0, 0); in readPixels() 593 bool readPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes, int srcX, 618 bool readPixels(const SkPixmap& dst, int srcX, int srcY) const { in readPixels() function 619 return this->readPixels(dst.info(), dst.writable_addr(), dst.rowBytes(), srcX, srcY); in readPixels() 639 bool readPixels(const SkPixmap& dst) const { in readPixels() function 640 return this->readPixels(dst.info(), dst.writable_addr(), dst.rowBytes(), 0, 0); in readPixels()
|
D | SkBitmap.h | 948 bool readPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes, 979 bool readPixels(const SkPixmap& dst, int srcX, int srcY) const; 1001 bool readPixels(const SkPixmap& dst) const { in readPixels() function 1002 return this->readPixels(dst, 0, 0); in readPixels()
|
/third_party/skia/tests/ |
D | SkImageTest.cpp | 41 tgt.readPixels(info, &pixel, 4, 0, 0); in DEF_TEST() 43 tgt.readPixels(info, &pixel, 4, gWidth - 6, gWidth - 6); in DEF_TEST() 46 tgt.readPixels(info, &pixel, 4, gWidth - 5, gWidth - 5); in DEF_TEST()
|
D | ExtendedSkColorTypeTests.cpp | 124 REPORTER_ASSERT(reporter, i->readPixels(nullptr, readbackPM, 0, 0)); in raster_tests() 151 REPORTER_ASSERT(reporter, i->readPixels(nullptr, readbackPM, 0, 0)); in raster_tests() 229 if (img->readPixels(dContext, nativeActual, 0, 0)) { in gpu_tests() 246 REPORTER_ASSERT(reporter, s->readPixels(nativeActual, 0, 0)); in gpu_tests() 263 if (img->readPixels(dContext, f32Actual, 0, 0)) { in gpu_tests() 287 REPORTER_ASSERT(reporter, s->readPixels(f32Actual, 0, 0)); in gpu_tests()
|
D | ImageNewShaderTest.cpp | 56 sourceSurface->readPixels(bmOrig, 0, 0); in run_shader_test() 61 destinationSurface->readPixels(bm, 0, 0); in run_shader_test() 83 destinationSurface->readPixels(bmt, 0, 0); in run_shader_test()
|
D | GrOpListFlushTest.cpp | 80 REPORTER_ASSERT(reporter, surface1->readPixels(readbackBitmap, 0, 0)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 83 REPORTER_ASSERT(reporter, surface2->readPixels(readbackBitmap, 0, 0)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
|
D | ImageTest.cpp | 73 REPORTER_ASSERT(reporter, a->readPixels(dContextA, pmapA, srcX, srcY)); in assert_equal() 74 REPORTER_ASSERT(reporter, b->readPixels(nullptr, pmapB, 0, 0)); in assert_equal() 273 REPORTER_ASSERT(reporter, image1->readPixels(nullptr, dstInfo, pixels, dstRowBytes, 0, 0)); in DEF_TEST() 285 REPORTER_ASSERT(reporter, image2->readPixels(nullptr, dstInfo, pixels, dstRowBytes, 0, 0)); in DEF_TEST() 532 if (!texImage->readPixels(dContext, unpremul.info(), unpremul.getPixels(), unpremul.rowBytes(), in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 549 if (!texImage->readPixels(dContext, premul.info(), premul.getPixels(), premul.rowBytes(), in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 672 REPORTER_ASSERT(reporter, !image->readPixels(dContext, info, pixels, rowBytes, 0, 0)); in image_test_read_pixels() 676 REPORTER_ASSERT(reporter, !image->readPixels(dContext, info, pixels, rowBytes, -w, 0)); in image_test_read_pixels() 677 REPORTER_ASSERT(reporter, !image->readPixels(dContext, info, pixels, rowBytes, 0, -h)); in image_test_read_pixels() 678 REPORTER_ASSERT(reporter, !image->readPixels(dContext, info, pixels, rowBytes, in image_test_read_pixels() [all …]
|
/third_party/flutter/skia/tests/ |
D | SkImageTest.cpp | 40 tgt.readPixels(info, &pixel, 4, 0, 0); in DEF_TEST() 42 tgt.readPixels(info, &pixel, 4, gWidth - 6, gWidth - 6); in DEF_TEST() 45 tgt.readPixels(info, &pixel, 4, gWidth - 5, gWidth - 5); in DEF_TEST()
|
D | GrUploadPixelsTests.cpp | 41 bool result = sContext->readPixels(dstInfo, dstBuffer, 0, {0, 0}); in basic_texture_test() 54 result = sContext->readPixels(dstInfo, dstBuffer, 0, {2, 10}); in basic_texture_test() 73 bool result = sContext->readPixels(dstInfo, dstBuffer, 0, {0, 0}); in basic_texture_test() 86 result = sContext->readPixels(dstInfo, dstBuffer, 0, {5, 4}); in basic_texture_test()
|
D | ImageNewShaderTest.cpp | 57 sourceSurface->readPixels(bmOrig, 0, 0); in run_shader_test() 62 destinationSurface->readPixels(bm, 0, 0); in run_shader_test() 84 destinationSurface->readPixels(bmt, 0, 0); in run_shader_test()
|
D | GrOpListFlushTest.cpp | 77 REPORTER_ASSERT(reporter, surface1->readPixels(readbackBitmap, 0, 0)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 80 REPORTER_ASSERT(reporter, surface2->readPixels(readbackBitmap, 0, 0)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
|
D | ImageTest.cpp | 69 REPORTER_ASSERT(reporter, a->readPixels(pmapA, srcX, srcY)); in assert_equal() 70 REPORTER_ASSERT(reporter, b->readPixels(pmapB, 0, 0)); in assert_equal() 266 REPORTER_ASSERT(reporter, image1->readPixels(dstInfo, pixels, dstRowBytes, 0, 0)); in DEF_TEST() 278 REPORTER_ASSERT(reporter, image2->readPixels(dstInfo, pixels, dstRowBytes, 0, 0)); in DEF_TEST() 518 if (!texImage->readPixels(unpremul.info(), unpremul.getPixels(), unpremul.rowBytes(), 0, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 535 if (!texImage->readPixels(premul.info(), premul.getPixels(), premul.rowBytes(), 0, 0)) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 656 REPORTER_ASSERT(reporter, !image->readPixels(info, pixels, rowBytes, 0, 0)); in image_test_read_pixels() 660 REPORTER_ASSERT(reporter, !image->readPixels(info, pixels, rowBytes, -w, 0)); in image_test_read_pixels() 661 REPORTER_ASSERT(reporter, !image->readPixels(info, pixels, rowBytes, 0, -h)); in image_test_read_pixels() 662 REPORTER_ASSERT(reporter, !image->readPixels(info, pixels, rowBytes, image->width(), 0)); in image_test_read_pixels() [all …]
|
D | ReadWriteAlphaTest.cpp | 103 result = sContext->readPixels(ii, readback.get(), rowBytes, {0, 0}); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 137 result = surf->readPixels(ii, readback.get(), nonZeroRowBytes, 0, 0); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 208 bool result = sContext->readPixels(dstInfo, readback.get(), rowBytes, {0, 0}); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
|
/third_party/skia/src/image/ |
D | SkSurface.cpp | 97 if (!this->readPixels(src, origSrcRect.x(), origSrcRect.y())) { in onAsyncRescaleAndReadPixels() 239 bool SkSurface::readPixels(const SkPixmap& pm, int srcX, int srcY) { in readPixels() function in SkSurface 240 return this->getCanvas()->readPixels(pm, srcX, srcY); in readPixels() 243 bool SkSurface::readPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes, in readPixels() function in SkSurface 245 return this->readPixels({dstInfo, dstPixels, dstRowBytes}, srcX, srcY); in readPixels() 248 bool SkSurface::readPixels(const SkBitmap& bitmap, int srcX, int srcY) { in readPixels() function in SkSurface 250 return bitmap.peekPixels(&pm) && this->readPixels(pm, srcX, srcY); in readPixels()
|
D | SkImage.cpp | 60 bool SkImage::readPixels(GrDirectContext* dContext, const SkImageInfo& dstInfo, void* dstPixels, in readPixels() function in SkImage 66 bool SkImage::readPixels(const SkImageInfo& dstInfo, void* dstPixels, in readPixels() function in SkImage 69 return this->readPixels(dContext, dstInfo, dstPixels, dstRowBytes, srcX, srcY, chint); in readPixels() 116 return this->readPixels(dContext, dst, 0, 0, chint); in scalePixels() 277 if (!this->readPixels(dContext, src.pixmap(), origSrcRect.x(), origSrcRect.y())) { in onAsyncRescaleAndReadPixels() 455 bool SkImage::readPixels(GrDirectContext* dContext, const SkPixmap& pmap, int srcX, int srcY, in readPixels() function in SkImage 457 return this->readPixels(dContext, pmap.info(), pmap.writable_addr(), pmap.rowBytes(), srcX, in readPixels() 462 bool SkImage::readPixels(const SkPixmap& pmap, int srcX, int srcY, CachingHint chint) const { in readPixels() function in SkImage 464 return this->readPixels(dContext, pmap, srcX, srcY, chint); in readPixels() 492 if (!this->readPixels(dContext, bitmap->info(), bitmap->getPixels(), bitmap->rowBytes(), in onAsLegacyBitmap() [all …]
|
/third_party/flutter/skia/docs/examples/ |
D | Pixmap_readPixels_4.cpp | 12 image->readPixels(pixmap, 0, 0); in draw() 17 pixmap.readPixels(dstmap); in draw()
|
D | Pixmap_readPixels_3.cpp | 12 image->readPixels(pixmap, 0, 0); in draw() 17 pixmap.readPixels(dstmap, offset, 0); in draw()
|
D | Pixmap_readPixels_2.cpp | 12 image->readPixels(pixmap, 0, 0); in draw() 16 pixmap.readPixels(info, &dstPixels.front(), rowBytes, offset, 0); in draw()
|
/third_party/skia/docs/examples/ |
D | Pixmap_readPixels_4.cpp | 12 image->readPixels(nullptr, pixmap, 0, 0); in draw() 17 pixmap.readPixels(dstmap); in draw()
|
D | Pixmap_readPixels_3.cpp | 12 image->readPixels(nullptr, pixmap, 0, 0); in draw() 17 pixmap.readPixels(dstmap, offset, 0); in draw()
|
D | Pixmap_readPixels_2.cpp | 12 image->readPixels(nullptr, pixmap, 0, 0); in draw() 16 pixmap.readPixels(info, &dstPixels.front(), rowBytes, offset, 0); in draw()
|
/third_party/flutter/skia/src/image/ |
D | SkSurface.cpp | 200 if (src->readPixels(pm, srcX, srcY)) { in onAsyncRescaleAndReadPixels() 336 bool SkSurface::readPixels(const SkPixmap& pm, int srcX, int srcY) { in readPixels() function in SkSurface 337 return this->getCanvas()->readPixels(pm, srcX, srcY); in readPixels() 340 bool SkSurface::readPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes, in readPixels() function in SkSurface 342 return this->readPixels({dstInfo, dstPixels, dstRowBytes}, srcX, srcY); in readPixels() 345 bool SkSurface::readPixels(const SkBitmap& bitmap, int srcX, int srcY) { in readPixels() function in SkSurface 347 return bitmap.peekPixels(&pm) && this->readPixels(pm, srcX, srcY); in readPixels()
|
D | SkImage.cpp | 51 bool SkImage::readPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes, int srcX, in readPixels() function in SkImage 58 return this->readPixels(dst, 0, 0, chint); in scalePixels() 212 bool SkImage::readPixels(const SkPixmap& pmap, int srcX, int srcY, CachingHint chint) const { in readPixels() function in SkImage 213 return this->readPixels(pmap.info(), pmap.writable_addr(), pmap.rowBytes(), srcX, srcY, chint); in readPixels() 242 if (!this->readPixels(bitmap->info(), bitmap->getPixels(), bitmap->rowBytes(), 0, 0)) { in onAsLegacyBitmap() 420 if (!this->readPixels(pm, 0, 0)) { in makeRasterImage()
|