Searched refs:testCanvas (Results 1 – 9 of 9) sorted by relevance
/third_party/flutter/engine/flutter/testing/dart/ |
D | canvas_test.dart | 15 void testCanvas(CanvasCallback callback) { 49 testCanvas((Canvas canvas) => canvas.clipPath(path)); 50 testCanvas((Canvas canvas) => canvas.clipRect(rect)); 51 testCanvas((Canvas canvas) => canvas.clipRRect(rrect)); 52 testCanvas((Canvas canvas) => canvas.drawArc(rect, 0.0, 0.0, false, paint)); 53 …testCanvas((Canvas canvas) => canvas.drawAtlas(image, <RSTransform>[], <Rect>[], <Color>[], BlendM… 54 testCanvas((Canvas canvas) => canvas.drawCircle(offset, double.nan, paint)); 55 testCanvas((Canvas canvas) => canvas.drawColor(color, BlendMode.src)); 56 testCanvas((Canvas canvas) => canvas.drawDRRect(rrect, rrect, paint)); 57 testCanvas((Canvas canvas) => canvas.drawImage(image, offset, paint)); [all …]
|
/third_party/flutter/flutter/packages/flutter/test/widgets/ |
D | scrollbar_test.dart | 43 final _DrawRectOnceCanvas testCanvas = _DrawRectOnceCanvas(); 45 Rect captureRect() => verify(testCanvas.drawRect(captureAny, any)).captured.single; 75 painter.paint(testCanvas, size); 88 painter.paint(testCanvas, size); 128 painter.paint(testCanvas, size); 170 painter.paint(testCanvas, size); 179 painter.paint(testCanvas, size); 210 painter.paint(testCanvas, size); 257 p.paint(testCanvas, size); 271 p.paint(testCanvas, size); [all …]
|
/third_party/flutter/skia/tests/ |
D | PictureTest.cpp | 260 SkCanvas testCanvas(100, 100); in test_unbalanced_save_restores() local 261 set_canvas_to_save_count_4(&testCanvas); in test_unbalanced_save_restores() 263 REPORTER_ASSERT(reporter, 4 == testCanvas.getSaveCount()); in test_unbalanced_save_restores() 281 testCanvas.drawPicture(extraSavePicture); in test_unbalanced_save_restores() 282 REPORTER_ASSERT(reporter, 4 == testCanvas.getSaveCount()); in test_unbalanced_save_restores() 285 set_canvas_to_save_count_4(&testCanvas); in test_unbalanced_save_restores() 302 testCanvas.drawPicture(extraRestorePicture); in test_unbalanced_save_restores() 303 REPORTER_ASSERT(reporter, 4 == testCanvas.getSaveCount()); in test_unbalanced_save_restores() 306 set_canvas_to_save_count_4(&testCanvas); in test_unbalanced_save_restores() 314 testCanvas.drawPicture(noSavePicture); in test_unbalanced_save_restores() [all …]
|
D | BlurTest.cpp | 162 SkCanvas testCanvas(testBitmap); in DEF_TEST() local 163 testCanvas.translate(SkIntToScalar(-itest.fLeft), in DEF_TEST() 165 drawBG(&testCanvas); in DEF_TEST() 166 testCanvas.drawPath(path, paint); in DEF_TEST()
|
D | CanvasTest.cpp | 314 SkCanvas* testCanvas = recorder.beginRecording( in __anon17e5b73f1302() local 316 testCanvas->scale(SkIntToScalar(2), SkIntToScalar(1)); in __anon17e5b73f1302() 317 testCanvas->clipRect(kRect); in __anon17e5b73f1302() 318 testCanvas->drawRect(kRect, SkPaint()); in __anon17e5b73f1302()
|
/third_party/flutter/engine/flutter/lib/web_ui/test/ |
D | canvas_test.dart | 17 void testCanvas( 32 testCanvas('draws laid out paragraph', (EngineCanvas canvas) { 55 testCanvas('ignores paragraphs that were not laid out',
|
/third_party/skia/tests/ |
D | PictureTest.cpp | 258 SkCanvas testCanvas(100, 100); in test_unbalanced_save_restores() local 259 set_canvas_to_save_count_4(&testCanvas); in test_unbalanced_save_restores() 261 REPORTER_ASSERT(reporter, 4 == testCanvas.getSaveCount()); in test_unbalanced_save_restores() 279 testCanvas.drawPicture(extraSavePicture); in test_unbalanced_save_restores() 280 REPORTER_ASSERT(reporter, 4 == testCanvas.getSaveCount()); in test_unbalanced_save_restores() 283 set_canvas_to_save_count_4(&testCanvas); in test_unbalanced_save_restores() 300 testCanvas.drawPicture(extraRestorePicture); in test_unbalanced_save_restores() 301 REPORTER_ASSERT(reporter, 4 == testCanvas.getSaveCount()); in test_unbalanced_save_restores() 304 set_canvas_to_save_count_4(&testCanvas); in test_unbalanced_save_restores() 312 testCanvas.drawPicture(noSavePicture); in test_unbalanced_save_restores() [all …]
|
D | BlurTest.cpp | 159 SkCanvas testCanvas(testBitmap); in DEF_TEST() local 160 testCanvas.translate(SkIntToScalar(-itest.fLeft), in DEF_TEST() 162 drawBG(&testCanvas); in DEF_TEST() 163 testCanvas.drawPath(path, paint); in DEF_TEST()
|
D | CanvasTest.cpp | 335 SkCanvas* testCanvas = recorder.beginRecording(SkIntToScalar(kWidth), in __anon5f63da0a1302() local 337 testCanvas->scale(SkIntToScalar(2), SkIntToScalar(1)); in __anon5f63da0a1302() 338 testCanvas->clipRect(kRect); in __anon5f63da0a1302() 339 testCanvas->drawRect(kRect, SkPaint()); in __anon5f63da0a1302()
|