aboutsummaryrefslogtreecommitdiff
path: root/bench/SKPAnimationBench.h
diff options
context:
space:
mode:
authorBen Wagner <bungeman@google.com>2019-07-12 12:51:44 -0400
committerSkia Commit-Bot <skia-commit-bot@chromium.org>2019-07-15 16:06:11 +0000
commitacf98df7a1c2342d27d0852495bb881bac2e9bbb (patch)
treef33c836e4c19ce7449d67b937ae6fcdad8c5cd1c /bench/SKPAnimationBench.h
parentf355a1ead8cd247dce7fc433cf195c68d9c79d1d (diff)
downloadskia-acf98df7a1c2342d27d0852495bb881bac2e9bbb.tar.gz
Remove WallTimer class.
Only used in three somewhat dubious places. Change-Id: I7ccd1aef41f826d0eb62606751f4d3f0ceda267d Reviewed-on: https://skia-review.googlesource.com/c/skia/+/227065 Reviewed-by: Brian Salomon <bsalomon@google.com> Reviewed-by: Mike Reed <reed@google.com> Commit-Queue: Ben Wagner <bungeman@google.com>
Diffstat (limited to 'bench/SKPAnimationBench.h')
-rw-r--r--bench/SKPAnimationBench.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/bench/SKPAnimationBench.h b/bench/SKPAnimationBench.h
index 5190dbf383..1547a2665f 100644
--- a/bench/SKPAnimationBench.h
+++ b/bench/SKPAnimationBench.h
@@ -10,6 +10,7 @@
#include "bench/SKPBench.h"
#include "tools/timer/Timer.h"
+#include "include/utils/SkRandom.h"
/**
* Runs an SkPicture as a benchmark by repeatedly drawing it, first centering the picture and
@@ -25,10 +26,10 @@ public:
virtual ~Animation() {}
};
- SKPAnimationBench(const char* name, const SkPicture*, const SkIRect& devClip, Animation*,
+ SKPAnimationBench(const char* name, const SkPicture*, const SkIRect& devClip, sk_sp<Animation>,
bool doLooping);
- static Animation* CreateZoomAnimation(SkScalar zoomMax, double zoomPeriodMs);
+ static sk_sp<Animation> MakeZoomAnimation(SkScalar zoomMax, double zoomPeriodMs);
protected:
const char* onGetUniqueName() override;
@@ -41,7 +42,7 @@ protected:
private:
sk_sp<Animation> fAnimation;
- WallTimer fAnimationTimer;
+ SkRandom fAnimationTime;
SkString fUniqueName;
SkIRect fDevBounds;