Searched refs:srcBitmap (Results 1 – 8 of 8) sorted by relevance
/external/skqp/tests/ |
D | SkImageTest.cpp | 19 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()
|
D | ShaderTest.cpp | 57 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()
|
D | GrAHardwareBufferTest.cpp | 113 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()
|
D | VkHardwareBufferTest.cpp | 1032 static bool check_read(skiatest::Reporter* reporter, const SkBitmap& srcBitmap, in check_read() argument 1037 const uint32_t srcPixel = *srcBitmap.getAddr32(x, y); in check_read() 1115 SkBitmap srcBitmap = make_src_bitmap(); in run_test() local 1163 int bbp = srcBitmap.bytesPerPixel(); in run_test() 1164 uint32_t* src = (uint32_t*)srcBitmap.getPixels(); in run_test() 1174 const uint32_t srcPixel = *srcBitmap.getAddr32(x, y); in run_test() 1194 sk_sp<SkImage> srcBmpImage = SkImage::MakeFromBitmap(srcBitmap); in run_test() 1207 REPORTER_ASSERT(reporter, check_read(reporter, srcBitmap, dstBitmapSurface)); in run_test() 1274 REPORTER_ASSERT(reporter, check_read(reporter, srcBitmap, dstBitmapFinal)); in run_test()
|
/external/skia/tests/ |
D | SkImageTest.cpp | 19 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()
|
D | GrAHardwareBufferTest.cpp | 113 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()
|
D | ShaderTest.cpp | 57 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()
|
D | VkHardwareBufferTest.cpp | 1020 static bool check_read(skiatest::Reporter* reporter, const SkBitmap& srcBitmap, in check_read() argument 1025 const uint32_t srcPixel = *srcBitmap.getAddr32(x, y); in check_read() 1103 SkBitmap srcBitmap = make_src_bitmap(); in run_test() local 1151 int bbp = srcBitmap.bytesPerPixel(); in run_test() 1152 uint32_t* src = (uint32_t*)srcBitmap.getPixels(); in run_test() 1162 const uint32_t srcPixel = *srcBitmap.getAddr32(x, y); in run_test() 1182 sk_sp<SkImage> srcBmpImage = SkImage::MakeFromBitmap(srcBitmap); in run_test() 1195 REPORTER_ASSERT(reporter, check_read(reporter, srcBitmap, dstBitmapSurface)); in run_test() 1262 REPORTER_ASSERT(reporter, check_read(reporter, srcBitmap, dstBitmapFinal)); in run_test()
|