Home
last modified time | relevance | path

Searched refs:readPixels (Results 1 – 25 of 382) sorted by relevance

12345678910>>...16

/third_party/flutter/skia/include/core/
DSkPixmap.h567 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()
DSkBitmap.h925 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/
DSkPixmap.h563 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()
DSkBitmap.h948 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/
DSkImageTest.cpp41 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()
DExtendedSkColorTypeTests.cpp124 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()
DImageNewShaderTest.cpp56 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()
DGrOpListFlushTest.cpp80 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()
DImageTest.cpp73 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/
DSkImageTest.cpp40 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()
DGrUploadPixelsTests.cpp41 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()
DImageNewShaderTest.cpp57 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()
DGrOpListFlushTest.cpp77 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()
DImageTest.cpp69 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 …]
DReadWriteAlphaTest.cpp103 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/
DSkSurface.cpp97 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()
DSkImage.cpp60 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/
DPixmap_readPixels_4.cpp12 image->readPixels(pixmap, 0, 0); in draw()
17 pixmap.readPixels(dstmap); in draw()
DPixmap_readPixels_3.cpp12 image->readPixels(pixmap, 0, 0); in draw()
17 pixmap.readPixels(dstmap, offset, 0); in draw()
DPixmap_readPixels_2.cpp12 image->readPixels(pixmap, 0, 0); in draw()
16 pixmap.readPixels(info, &dstPixels.front(), rowBytes, offset, 0); in draw()
/third_party/skia/docs/examples/
DPixmap_readPixels_4.cpp12 image->readPixels(nullptr, pixmap, 0, 0); in draw()
17 pixmap.readPixels(dstmap); in draw()
DPixmap_readPixels_3.cpp12 image->readPixels(nullptr, pixmap, 0, 0); in draw()
17 pixmap.readPixels(dstmap, offset, 0); in draw()
DPixmap_readPixels_2.cpp12 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/
DSkSurface.cpp200 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()
DSkImage.cpp51 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()

12345678910>>...16