blob: 783596d8274e60ee56976c47539130d4979721b7 [file] [log] [blame]
/*
* Copyright 2014 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef RecordingBench_DEFINED
#define RecordingBench_DEFINED
#include "Benchmark.h"
#include "SkPicture.h"
class RecordingBench : public Benchmark {
public:
RecordingBench(const char* name, const SkPicture*, bool useBBH);
protected:
const char* onGetName() SK_OVERRIDE;
bool isSuitableFor(Backend) SK_OVERRIDE;
void onDraw(const int loops, SkCanvas*) SK_OVERRIDE;
SkIPoint onGetSize() SK_OVERRIDE;
private:
SkAutoTUnref<const SkPicture> fSrc;
SkString fName;
bool fUseBBH;
typedef Benchmark INHERITED;
};
#endif//RecordingBench_DEFINED