skia2/bench/RecordingBench.h
mtklein 72c9faab45 Fix up all the easy virtual ... SK_OVERRIDE cases.
This fixes every case where virtual and SK_OVERRIDE were on the same line,
which should be the bulk of cases.  We'll have to manually clean up the rest
over time unless I level up in regexes.

for f in (find . -type f); perl -p -i -e 's/virtual (.*)SK_OVERRIDE/\1SK_OVERRIDE/g' $f; end

BUG=skia:

Review URL: https://codereview.chromium.org/806653007
2015-01-09 10:06:40 -08:00

33 lines
724 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() 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