/third_party/skia/modules/sksg/tests/ |
D | SGTest.cpp | 78 auto r1 = sksg::Rect::Make(SkRect::MakeWH(100, 100)), in inval_test1() 79 r2 = sksg::Rect::Make(SkRect::MakeWH(100, 100)); in inval_test1() 92 SkRect::MakeWH(100, 100), in inval_test1() 111 SkRect::MakeWH(300, 200), in inval_test1() 112 SkRect::MakeWH(300, 200), in inval_test1() 137 SkRect::MakeWH(300, 200), in inval_test1() 138 SkRect::MakeWH(300, 200), in inval_test1() 147 SkRect::MakeWH(300, 200), in inval_test1() 148 SkRect::MakeWH(100, 100), in inval_test1() 173 SkRect::MakeWH(600, 400), in inval_test1() [all …]
|
/third_party/skia/tests/ |
D | RecordPatternTest.cpp | 33 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST() 52 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST() 73 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST() 74 recorder.drawRect(SkRect::MakeWH(600, 300), SkPaint()); in DEF_TEST() 88 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST() 94 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST() 95 recorder.clipRect(SkRect::MakeWH(100, 100)); in DEF_TEST() 113 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST() 123 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST() 124 recorder.drawRect(SkRect::MakeWH(100, 3000), SkPaint()); in DEF_TEST() [all …]
|
D | RecordDrawTest.cpp | 63 recorder.drawRect(SkRect::MakeWH(200, 300), SkPaint()); in DEF_TEST() 64 recorder.clipRect(SkRect::MakeWH(100, 200)); in DEF_TEST() 139 recorder.clipRect(SkRect::MakeWH(400, 500)); 141 recorder.drawRect(SkRect::MakeWH(320, 240), SkPaint()); 145 SkRecordFillBounds(SkRect::MakeWH(SkIntToScalar(W), SkIntToScalar(H)), record, bounds); 148 REPORTER_ASSERT(r, sloppy_rect_eq(SkRect::MakeWH(400, 480), bounds[i])); 193 recorder.clipRect(SkRect::MakeWH(20, 40)); in DEF_TEST() 194 recorder.drawRect(SkRect::MakeWH(20, 40), SkPaint()); in DEF_TEST() 209 SkRecordFillBounds(SkRect::MakeWH(50, 50), record, bounds, meta); in DEF_TEST() 225 recorder.clipRect(SkRect::MakeWH(20, 40)); in DEF_TEST() [all …]
|
D | DeviceTest.cpp | 58 SkASSERT(SkIRect::MakeWH(kWidth, kHeight) == special->subset()); 67 SkASSERT(SkIRect::MakeWH(kWidth, kHeight) == special->subset()); 74 SkASSERT(SkIRect::MakeWH(2*kWidth, 2*kHeight) == special->subset()); 101 SkASSERT(SkIRect::MakeWH(kWidth, kHeight) == special->subset()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 111 SkASSERT(SkIRect::MakeWH(kWidth, kHeight) == special->subset()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 120 SkASSERT(SkIRect::MakeWH(kWidth, kHeight) == special->subset()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 127 SkASSERT(SkIRect::MakeWH(2*kWidth, 2*kHeight) == special->subset()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
|
D | RecordOptsTest.cpp | 26 recorder.drawRect(SkRect::MakeWH(200, 200), SkPaint()); in DEF_TEST() 27 recorder.drawRect(SkRect::MakeWH(300, 300), SkPaint()); in DEF_TEST() 28 recorder.drawRect(SkRect::MakeWH(100, 100), SkPaint()); in DEF_TEST() 42 recorder.clipRect(SkRect::MakeWH(200, 200)); in DEF_TEST() 63 recorder.clipRect(SkRect::MakeWH(200, 200)); in DEF_TEST() 64 recorder.clipRect(SkRect::MakeWH(100, 100)); in DEF_TEST() 136 SkRect bounds = SkRect::MakeWH(100, 200); in DEF_TEST() 137 SkRect draw = SkRect::MakeWH(50, 60); in DEF_TEST() 217 SkRect bounds = SkRect::MakeWH(SkIntToScalar(100), SkIntToScalar(200)); in DEF_TEST() 218 SkRect clip = SkRect::MakeWH(SkIntToScalar(50), SkIntToScalar(60)); in DEF_TEST() [all …]
|
D | PictureTest.cpp | 75 SkRect rect = SkRect::MakeWH(50, 50); in rand_op() 178 SkRect clipRect = SkRect::MakeWH(2, 2); in create_imbalance() 179 SkRect drawRect = SkRect::MakeWH(10, 10); in create_imbalance() 338 SkRect rect = SkRect::MakeWH(50, 50); in test_peephole() 430 SkRect bounds = SkRect::MakeWH(10, 10); in test_cull_rect_reset() 433 bounds = SkRect::MakeWH(100, 100); in test_cull_rect_reset() 634 SkRect bound = SkRect::MakeWH(320, 240); in DEF_TEST() 706 REPORTER_ASSERT(r, rec.drawRect(SkRect::MakeWH(20,30), paint)); in DEF_TEST() 740 canvas->drawRect(SkRect::MakeWH(20,20), SkPaint{}); in DEF_TEST() 742 REPORTER_ASSERT(r, pic->cullRect() == SkRect::MakeWH(20,20)); in DEF_TEST() [all …]
|
D | RecorderTest.cpp | 46 recorder.drawRect(SkRect::MakeWH(10, 10), SkPaint()); in DEF_TEST() 59 SkRect bounds = SkRect::MakeWH(320, 240); in DEF_TEST() 102 recorder.drawImageRect(image.get(), SkRect::MakeWH(100, 100), SkRect::MakeWH(100, 100), in DEF_TEST()
|
D | ImageFilterCacheTest.cpp | 46 SkIRect clip = SkIRect::MakeWH(100, 100); in test_find_existing() 69 SkIRect clip1 = SkIRect::MakeWH(100, 100); in test_dont_find_if_diff_key() 70 SkIRect clip2 = SkIRect::MakeWH(200, 200); in test_dont_find_if_diff_key() 95 SkIRect clip = SkIRect::MakeWH(100, 100); in test_internal_purge() 122 SkIRect clip = SkIRect::MakeWH(100, 100); in test_explicit_purging() 155 const SkIRect& full = SkIRect::MakeWH(kFullSize, kFullSize); in DEF_TEST() 175 const SkIRect& full = SkIRect::MakeWH(kFullSize, kFullSize); in test_image_backed() 262 const SkIRect& full = SkIRect::MakeWH(kFullSize, kFullSize); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
|
D | QuickRejectTest.cpp | 46 SkRect r = SkRect::MakeWH(10, 10); in test_layers() 55 REPORTER_ASSERT(reporter, true == canvas.quickReject(SkRect::MakeWH(10, 10))); in test_layers() 56 REPORTER_ASSERT(reporter, false == canvas.quickReject(SkRect::MakeWH(60, 60))); in test_layers() 122 canvas.quickReject(SkRect::MakeWH(100.0f, 100.0f)); in DEF_TEST()
|
D | RepeatedClippedBlurTest.cpp | 72 c->drawImageRect(bigImg, SkRect::MakeWH(1024, 600), SkSamplingOptions()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 87 const SkIRect subset = SkIRect::MakeWH(1024, 600); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 88 SkIRect clip = SkIRect::MakeWH(1024, 600); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
|
/third_party/skia/gm/ |
D | rrects.cpp | 104 const SkRect kMaxImageBound = SkRect::MakeWH(SkIntToScalar(kImageWidth), in onDraw() 147 canvas->drawRect(SkRect::MakeWH(1, 1), paint); in onDraw() 172 fRRects[0].setRect(SkRect::MakeWH(kTileX-2, kTileY-2)); in setUpRRects() 173 fRRects[1].setOval(SkRect::MakeWH(kTileX-2, kTileY-2)); in setUpRRects() 174 fRRects[2].setRectXY(SkRect::MakeWH(kTileX-2, kTileY-2), 10, 10); in setUpRRects() 175 fRRects[3].setRectXY(SkRect::MakeWH(kTileX-2, kTileY-2), 10, 5); in setUpRRects() 177 fRRects[4].setRectXY(SkRect::MakeWH(kTileX-2, kTileY-2), 1, 1); in setUpRRects() 178 fRRects[5].setRectXY(SkRect::MakeWH(kTileX-2, kTileY-2), 0.5f, 0.5f); in setUpRRects() 179 fRRects[6].setRectXY(SkRect::MakeWH(kTileX-2, kTileY-2), 0.2f, 0.2f); in setUpRRects() 182 fRRects[kNumSimpleCases].setRectRadii(SkRect::MakeWH(kTileY-2, kTileY-2), gRadii[0]); in setUpRRects() [all …]
|
D | circulararcs.cpp | 156 {SkRect::MakeWH(kS, kS), 0, 0}, 158 {SkRect::MakeWH(-kS, kS), 0, 90}, 160 {SkRect::MakeWH(kS, -kS), 0, 90}, 162 {SkRect::MakeWH( 0, 0), 0, 90}, 166 {SkRect::MakeWH(kS, kS), 810.f, 90.f}, 168 {SkRect::MakeWH(kS, kS), -810.f, 90.f}, 170 {SkRect::MakeWH(kS, kS), 0.f, 360.f}, 172 {SkRect::MakeWH(kS, kS), 0.f, -360.f}, 174 {SkRect::MakeWH(kS, kS), 0.f, 540.f}, 176 {SkRect::MakeWH(kS, kS), 0.f, -540.f}, [all …]
|
D | localmatriximageshader.cpp | 45 canvas->drawIRect(SkIRect::MakeWH(250, 250), paint); 53 canvas->drawIRect(SkIRect::MakeWH(250, 250), paint); 62 canvas->drawIRect(SkIRect::MakeWH(250, 250), paint); 65 canvas->drawIRect(SkIRect::MakeWH(250, 250), paint);
|
D | recordopts.cpp | 66 SkRect targetRect(SkRect::MakeWH(SkIntToScalar(kTestRectSize), SkIntToScalar(kTestRectSize))); in draw_save_layer_draw_rect_restore_sequence() 90 bitmapCanvas.drawRect(SkRect::MakeWH(SkIntToScalar(7), SkIntToScalar(7)), p); in draw_save_layer_draw_bitmap_restore_sequence() 93 SkRect targetRect(SkRect::MakeWH(SkIntToScalar(kTestRectSize), SkIntToScalar(kTestRectSize))); in draw_save_layer_draw_bitmap_restore_sequence() 108 SkRect targetRect(SkRect::MakeWH(SkIntToScalar(kTestRectSize), SkIntToScalar(kTestRectSize))); in draw_svg_opacity_and_filter_layer_sequence()
|
D | crbug_224618.cpp | 98 canvas->drawRect(SkRect::MakeWH(viewportWidth, viewportWidth), fillPaint); in onDraw() 102 SkRect::MakeWH(fCubeImage->width(), fCubeImage->height()), in onDraw() 103 SkRect::MakeWH(viewportWidth, viewportWidth), in onDraw()
|
/third_party/skia/docs/examples/ |
D | ImageInfo_computeOffset.cpp | 20 canvas->drawImageRect(bitmap.asImage(), SkRect::MakeWH(8, 8), SkRect::MakeWH(32, 32), in draw() 27 canvas->drawImageRect(bitmap.asImage(), SkRect::MakeWH(8, 8), SkRect::MakeWH(128, 128), in draw()
|
D | Canvas_clear.cpp | 8 canvas->clipRect(SkRect::MakeWH(256, 128)); in draw() 12 canvas->clipRect(SkRect::MakeWH(150, 192)); in draw() 15 canvas->clipRect(SkRect::MakeWH(75, 256)); in draw()
|
D | ImageInfo_makeColorSpace.cpp | 22 canvas->drawRect(SkRect::MakeWH(width, height), gradPaint); 28 sRGBOffscreen.drawRect(SkRect::MakeWH(width, height), gradPaint); 36 lgOffscreen.drawRect(SkRect::MakeWH(width, height), gradPaint);
|
D | State_Stack_b.cpp | 7 canvas->clipRect(SkRect::MakeWH(100, 100)); in draw() 10 canvas->clipRect(SkRect::MakeWH(100, 100)); in draw()
|
D | ColorSetARGB.cpp | 8 canvas->clipRect(SkRect::MakeWH(150, 150)); in draw() 10 canvas->clipRect(SkRect::MakeWH(75, 75)); in draw()
|
D | ColorSetRGB.cpp | 8 canvas->clipRect(SkRect::MakeWH(150, 150)); in draw() 10 canvas->clipRect(SkRect::MakeWH(75, 75)); in draw()
|
D | Canvas_drawColor.cpp | 8 canvas->clipRect(SkRect::MakeWH(150, 150)); in draw() 10 canvas->clipRect(SkRect::MakeWH(75, 75)); in draw()
|
D | Paint_setColorFilter.cpp | 9 canvas->drawRect(SkRect::MakeWH(50, 50), paint); in draw() 12 canvas->drawRect(SkRect::MakeWH(50, 50), paint); in draw()
|
/third_party/skia/bench/ |
D | TileImageFilterBench.cpp | 41 SkRect::MakeWH(50, 50), SkRect::MakeWH(WIDTH, HEIGHT), nullptr)); in onDraw() 50 canvas->drawRect(SkRect::MakeWH(WIDTH, HEIGHT), paint); in onDraw() 55 canvas->drawRect(SkRect::MakeWH(WIDTH, HEIGHT), paint); in onDraw()
|
/third_party/skia/src/gpu/ |
D | GrTestUtils.cpp | 125 gRects[0] = SkRect::MakeWH(1.f, 1.f); in TestRect() 126 gRects[1] = SkRect::MakeWH(1.0f, 256.0f); in TestRect() 127 gRects[2] = SkRect::MakeWH(256.0f, 1.0f); in TestRect() 141 gRects[0] = SkRect::MakeWH(128.f, 128.f); in TestSquare() 142 gRects[1] = SkRect::MakeWH(256.0f, 256.0f); in TestSquare() 152 SkRect rectangle = SkRect::MakeWH(10.f, 20.f); in TestRRectSimple()
|