From c71da1f6ed3a5e1a3eb2dd860b8129e1b423f9f4 Mon Sep 17 00:00:00 2001 From: "commit-bot@chromium.org" Date: Wed, 7 May 2014 21:16:09 +0000 Subject: 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 --- tools/dump_record.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/dump_record.cpp') 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(i, dumper); } } -- cgit v1.2.3