Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
third_party
skia
bench
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
13
class
MSKPPlayer
;
14
15
class
MSKPBench
:
public
Benchmark
{
16
public
:
17
MSKPBench
(
SkString
name
, std::unique_ptr<MSKPPlayer> player);
18
~MSKPBench
()
override
;
19
20
protected
:
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
27
private
:
28
SkString
fName;
29
std::unique_ptr<MSKPPlayer> fPlayer;
30
};
31
32
#endif
Benchmark.h
Benchmark
Definition
Benchmark.h:36
MSKPBench
Definition
MSKPBench.h:15
MSKPBench::onPostDraw
void onPostDraw(SkCanvas *) override
Definition
MSKPBench.cpp:47
MSKPBench::onPreDraw
void onPreDraw(SkCanvas *) override
Definition
MSKPBench.cpp:42
MSKPBench::~MSKPBench
~MSKPBench() override
MSKPBench::onGetName
const char * onGetName() override
Definition
MSKPBench.cpp:35
MSKPBench::onGetSize
SkISize onGetSize() override
Definition
MSKPBench.cpp:37
MSKPBench::onDraw
void onDraw(int loops, SkCanvas *) override
Definition
MSKPBench.cpp:19
MSKPPlayer
Definition
MSKPPlayer.h:27
SkCanvas
Definition
SkCanvas.h:106
SkString
Definition
SkString.h:118
name
const char * name
Definition
fuchsia.cc:50
SkISize
Definition
SkSize.h:16
Generated on Fri Apr 26 2024 06:15:25 for Flutter Engine by
1.9.8