31fddc3769
Bug: skia:11900 Change-Id: I97d1f2a9523252318ffb4f479b197cb0ef9cf0b1 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/402920 Reviewed-by: Jim Van Verth <jvanverth@google.com> Commit-Queue: Brian Salomon <bsalomon@google.com>
33 lines
681 B
C++
33 lines
681 B
C++
/*
|
|
* 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
|