From b4022965a280dd1ed64d6103dd29e2189abe6e00 Mon Sep 17 00:00:00 2001 From: cdalton Date: Thu, 25 Jun 2015 10:51:56 -0700 Subject: 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 --- bench/SKPAnimationBench.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bench/SKPAnimationBench.cpp') 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) { -- cgit v1.2.3