Home
last modified time | relevance | path

Searched refs:srcBitmap (Results 1 – 9 of 9) sorted by relevance

/third_party/skia/tests/
DSkImageTest.cpp20 SkBitmap srcBitmap; in DEF_TEST() local
21 srcBitmap.allocN32Pixels(gWidth, gHeight); in DEF_TEST()
22 srcBitmap.eraseColor(SK_ColorRED); in DEF_TEST()
23 SkCanvas canvas(srcBitmap); in DEF_TEST()
29 srcBitmap.extractSubset(&dstBitmap, r); in DEF_TEST()
DGrAHardwareBufferTest.cpp114 const SkBitmap srcBitmap = make_src_bitmap(); in basic_draw_test_helper() local
152 int bbp = srcBitmap.bytesPerPixel(); in basic_draw_test_helper()
153 uint32_t* src = (uint32_t*)srcBitmap.getPixels(); in basic_draw_test_helper()
195 REPORTER_ASSERT(reporter, check_read(reporter, srcBitmap, readbackBitmap)); in basic_draw_test_helper()
224 const SkBitmap srcBitmap = make_src_bitmap(); in surface_draw_test_helper() local
261 surface->getCanvas()->drawImage(srcBitmap.asImage(), 0, 0); in surface_draw_test_helper()
267 REPORTER_ASSERT(reporter, check_read(reporter, srcBitmap, readbackBitmap)); in surface_draw_test_helper()
DShaderTest.cpp57 SkBitmap srcBitmap; in DEF_TEST() local
58 srcBitmap.allocN32Pixels(10, 10); in DEF_TEST()
59 srcBitmap.eraseColor(SK_ColorRED); in DEF_TEST()
60 SkCanvas canvas(srcBitmap); in DEF_TEST()
DVkHardwareBufferTest.cpp1036 static bool check_read(skiatest::Reporter* reporter, const SkBitmap& srcBitmap, in check_read() argument
1041 const uint32_t srcPixel = *srcBitmap.getAddr32(x, y); in check_read()
1127 SkBitmap srcBitmap = make_src_bitmap(); in run_test() local
1175 int bbp = srcBitmap.bytesPerPixel(); in run_test()
1176 uint32_t* src = (uint32_t*)srcBitmap.getPixels(); in run_test()
1186 const uint32_t srcPixel = *srcBitmap.getAddr32(x, y); in run_test()
1206 sk_sp<SkImage> srcBmpImage = SkImage::MakeFromBitmap(srcBitmap); in run_test()
1219 REPORTER_ASSERT(reporter, check_read(reporter, srcBitmap, dstBitmapSurface)); in run_test()
1286 REPORTER_ASSERT(reporter, check_read(reporter, srcBitmap, dstBitmapFinal)); in run_test()
DMultiPictureDocumentTest.cpp236 const SkBitmap srcBitmap = make_src_bitmap(); in makeAHardwareBufferTestImage() local
269 int bbp = srcBitmap.bytesPerPixel(); in makeAHardwareBufferTestImage()
270 uint32_t* src = (uint32_t*)srcBitmap.getPixels(); in makeAHardwareBufferTestImage()
/third_party/flutter/skia/tests/
DSkImageTest.cpp19 SkBitmap srcBitmap; in DEF_TEST() local
20 srcBitmap.allocN32Pixels(gWidth, gHeight); in DEF_TEST()
21 srcBitmap.eraseColor(SK_ColorRED); in DEF_TEST()
22 SkCanvas canvas(srcBitmap); in DEF_TEST()
28 srcBitmap.extractSubset(&dstBitmap, r); in DEF_TEST()
DGrAHardwareBufferTest.cpp113 const SkBitmap srcBitmap = make_src_bitmap(); in basic_draw_test_helper() local
151 int bbp = srcBitmap.bytesPerPixel(); in basic_draw_test_helper()
152 uint32_t* src = (uint32_t*)srcBitmap.getPixels(); in basic_draw_test_helper()
194 REPORTER_ASSERT(reporter, check_read(reporter, srcBitmap, readbackBitmap)); in basic_draw_test_helper()
223 const SkBitmap srcBitmap = make_src_bitmap(); in surface_draw_test_helper() local
260 surface->getCanvas()->drawBitmap(srcBitmap, 0, 0); in surface_draw_test_helper()
266 REPORTER_ASSERT(reporter, check_read(reporter, srcBitmap, readbackBitmap)); in surface_draw_test_helper()
DShaderTest.cpp57 SkBitmap srcBitmap; in DEF_TEST() local
58 srcBitmap.allocN32Pixels(10, 10); in DEF_TEST()
59 srcBitmap.eraseColor(SK_ColorRED); in DEF_TEST()
60 SkCanvas canvas(srcBitmap); in DEF_TEST()
DVkHardwareBufferTest.cpp1024 static bool check_read(skiatest::Reporter* reporter, const SkBitmap& srcBitmap, in check_read() argument
1029 const uint32_t srcPixel = *srcBitmap.getAddr32(x, y); in check_read()
1107 SkBitmap srcBitmap = make_src_bitmap(); in run_test() local
1155 int bbp = srcBitmap.bytesPerPixel(); in run_test()
1156 uint32_t* src = (uint32_t*)srcBitmap.getPixels(); in run_test()
1166 const uint32_t srcPixel = *srcBitmap.getAddr32(x, y); in run_test()
1186 sk_sp<SkImage> srcBmpImage = SkImage::MakeFromBitmap(srcBitmap); in run_test()
1199 REPORTER_ASSERT(reporter, check_read(reporter, srcBitmap, dstBitmapSurface)); in run_test()
1266 REPORTER_ASSERT(reporter, check_read(reporter, srcBitmap, dstBitmapFinal)); in run_test()