2 * Copyright 2014 Google Inc.
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
8 #ifndef RecordingBench_DEFINED
9 #define RecordingBench_DEFINED
11 #include "Benchmark.h"
12 #include "SkPicture.h"
14 class RecordingBench : public Benchmark {
16 RecordingBench(const char* name, const SkPicture*, bool useBBH);
19 const char* onGetName() SK_OVERRIDE;
20 bool isSuitableFor(Backend) SK_OVERRIDE;
21 void onDraw(const int loops, SkCanvas*) SK_OVERRIDE;
22 SkIPoint onGetSize() SK_OVERRIDE;
25 SkAutoTUnref<const SkPicture> fSrc;
29 typedef Benchmark INHERITED;
32 #endif//RecordingBench_DEFINED