Home | History | Annotate | Download | only in core

Lines Matching refs:DRAW

23         // Draw only ops that affect pixels in the canvas's current clip.
33 SkRecords::Draw draw(canvas, drawablePicts, drawables, drawableCount);
38 // This visit call uses the SkRecords::Draw::operator() to call
40 // DRAW() macro.
41 record.visit(ops[i], draw);
44 // Draw all ops.
45 SkRecords::Draw draw(canvas, drawablePicts, drawables, drawableCount);
50 // This visit call uses the SkRecords::Draw::operator() to call
52 // DRAW() macro.
53 record.visit(i, draw);
65 SkRecords::Draw draw(canvas, drawablePicts, nullptr, drawableCount, &initialCTM);
67 record.visit(i, draw);
73 // NoOps draw nothing.
74 template <> void Draw::draw(const NoOp&) {}
76 #define DRAW(T, call) template <> void Draw::draw(const T& r) { fCanvas->call; }
77 DRAW(Flush, flush());
78 DRAW(Restore, restore());
79 DRAW(Save, save());
80 DRAW(SaveLayer, saveLayer(SkCanvas::SaveLayerRec(r.bounds,
87 template <> void Draw::draw(const SaveBehind& r) {
91 template <> void Draw::draw(const DrawBehind& r) {
95 DRAW(SetMatrix, setMatrix(SkMatrix::Concat(fInitialCTM, r.matrix)));
96 DRAW(Concat, concat(r.matrix));
97 DRAW(Translate, translate(r.dx, r.dy));
99 DRAW(ClipPath, clipPath(r.path, r.opAA.op(), r.opAA.aa()));
100 DRAW(ClipRRect, clipRRect(r.rrect, r.opAA.op(), r.opAA.aa()));
101 DRAW(ClipRect, clipRect(r.rect, r.opAA.op(), r.opAA.aa()));
102 DRAW(ClipRegion, clipRegion(r.region, r.op));
104 DRAW(DrawArc, drawArc(r.oval, r.startAngle, r.sweepAngle, r.useCenter, r.paint));
105 DRAW(DrawDRRect, drawDRRect(r.outer, r.inner, r.paint));
106 DRAW(DrawImage, drawImage(r.image.get(), r.left, r.top, r.paint));
108 template <> void Draw::draw(const DrawImageLattice& r) {
120 DRAW(DrawImageRect, legacy_drawImageRect(r.image.get(), r.src, r.dst, r.paint, r.constraint));
121 DRAW(DrawImageNine, drawImageNine(r.image.get(), r.center, r.dst, r.paint));
122 DRAW(DrawImageSet, experimental_DrawImageSetV1(r.set.get(), r.count, r.quality, r.mode));
123 DRAW(DrawOval, drawOval(r.oval, r.paint));
124 DRAW(DrawPaint, drawPaint(r.paint));
125 DRAW(DrawPath, drawPath(r.path, r.paint));
126 DRAW(DrawPatch, drawPatch(r.cubics, r.colors, r.texCoords, r.bmode, r.paint));
127 DRAW(DrawPicture, drawPicture(r.picture.get(), &r.matrix, r.paint));
128 DRAW(DrawPoints, drawPoints(r.mode, r.count, r.pts, r.paint));
129 DRAW(DrawRRect, drawRRect(r.rrect, r.paint));
130 DRAW(DrawRect, drawRect(r.rect, r.paint));
131 DRAW(DrawEdgeAARect, experimental_DrawEdgeAARectV1(r.rect, r.aa, r.color, r.mode));
132 DRAW(DrawRegion, drawRegion(r.region, r.paint));
133 DRAW(DrawTextBlob, drawTextBlob(r.blob.get(), r.x, r.y, r.paint));
134 DRAW(DrawAtlas, drawAtlas(r.atlas.get(),
136 DRAW(DrawVertices, drawVertices(r.vertices, r.bones, r.boneCount, r.bmode, r.paint));
137 DRAW(DrawShadowRec, private_draw_shadow_rec(r.path, r.rec));
138 DRAW(DrawAnnotation, drawAnnotation(r.rect, r.key.c_str(), r.value.get()));
139 #undef DRAW
141 template <> void Draw::draw(const DrawDrawable& r) {
158 // don't execute this op, pixels in this rectangle might draw incorrectly. So
160 // bounds of Draw* ops that they might have an effect on. For any given
189 // Any control ops not part of any Save/Restore block draw everywhere.
230 // Nothing can draw outside the cull rect.
362 Bounds bounds(const NoOp&) const { return Bounds::MakeEmpty(); } // NoOps don't draw.