/external/skqp/gm/ |
D | bigtileimagefilter.cpp | 47 fRedImage = create_circle_texture(kBitmapSize, SK_ColorRED); in onOnceBeforeDraw() 48 fGreenImage = create_circle_texture(kBitmapSize, SK_ColorGREEN); in onOnceBeforeDraw() 61 SkRect::MakeIWH(kBitmapSize, kBitmapSize), in onDraw() 74 const SkRect bound2 = SkRect::MakeIWH(kBitmapSize, kBitmapSize); in onDraw() 77 SkRect::MakeIWH(kBitmapSize, kBitmapSize), in onDraw() 78 SkRect::MakeIWH(kBitmapSize, kBitmapSize), in onDraw() 88 SkIntToScalar(kBitmapSize), in onDraw() 89 SkIntToScalar(kBitmapSize)); in onDraw() 99 static constexpr int kBitmapSize = 64; member in skiagm::BigTileImageFilterGM
|
/external/skia/gm/ |
D | bigtileimagefilter.cpp | 47 fRedImage = create_circle_texture(kBitmapSize, SK_ColorRED); in onOnceBeforeDraw() 48 fGreenImage = create_circle_texture(kBitmapSize, SK_ColorGREEN); in onOnceBeforeDraw() 61 SkRect::MakeIWH(kBitmapSize, kBitmapSize), in onDraw() 74 const SkRect bound2 = SkRect::MakeIWH(kBitmapSize, kBitmapSize); in onDraw() 77 SkRect::MakeIWH(kBitmapSize, kBitmapSize), in onDraw() 78 SkRect::MakeIWH(kBitmapSize, kBitmapSize), in onDraw() 88 SkIntToScalar(kBitmapSize), in onDraw() 89 SkIntToScalar(kBitmapSize)); in onDraw() 99 static constexpr int kBitmapSize = 64; member in skiagm::BigTileImageFilterGM
|
/external/pdfium/fpdfsdk/ |
D | fpdfeditimg_unittest.cpp | 54 constexpr int kBitmapSize = 50; in TEST_F() local 55 FPDF_BITMAP bitmap = FPDFBitmap_Create(kBitmapSize, kBitmapSize, 0); in TEST_F() 56 FPDFBitmap_FillRect(bitmap, 0, 0, kBitmapSize, kBitmapSize, 0x00000000); in TEST_F() 57 EXPECT_EQ(kBitmapSize, FPDFBitmap_GetWidth(bitmap)); in TEST_F() 58 EXPECT_EQ(kBitmapSize, FPDFBitmap_GetHeight(bitmap)); in TEST_F() 63 FPDFImageObj_SetMatrix(page_image, kBitmapSize, 0, 0, kBitmapSize, 0, 0)); in TEST_F()
|
D | fpdfannot_embeddertest.cpp | 702 constexpr int kBitmapSize = 200; in TEST_F() local 703 FPDF_BITMAP image_bitmap = FPDFBitmap_Create(kBitmapSize, kBitmapSize, 1); in TEST_F() 704 FPDFBitmap_FillRect(image_bitmap, 0, 0, kBitmapSize, kBitmapSize, 0xeeeecccc); in TEST_F() 705 EXPECT_EQ(kBitmapSize, FPDFBitmap_GetWidth(image_bitmap)); in TEST_F() 706 EXPECT_EQ(kBitmapSize, FPDFBitmap_GetHeight(image_bitmap)); in TEST_F() 709 ASSERT_TRUE(FPDFImageObj_SetMatrix(image_object, kBitmapSize, 0, 0, in TEST_F() 710 kBitmapSize, 0, 0)); in TEST_F() 728 FPDFBitmap_FillRect(image_bitmap, 0, 0, kBitmapSize, kBitmapSize, 0xff000000); in TEST_F()
|
/external/skia/samplecode/ |
D | SampleFilterFuzz.cpp | 56 static const int kBitmapSize = 24; variable 137 return SkRect::MakeWH(SkIntToScalar(R(static_cast<float>(kBitmapSize))), in make_rect() 138 SkIntToScalar(R(static_cast<float>(kBitmapSize)))); in make_rect() 142 SkIRect iRegion = SkIRect::MakeXYWH(R(static_cast<float>(kBitmapSize)), in make_region() 143 R(static_cast<float>(kBitmapSize)), in make_region() 144 R(static_cast<float>(kBitmapSize)), in make_region() 145 R(static_cast<float>(kBitmapSize))); in make_region() 243 info = SkImageInfo::Make(kBitmapSize, kBitmapSize, rand_colortype(), in rand_bitmap_for_canvas() 256 paint.setTextSize(SkIntToScalar(kBitmapSize/2)); in make_g_bitmap() 258 canvas.drawString(str, SkIntToScalar(kBitmapSize/8), in make_g_bitmap() [all …]
|
/external/skqp/samplecode/ |
D | SampleFilterFuzz.cpp | 56 static const int kBitmapSize = 24; variable 137 return SkRect::MakeWH(SkIntToScalar(R(static_cast<float>(kBitmapSize))), in make_rect() 138 SkIntToScalar(R(static_cast<float>(kBitmapSize)))); in make_rect() 142 SkIRect iRegion = SkIRect::MakeXYWH(R(static_cast<float>(kBitmapSize)), in make_region() 143 R(static_cast<float>(kBitmapSize)), in make_region() 144 R(static_cast<float>(kBitmapSize)), in make_region() 145 R(static_cast<float>(kBitmapSize))); in make_region() 243 info = SkImageInfo::Make(kBitmapSize, kBitmapSize, rand_colortype(), in rand_bitmap_for_canvas() 256 paint.setTextSize(SkIntToScalar(kBitmapSize/2)); in make_g_bitmap() 258 canvas.drawString(str, SkIntToScalar(kBitmapSize/8), in make_g_bitmap() [all …]
|
/external/skqp/tools/ |
D | chrome_fuzz.cpp | 13 static const int kBitmapSize = 24; variable 46 0, 0, SkIntToScalar(kBitmapSize), SkIntToScalar(kBitmapSize))); in run_test_case() 73 bitmap.allocN32Pixels(kBitmapSize, kBitmapSize); in main()
|
/external/skia/tools/ |
D | chrome_fuzz.cpp | 13 static const int kBitmapSize = 24; variable 46 0, 0, SkIntToScalar(kBitmapSize), SkIntToScalar(kBitmapSize))); in run_test_case() 73 bitmap.allocN32Pixels(kBitmapSize, kBitmapSize); in main()
|
/external/skqp/tests/ |
D | SerializationTest.cpp | 31 static const int kBitmapSize = 256; variable 338 SkIRect canvasRect = SkIRect::MakeWH(kBitmapSize, kBitmapSize); in serialize_and_compare_typeface() 389 bitmap->allocN32Pixels(kBitmapSize, kBitmapSize); in setup_bitmap_for_canvas() 401 const int i = kBitmapSize / 8; in make_checkerboard_bitmap() 403 for (int y = 0; y < kBitmapSize; y += i) { in make_checkerboard_bitmap() 404 for (int x = 0; x < kBitmapSize; x += i) { in make_checkerboard_bitmap() 429 …canvas->drawCircle(SkIntToScalar(kBitmapSize/2), SkIntToScalar(kBitmapSize/2), SkIntToScalar(kBitm… in draw_something() 431 paint.setTextSize(SkIntToScalar(kBitmapSize/3)); in draw_something() 432 … canvas->drawString("Picture", SkIntToScalar(kBitmapSize/2), SkIntToScalar(kBitmapSize/4), paint); in draw_something() 521 SkImageInfo info = SkImageInfo::MakeN32Premul(kBitmapSize, kBitmapSize); in DEF_TEST() [all …]
|
D | ImageFilterTest.cpp | 49 static const int kBitmapSize = 4; variable 331 auto surface(SkSurface::MakeRasterN32Premul(kBitmapSize, kBitmapSize)); in make_small_image() 338 const int i = kBitmapSize / 4; in make_small_image() 339 for (int y = 0; y < kBitmapSize; y += i) { in make_small_image() 340 for (int x = 0; x < kBitmapSize; x += i) { in make_small_image() 510 result.allocN32Pixels(kBitmapSize, kBitmapSize); in DEF_TEST() 517 SkRect rect = SkRect::Make(SkIRect::MakeWH(kBitmapSize, kBitmapSize)); in DEF_TEST() 528 result.allocN32Pixels(kBitmapSize, kBitmapSize); in DEF_TEST() 546 SkRect r = SkRect::MakeWH(SkIntToScalar(kBitmapSize), in DEF_TEST() 547 SkIntToScalar(kBitmapSize)); in DEF_TEST()
|
/external/skia/tests/ |
D | SerializationTest.cpp | 31 static const int kBitmapSize = 256; variable 338 SkIRect canvasRect = SkIRect::MakeWH(kBitmapSize, kBitmapSize); in serialize_and_compare_typeface() 389 bitmap->allocN32Pixels(kBitmapSize, kBitmapSize); in setup_bitmap_for_canvas() 401 const int i = kBitmapSize / 8; in make_checkerboard_bitmap() 403 for (int y = 0; y < kBitmapSize; y += i) { in make_checkerboard_bitmap() 404 for (int x = 0; x < kBitmapSize; x += i) { in make_checkerboard_bitmap() 429 …canvas->drawCircle(SkIntToScalar(kBitmapSize/2), SkIntToScalar(kBitmapSize/2), SkIntToScalar(kBitm… in draw_something() 431 paint.setTextSize(SkIntToScalar(kBitmapSize/3)); in draw_something() 432 … canvas->drawString("Picture", SkIntToScalar(kBitmapSize/2), SkIntToScalar(kBitmapSize/4), paint); in draw_something() 521 SkImageInfo info = SkImageInfo::MakeN32Premul(kBitmapSize, kBitmapSize); in DEF_TEST() [all …]
|
D | ImageFilterTest.cpp | 49 static const int kBitmapSize = 4; variable 331 auto surface(SkSurface::MakeRasterN32Premul(kBitmapSize, kBitmapSize)); in make_small_image() 338 const int i = kBitmapSize / 4; in make_small_image() 339 for (int y = 0; y < kBitmapSize; y += i) { in make_small_image() 340 for (int x = 0; x < kBitmapSize; x += i) { in make_small_image() 510 result.allocN32Pixels(kBitmapSize, kBitmapSize); in DEF_TEST() 517 SkRect rect = SkRect::Make(SkIRect::MakeWH(kBitmapSize, kBitmapSize)); in DEF_TEST() 528 result.allocN32Pixels(kBitmapSize, kBitmapSize); in DEF_TEST() 546 SkRect r = SkRect::MakeWH(SkIntToScalar(kBitmapSize), in DEF_TEST() 547 SkIntToScalar(kBitmapSize)); in DEF_TEST()
|