| 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 namespace { | 10 namespace { |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 r.xmode.get(), r.indices, r.indexCount, r.paint)
); | 87 r.xmode.get(), r.indices, r.indexCount, r.paint)
); |
| 88 #undef DRAW | 88 #undef DRAW |
| 89 | 89 |
| 90 template <> void Draw::draw(const SkRecords::PairedPushCull& r) { this->draw(*r.
base); } | 90 template <> void Draw::draw(const SkRecords::PairedPushCull& r) { this->draw(*r.
base); } |
| 91 template <> void Draw::draw(const SkRecords::BoundedDrawPosTextH& r) { this->dra
w(*r.base); } | 91 template <> void Draw::draw(const SkRecords::BoundedDrawPosTextH& r) { this->dra
w(*r.base); } |
| 92 | 92 |
| 93 } // namespace | 93 } // namespace |
| 94 | 94 |
| 95 void SkRecordDraw(const SkRecord& record, SkCanvas* canvas) { | 95 void SkRecordDraw(const SkRecord& record, SkCanvas* canvas) { |
| 96 for (Draw draw(canvas); draw.index() < record.count(); draw.next()) { | 96 for (Draw draw(canvas); draw.index() < record.count(); draw.next()) { |
| 97 record.visit(draw.index(), draw); | 97 record.visit<void>(draw.index(), draw); |
| 98 } | 98 } |
| 99 } | 99 } |
| OLD | NEW |