Lines Matching refs:SkCanvas

96     SkCanvas canvas(10, 10);  in DEF_TEST()
125 SkCanvas c(-10, -20); in DEF_TEST()
146 static void test_restriction(skiatest::Reporter* reporter, SkCanvas* canvas) { in test_restriction()
188 [reporter](SkCanvas* canvas) { test_restriction(reporter, canvas); }); in DEF_TEST()
192 multi_canvas_driver(50, 50, [reporter](SkCanvas* canvas) { in DEF_TEST()
330 virtual void draw(SkCanvas*, const TestData&, skiatest::Reporter*) = 0;
356 virtual void draw(SkCanvas* canvas, const TestData& d, \
368 virtual void draw(SkCanvas* canvas, const TestData& d, \
377 static void NAME##TestStep(SkCanvas* canvas, const TestData& d, \
384 static void NAME##TestStep(SkCanvas* canvas, const TestData& d, skiatest::Reporter*, \
408 static void SaveMatrixClipStep(SkCanvas* canvas, const TestData& d, in SaveMatrixClipStep()
422 static void SaveLayerStep(SkCanvas* canvas, const TestData& d, in SaveLayerStep()
431 static void BoundedSaveLayerStep(SkCanvas* canvas, const TestData& d, in BoundedSaveLayerStep()
440 static void PaintSaveLayerStep(SkCanvas* canvas, const TestData& d, in PaintSaveLayerStep()
449 static void TwoClipOpsStep(SkCanvas* canvas, const TestData& d, in TwoClipOpsStep()
462 static void DrawNearlyZeroLengthPathTestStep(SkCanvas* canvas, const TestData& d, in DrawNearlyZeroLengthPathTestStep()
472 static void DrawVerticesShaderTestStep(SkCanvas* canvas, const TestData& d, in DrawVerticesShaderTestStep()
489 static void DrawPictureTestStep(SkCanvas* canvas, const TestData& d, in DrawPictureTestStep()
492SkCanvas* testCanvas = recorder.beginRecording(SkIntToScalar(d.fWidth), SkIntToScalar(d.fHeight), in DrawPictureTestStep()
502 static void SaveRestoreTestStep(SkCanvas* canvas, const TestData& d, in SaveRestoreTestStep()
523 static void NestedSaveRestoreWithSolidPaintTestStep(SkCanvas* canvas, const TestData& d, in NestedSaveRestoreWithSolidPaintTestStep()
544 static void NestedSaveRestoreWithFlushTestStep(SkCanvas* canvas, const TestData& d, in NestedSaveRestoreWithFlushTestStep()
570 SkCanvas* canvas = doc->beginPage(SkIntToScalar(d.fWidth), in TestPdfDevice()
587 SkCanvas referenceCanvas(referenceStore); in TestOverrideStateConsistency()
600 std::unique_ptr<SkCanvas> canvas = SkCanvas::MakeRasterDirect(info, baseAddr, minRowBytes); in test_newraster()
617 REPORTER_ASSERT(reporter, nullptr == SkCanvas::MakeRasterDirect(info, baseAddr, minRowBytes)); in test_newraster()
621 REPORTER_ASSERT(reporter, nullptr == SkCanvas::MakeRasterDirect(info, baseAddr, minRowBytes)); in test_newraster()
625 REPORTER_ASSERT(reporter, nullptr == SkCanvas::MakeRasterDirect(info, baseAddr, minRowBytes)); in test_newraster()
629 canvas = SkCanvas::MakeRasterDirect(info, baseAddr, minRowBytes); in test_newraster()
647 SkCanvas canvas(10, 10); in DEF_TEST()
665 SkCanvas canvas(10, 10); in DEF_TEST()
684 MockFilterCanvas(SkCanvas* canvas) : INHERITED(canvas) { } in MockFilterCanvas()
697 SkCanvas canvas(100, 100); in DEF_TEST()
715 class LifeLineCanvas : public SkCanvas {
718 LifeLineCanvas(int w, int h, bool* lifeline) : SkCanvas(w, h), fLifeLine(lifeline) { in LifeLineCanvas()
738 std::unique_ptr<SkCanvas> c0 = std::unique_ptr<SkCanvas>(new LifeLineCanvas(w, h, &life[0])); in DEF_TEST()
739 std::unique_ptr<SkCanvas> c1 = std::unique_ptr<SkCanvas>(new LifeLineCanvas(w, h, &life[1])); in DEF_TEST()
760 std::unique_ptr<SkCanvas> c0 = std::unique_ptr<SkCanvas>(new LifeLineCanvas(w, h, &life[0])); in DEF_TEST()
761 std::unique_ptr<SkCanvas> c1 = std::unique_ptr<SkCanvas>(new LifeLineCanvas(w, h, &life[1])); in DEF_TEST()
777 static void test_cliptype(SkCanvas* canvas, skiatest::Reporter* r) { in test_cliptype()
825 SkCanvas canvas(bitmap, SkCanvas::ColorBehavior::kLegacy); in DEF_TEST()
866 SkCanvas canvas(10, 10); in DEF_TEST()
891 SkCanvas canvas(bm); in DEF_TEST()
899 SkCanvas canvas(100, 100); in DEF_TEST()