aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/RecorderTest.cpp
diff options
context:
space:
mode:
authorGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-05-07 21:16:09 +0000
committerGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-05-07 21:16:09 +0000
commitc71da1f6ed3a5e1a3eb2dd860b8129e1b423f9f4 (patch)
tree64e4be52905cc37f86fbb007187810f1444ed398 /tests/RecorderTest.cpp
parentba31f1d341bac57ca76a75d67f64434b4b371dc6 (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 'tests/RecorderTest.cpp')
-rw-r--r--tests/RecorderTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/RecorderTest.cpp b/tests/RecorderTest.cpp
index 407cf9add0..8fa198cd6d 100644
--- a/tests/RecorderTest.cpp
+++ b/tests/RecorderTest.cpp
@@ -30,7 +30,7 @@ public:
void apply(const SkRecord& record) {
for (unsigned i = 0; i < record.count(); i++) {
- record.visit(i, *this);
+ record.visit<void>(i, *this);
}
}