skia2/bench/RecordingBench.h
mtklein a1ebeb25e9 Remove const from const int loops.
This drives me nuts, and prevents `while (loops --> 0)`.

BUG=skia:

Review URL: https://codereview.chromium.org/1379923005
2015-10-01 09:43:39 -07:00

33 lines
706 B
C++

/*
* 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() override;
bool isSuitableFor(Backend) override;
void onDraw(int loops, SkCanvas*) override;
SkIPoint onGetSize() override;
private:
SkAutoTUnref<const SkPicture> fSrc;
SkString fName;
bool fUseBBH;
typedef Benchmark INHERITED;
};
#endif//RecordingBench_DEFINED