/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 | 57 constexpr int kBitmapSize = 50; in TEST_F() local 58 FPDF_BITMAP bitmap = FPDFBitmap_Create(kBitmapSize, kBitmapSize, 0); in TEST_F() 59 FPDFBitmap_FillRect(bitmap, 0, 0, kBitmapSize, kBitmapSize, 0x00000000); in TEST_F() 60 EXPECT_EQ(kBitmapSize, FPDFBitmap_GetWidth(bitmap)); in TEST_F() 61 EXPECT_EQ(kBitmapSize, FPDFBitmap_GetHeight(bitmap)); in TEST_F() 66 FPDFImageObj_SetMatrix(page_image, kBitmapSize, 0, 0, kBitmapSize, 0, 0)); in TEST_F()
|
/external/skia/samplecode/ |
D | SampleFilterFuzz.cpp | 58 static const int kBitmapSize = 24; variable 139 return SkRect::MakeWH(SkIntToScalar(R(static_cast<float>(kBitmapSize))), in make_rect() 140 SkIntToScalar(R(static_cast<float>(kBitmapSize)))); in make_rect() 144 SkIRect iRegion = SkIRect::MakeXYWH(R(static_cast<float>(kBitmapSize)), in make_region() 145 R(static_cast<float>(kBitmapSize)), in make_region() 146 R(static_cast<float>(kBitmapSize)), in make_region() 147 R(static_cast<float>(kBitmapSize))); in make_region() 245 info = SkImageInfo::Make(kBitmapSize, kBitmapSize, rand_colortype(), in rand_bitmap_for_canvas() 258 paint.setTextSize(SkIntToScalar(kBitmapSize/2)); in make_g_bitmap() 260 canvas.drawText(str, strlen(str), SkIntToScalar(kBitmapSize/8), in make_g_bitmap() [all …]
|
/external/skia/fuzz/ |
D | FilterFuzz.cpp | 53 static const int kBitmapSize = 24; variable 103 fuzz->nextRange(&w, 0.0f, (float) kBitmapSize-1); in make_rect() 104 fuzz->nextRange(&h, 0.0f, (float) kBitmapSize-1); in make_rect() 110 fuzz->nextRange(&x, 0, kBitmapSize-1); in make_region() 111 fuzz->nextRange(&y, 0, kBitmapSize-1); in make_region() 112 fuzz->nextRange(&w, 0, kBitmapSize-1); in make_region() 113 fuzz->nextRange(&h, 0, kBitmapSize-1); in make_region() 225 SkImageInfo info = SkImageInfo::Make(kBitmapSize, kBitmapSize, rand_colortype(), in rand_bitmap_for_canvas() 240 paint.setTextSize(SkIntToScalar(kBitmapSize/2)); in make_g_bitmap() 242 canvas.drawText(str, strlen(str), SkIntToScalar(kBitmapSize/8), in make_g_bitmap() [all …]
|
/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/skia/tests/ |
D | SerializationTest.cpp | 31 static const int kBitmapSize = 256; variable 349 SkIRect canvasRect = SkIRect::MakeWH(kBitmapSize, kBitmapSize); in serialize_and_compare_typeface() 400 bitmap->allocN32Pixels(kBitmapSize, kBitmapSize); in setup_bitmap_for_canvas() 412 const int i = kBitmapSize / 8; in make_checkerboard_bitmap() 414 for (int y = 0; y < kBitmapSize; y += i) { in make_checkerboard_bitmap() 415 for (int x = 0; x < kBitmapSize; x += i) { in make_checkerboard_bitmap() 440 …canvas->drawCircle(SkIntToScalar(kBitmapSize/2), SkIntToScalar(kBitmapSize/2), SkIntToScalar(kBitm… in draw_something() 442 paint.setTextSize(SkIntToScalar(kBitmapSize/3)); in draw_something() 443 … canvas->drawText("Picture", 7, SkIntToScalar(kBitmapSize/2), SkIntToScalar(kBitmapSize/4), paint); in draw_something() 537 SkImageInfo info = SkImageInfo::MakeN32Premul(kBitmapSize, kBitmapSize); in DEF_TEST() [all …]
|
D | ImageFilterTest.cpp | 45 static const int kBitmapSize = 4; variable 302 auto surface(SkSurface::MakeRasterN32Premul(kBitmapSize, kBitmapSize)); in make_small_image() 309 const int i = kBitmapSize / 4; in make_small_image() 310 for (int y = 0; y < kBitmapSize; y += i) { in make_small_image() 311 for (int x = 0; x < kBitmapSize; x += i) { in make_small_image() 481 result.allocN32Pixels(kBitmapSize, kBitmapSize); in DEF_TEST() 488 SkRect rect = SkRect::Make(SkIRect::MakeWH(kBitmapSize, kBitmapSize)); in DEF_TEST() 499 result.allocN32Pixels(kBitmapSize, kBitmapSize); in DEF_TEST() 517 SkRect r = SkRect::MakeWH(SkIntToScalar(kBitmapSize), in DEF_TEST() 518 SkIntToScalar(kBitmapSize)); in DEF_TEST()
|