diff options
author | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-05-07 21:16:09 +0000 |
---|---|---|
committer | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-05-07 21:16:09 +0000 |
commit | c71da1f6ed3a5e1a3eb2dd860b8129e1b423f9f4 (patch) | |
tree | 64e4be52905cc37f86fbb007187810f1444ed398 /tools/dump_record.cpp | |
parent | ba31f1d341bac57ca76a75d67f64434b4b371dc6 (diff) |
Convert all SkRecordPattern matchers into SkRecord mutators.
- Allow any return type from SkRecord mutators and visitors;
- update existing calls to mutate and visit;
- convert match to operator() in SkRecordPattern;
- tidy up a few inelegant bits of old code in tests.
The net result is that the generated code is much clearer. All the mutate() calls
inline as you'd hope, and you can now actually follow along with the disassembly.
BUG=skia:2378
R=fmalita@chromium.org, bungeman@google.com, mtklein@google.com
Author: mtklein@chromium.org
Review URL: https://codereview.chromium.org/273643007
git-svn-id: http://skia.googlecode.com/svn/trunk@14631 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tools/dump_record.cpp')
-rw-r--r-- | tools/dump_record.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/dump_record.cpp b/tools/dump_record.cpp index 8691155525..b427a81d61 100644 --- a/tools/dump_record.cpp +++ b/tools/dump_record.cpp @@ -84,7 +84,7 @@ static void dump(const char* name, const SkRecord& record) { printf("%s %s\n", FLAGS_optimize ? "optimized" : "not-optimized", name); for (unsigned i = 0; i < record.count(); i++) { printf("%*d ", digits, i); - record.visit(i, dumper); + record.visit<void>(i, dumper); } } |