blob: c95f93346a2de425faa9a757b342b52d33707d5e [file] [log] [blame]
#ifndef DMUtil_DEFINED
#define DMUtil_DEFINED
#include "SkBitmap.h"
#include "SkString.h"
#include "gm_expectations.h"
// Small free functions used in more than one place in DM.
namespace DM {
// underJoin("a", "b") -> "a_b"
SkString underJoin(const char* a, const char* b);
// png("a") -> "a.png"
SkString png(SkString s);
// Roughly, expectations.match(GmResultDigest(bitmap)), but calculates the digest lazily.
bool meetsExpectations(const skiagm::Expectations& expectations, const SkBitmap bitmap);
} // namespace DM
#endif // DMUtil_DEFINED