20 double duration()
const {
return this->onGetDuration(); }
21 double time()
const {
return this->onGetTime(); }
22 double setTime(
double);
25 double setNormalizedTime(
double t);
33 float volume()
const {
return fVolume; }
34 float rate()
const {
return fRate; }
38 float setVolume(
float);
40 void play() { this->setState(State::kPlaying); }
41 void pause() { this->setState(State::kPaused); }
42 void stop() { this->setState(State::kStopped); }
60 State fState = State::kStopped;
virtual double onSetTime(double)=0
virtual double onGetDuration() const =0
double normalizedTime() const
virtual double onGetTime() const =0
virtual float onSetVolume(float)=0
virtual State onSetState(State)=0
virtual float onSetRate(float)=0
SK_API sk_sp< SkDocument > Make(SkWStream *dst, const SkSerialProcs *=nullptr, std::function< void(const SkPicture *)> onEndPage=nullptr)
static double time(int loops, Benchmark *bench, Target *target)