DMUtil.cpp revision d36522d12d3e71958e50683a7eef43dc2a47d96d
1#include "DMUtil.h"
2
3namespace DM {
4
5SkString underJoin(const char* a, const char* b) {
6    SkString s;
7    s.appendf("%s_%s", a, b);
8    return s;
9}
10
11SkString png(SkString s) {
12    s.appendf(".png");
13    return s;
14}
15
16bool meetsExpectations(const skiagm::Expectations& expectations,
17                       const skiagm::GmResultDigest& digest) {
18    return expectations.ignoreFailure()
19        || expectations.empty()
20        || expectations.match(digest);
21}
22
23}  // namespace DM
24