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) { | 10 void SkRecordDraw(const SkRecord& record, SkCanvas* canvas) { |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 DRAW(DrawText, drawText(r.text, r.byteLength, r.x, r.y, r.paint)); | 62 DRAW(DrawText, drawText(r.text, r.byteLength, r.x, r.y, r.paint)); |
63 DRAW(DrawTextOnPath, drawTextOnPath(r.text, r.byteLength, r.path, r.matrix, r.pa
int)); | 63 DRAW(DrawTextOnPath, drawTextOnPath(r.text, r.byteLength, r.path, r.matrix, r.pa
int)); |
64 DRAW(DrawVertices, drawVertices(r.vmode, r.vertexCount, r.vertices, r.texs, r.co
lors, | 64 DRAW(DrawVertices, drawVertices(r.vmode, r.vertexCount, r.vertices, r.texs, r.co
lors, |
65 r.xmode.get(), r.indices, r.indexCount, r.paint)
); | 65 r.xmode.get(), r.indices, r.indexCount, r.paint)
); |
66 #undef DRAW | 66 #undef DRAW |
67 | 67 |
68 template <> void Draw::draw(const PairedPushCull& r) { this->draw(*r.base); } | 68 template <> void Draw::draw(const PairedPushCull& r) { this->draw(*r.base); } |
69 template <> void Draw::draw(const BoundedDrawPosTextH& r) { this->draw(*r.base);
} | 69 template <> void Draw::draw(const BoundedDrawPosTextH& r) { this->draw(*r.base);
} |
70 | 70 |
71 } // namespace SkRecords | 71 } // namespace SkRecords |
OLD | NEW |