blob: ca389de7020139de75908186c9fde4b130f25c9a [file] [log] [blame]
/*
* Copyright 2021 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef MSKPBench_DEFINED
#define MSKPBench_DEFINED
#include "bench/Benchmark.h"
class MSKPPlayer;
class MSKPBench : public Benchmark {
public:
MSKPBench(SkString name, std::unique_ptr<MSKPPlayer> player);
~MSKPBench() override;
protected:
void onDraw(int loops, SkCanvas*) override;
const char* onGetName() override;
SkIPoint onGetSize() override;
void onPreDraw(SkCanvas*) override;
void onPostDraw(SkCanvas*) override;
private:
SkString fName;
std::unique_ptr<MSKPPlayer> fPlayer;
};
#endif