Lines Matching refs:SkCanvas
12 * used in several test cases that verify that different types of SkCanvas
21 * static void MyTestStepFunction(SkCanvas* canvas,
48 #include "SkCanvas.h"
68 class Canvas2CanvasClipVisitor : public SkCanvas::ClipVisitor {
70 Canvas2CanvasClipVisitor(SkCanvas* target) : fTarget(target) {}
80 SkCanvas* fTarget;
83 static void test_clipVisitor(skiatest::Reporter* reporter, SkCanvas* canvas) {
88 SkCanvas c(bm);
106 "Drawing test step %s with SkCanvas";
159 virtual void draw(SkCanvas*, skiatest::Reporter*) = 0;
243 virtual void draw(SkCanvas* canvas, skiatest::Reporter* reporter) { \
254 virtual void draw(SkCanvas* canvas, skiatest::Reporter* reporter) { \
262 static void NAME##TestStep(SkCanvas* canvas, skiatest::Reporter*, \
269 static void NAME##TestStep(SkCanvas* canvas, skiatest::Reporter* reporter, \
278 // Basic test steps for most virtual methods in SkCanvas that draw or affect
296 SIMPLE_TEST_STEP(DrawPointsPoints, drawPoints(SkCanvas::kPoints_PointMode,
298 SIMPLE_TEST_STEP(DrawPointsLiness, drawPoints(SkCanvas::kLines_PointMode,
300 SIMPLE_TEST_STEP(DrawPointsPolygon, drawPoints(SkCanvas::kPolygon_PointMode,
340 static void SaveMatrixStep(SkCanvas* canvas,
344 canvas->save(SkCanvas::kMatrix_SaveFlag);
357 static void SaveClipStep(SkCanvas* canvas,
361 canvas->save(SkCanvas::kClip_SaveFlag);
374 static void SaveMatrixClipStep(SkCanvas* canvas,
378 canvas->save(SkCanvas::kMatrixClip_SaveFlag);
391 static void SaveLayerStep(SkCanvas* canvas,
402 static void BoundedSaveLayerStep(SkCanvas* canvas,
413 static void PaintSaveLayerStep(SkCanvas* canvas,
424 static void TwoClipOpsStep(SkCanvas* canvas,
438 static void DrawNearlyZeroLengthPathTestStep(SkCanvas* canvas,
459 static void DrawVerticesShaderTestStep(SkCanvas* canvas,
471 canvas->drawVertices(SkCanvas::kTriangleFan_VertexMode, 4, pts, pts,
477 static void DrawPictureTestStep(SkCanvas* canvas,
482 SkCanvas* testCanvas = testPicture->beginRecording(kWidth, kHeight);
490 static void SaveRestoreTestStep(SkCanvas* canvas,
513 static void DrawLayerTestStep(SkCanvas* canvas,
547 static void NestedSaveRestoreWithSolidPaintTestStep(SkCanvas* canvas,
569 static void NestedSaveRestoreWithFlushTestStep(SkCanvas* canvas,
591 const SkCanvas* canvas1,
592 const SkCanvas* canvas2,
632 SkCanvas::LayerIter layerIter1(const_cast<SkCanvas*>(canvas1), false);
633 SkCanvas::LayerIter layerIter2(const_cast<SkCanvas*>(canvas2), false);
727 SkCanvas* referenceCanvas = referencePicture.beginRecording(kWidth,
731 SkCanvas* testCanvas = testPicture.beginRecording(kWidth,
751 SkCanvas canvas(&device);
767 const SkCanvas& referenceCanvas, bool silent) {
809 const SkCanvas& referenceCanvas) {
814 SkCanvas indirectCanvas(&indirectDevice);
832 const SkCanvas& referenceCanvas) {
837 SkCanvas indirectCanvas1(&indirectDevice1);
842 SkCanvas indirectCanvas2(&indirectDevice2);
866 * with SkCanvas and with classes derrived from SkCanvas. It also verifies
867 * that the all canvas derivatives report the same state as an SkCanvas
875 SkCanvas referenceCanvas(&referenceDevice);