aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench/SKPAnimationBench.cpp
diff options
context:
space:
mode:
authorGravatar cdalton <cdalton@nvidia.com>2015-06-25 10:51:56 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-06-25 10:51:56 -0700
commitb4022965a280dd1ed64d6103dd29e2189abe6e00 (patch)
treef7bea91cb929485d20f35c1edf19e9b0f3f57c64 /bench/SKPAnimationBench.cpp
parentb0c5071a376ecfb608c49886f2c86b1ce40b1389 (diff)
Add loopSKP flag to nanobench
Adds a loopSKP flag that forces SKPBenches to draw with only 1 loop. BUG=skia: Review URL: https://codereview.chromium.org/1203193002
Diffstat (limited to 'bench/SKPAnimationBench.cpp')
-rw-r--r--bench/SKPAnimationBench.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/bench/SKPAnimationBench.cpp b/bench/SKPAnimationBench.cpp
index 24506d814f..55a85966a4 100644
--- a/bench/SKPAnimationBench.cpp
+++ b/bench/SKPAnimationBench.cpp
@@ -10,9 +10,9 @@
#include "SkMultiPictureDraw.h"
#include "SkSurface.h"
-SKPAnimationBench::SKPAnimationBench(const char* name, const SkPicture* pic,
- const SkIRect& clip, SkMatrix animationMatrix, int steps)
- : INHERITED(name, pic, clip, 1.0, false)
+SKPAnimationBench::SKPAnimationBench(const char* name, const SkPicture* pic, const SkIRect& clip,
+ SkMatrix animationMatrix, int steps, bool doLooping)
+ : INHERITED(name, pic, clip, 1.0, false, doLooping)
, fSteps(steps)
, fAnimationMatrix(animationMatrix)
, fName(name) {