#ifndef DMUtil_DEFINED
#define DMUtil_DEFINED
#include "SkBenchmark.h"
#include "SkBitmap.h"
#include "SkString.h"
#include "gm_expectations.h"
class SkBBHFactory;
namespace DM {
SkString UnderJoin(const char* a, const char* b);
SkString FileToTaskName(SkString);
SkPicture* RecordPicture(skiagm::GM* gm,
uint32_t recordFlags = 0,
SkBBHFactory* factory = NULL);
void AllocatePixels(SkColorType, int w, int h, SkBitmap* bitmap);
void AllocatePixels(const SkBitmap& reference, SkBitmap* bitmap);
void DrawPicture(SkPicture* picture, SkBitmap* bitmap);
unsigned MaxComponentDifference(const SkBitmap& a, const SkBitmap& b);
bool BitmapsEqual(const SkBitmap& a, const SkBitmap& b);
}
#endif