OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #include "SkRecordDraw.h" | 8 #include "SkRecordDraw.h" |
9 | 9 |
10 void SkRecordDraw(const SkRecord& record, SkCanvas* canvas, SkDrawPictureCallbac
k* callback) { | 10 void SkRecordDraw(const SkRecord& record, SkCanvas* canvas, SkDrawPictureCallbac
k* callback) { |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 DRAW(DrawBitmap, drawBitmap(shallow_copy(r.bitmap), r.left, r.top, r.paint)); | 57 DRAW(DrawBitmap, drawBitmap(shallow_copy(r.bitmap), r.left, r.top, r.paint)); |
58 DRAW(DrawBitmapMatrix, drawBitmapMatrix(shallow_copy(r.bitmap), r.matrix, r.pain
t)); | 58 DRAW(DrawBitmapMatrix, drawBitmapMatrix(shallow_copy(r.bitmap), r.matrix, r.pain
t)); |
59 DRAW(DrawBitmapNine, drawBitmapNine(shallow_copy(r.bitmap), r.center, r.dst, r.p
aint)); | 59 DRAW(DrawBitmapNine, drawBitmapNine(shallow_copy(r.bitmap), r.center, r.dst, r.p
aint)); |
60 DRAW(DrawBitmapRectToRect, | 60 DRAW(DrawBitmapRectToRect, |
61 drawBitmapRectToRect(shallow_copy(r.bitmap), r.src, r.dst, r.paint, r.fl
ags)); | 61 drawBitmapRectToRect(shallow_copy(r.bitmap), r.src, r.dst, r.paint, r.fl
ags)); |
62 DRAW(DrawDRRect, drawDRRect(r.outer, r.inner, r.paint)); | 62 DRAW(DrawDRRect, drawDRRect(r.outer, r.inner, r.paint)); |
63 DRAW(DrawOval, drawOval(r.oval, r.paint)); | 63 DRAW(DrawOval, drawOval(r.oval, r.paint)); |
64 DRAW(DrawPaint, drawPaint(r.paint)); | 64 DRAW(DrawPaint, drawPaint(r.paint)); |
65 DRAW(DrawPath, drawPath(r.path, r.paint)); | 65 DRAW(DrawPath, drawPath(r.path, r.paint)); |
66 DRAW(DrawPatch, drawPatch(r.patch, r.paint)); | 66 DRAW(DrawPatch, drawPatch(r.patch, r.paint)); |
| 67 DRAW(DrawPicture, drawPicture(r.picture)); |
67 DRAW(DrawPoints, drawPoints(r.mode, r.count, r.pts, r.paint)); | 68 DRAW(DrawPoints, drawPoints(r.mode, r.count, r.pts, r.paint)); |
68 DRAW(DrawPosText, drawPosText(r.text, r.byteLength, r.pos, r.paint)); | 69 DRAW(DrawPosText, drawPosText(r.text, r.byteLength, r.pos, r.paint)); |
69 DRAW(DrawPosTextH, drawPosTextH(r.text, r.byteLength, r.xpos, r.y, r.paint)); | 70 DRAW(DrawPosTextH, drawPosTextH(r.text, r.byteLength, r.xpos, r.y, r.paint)); |
70 DRAW(DrawRRect, drawRRect(r.rrect, r.paint)); | 71 DRAW(DrawRRect, drawRRect(r.rrect, r.paint)); |
71 DRAW(DrawRect, drawRect(r.rect, r.paint)); | 72 DRAW(DrawRect, drawRect(r.rect, r.paint)); |
72 DRAW(DrawSprite, drawSprite(shallow_copy(r.bitmap), r.left, r.top, r.paint)); | 73 DRAW(DrawSprite, drawSprite(shallow_copy(r.bitmap), r.left, r.top, r.paint)); |
73 DRAW(DrawText, drawText(r.text, r.byteLength, r.x, r.y, r.paint)); | 74 DRAW(DrawText, drawText(r.text, r.byteLength, r.x, r.y, r.paint)); |
74 DRAW(DrawTextOnPath, drawTextOnPath(r.text, r.byteLength, r.path, r.matrix, r.pa
int)); | 75 DRAW(DrawTextOnPath, drawTextOnPath(r.text, r.byteLength, r.path, r.matrix, r.pa
int)); |
75 DRAW(DrawVertices, drawVertices(r.vmode, r.vertexCount, r.vertices, r.texs, r.co
lors, | 76 DRAW(DrawVertices, drawVertices(r.vmode, r.vertexCount, r.vertices, r.texs, r.co
lors, |
76 r.xmode.get(), r.indices, r.indexCount, r.paint)
); | 77 r.xmode.get(), r.indices, r.indexCount, r.paint)
); |
77 #undef DRAW | 78 #undef DRAW |
78 | 79 |
79 template <> void Draw::draw(const PairedPushCull& r) { this->draw(*r.base); } | 80 template <> void Draw::draw(const PairedPushCull& r) { this->draw(*r.base); } |
80 template <> void Draw::draw(const BoundedDrawPosTextH& r) { this->draw(*r.base);
} | 81 template <> void Draw::draw(const BoundedDrawPosTextH& r) { this->draw(*r.base);
} |
81 | 82 |
82 } // namespace SkRecords | 83 } // namespace SkRecords |
OLD | NEW |