blob: 4c0340127c18625983ab3d00bc3ff175793e9bd9 [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 {
RecordingBench(const char* name, const SkPicture*, bool useBBH);
virtual const char* onGetName() SK_OVERRIDE;
virtual bool isSuitableFor(Backend) SK_OVERRIDE;
virtual void onDraw(const int loops, SkCanvas*) SK_OVERRIDE;
virtual SkIPoint onGetSize() SK_OVERRIDE;
SkAutoTUnref<const SkPicture> fSrc;
SkString fName;
bool fUseBBH;
typedef Benchmark INHERITED;