Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Side by Side Diff: src/record/SkRecordDraw.cpp

Issue 273643007: Convert all SkRecordPattern matchers into SkRecord mutators. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: dumper too Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/record/SkRecord.h ('k') | src/record/SkRecordOpts.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « src/record/SkRecord.h ('k') | src/record/SkRecordOpts.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698