Flutter Engine
The Flutter Engine
MSKPBench.h
Go to the documentation of this file.
1/*
2 * Copyright 2021 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8#ifndef MSKPBench_DEFINED
9#define MSKPBench_DEFINED
10
11#include "bench/Benchmark.h"
12
13class MSKPPlayer;
14
15class MSKPBench : public Benchmark {
16public:
17 MSKPBench(SkString name, std::unique_ptr<MSKPPlayer> player);
18 ~MSKPBench() override;
19
20protected:
21 void onDraw(int loops, SkCanvas*) override;
22 const char* onGetName() override;
23 SkISize onGetSize() override;
24 void onPreDraw(SkCanvas*) override;
25 void onPostDraw(SkCanvas*) override;
26
27private:
28 SkString fName;
29 std::unique_ptr<MSKPPlayer> fPlayer;
30};
31
32#endif
void onPostDraw(SkCanvas *) override
Definition: MSKPBench.cpp:47
void onPreDraw(SkCanvas *) override
Definition: MSKPBench.cpp:42
~MSKPBench() override
const char * onGetName() override
Definition: MSKPBench.cpp:35
MSKPBench(SkString name, std::unique_ptr< MSKPPlayer > player)
Definition: MSKPBench.cpp:14
SkISize onGetSize() override
Definition: MSKPBench.cpp:37
void onDraw(int loops, SkCanvas *) override
Definition: MSKPBench.cpp:19
DEF_SWITCHES_START aot vmservice shared library name
Definition: switches.h:32
Definition: SkSize.h:16