diff --git a/bench/ColorCubeBench.cpp b/bench/ColorCubeBench.cpp index 16ed4ce89..141edf62a 100644 --- a/bench/ColorCubeBench.cpp +++ b/bench/ColorCubeBench.cpp @@ -94,12 +94,11 @@ private: } void test(const int loops, SkCanvas* canvas) { - SkAutoTUnref colorCube( - SkColorCubeFilter::Create(fCubeData, fCubeDimension)); SkPaint paint; - paint.setColorFilter(colorCube); - for (int i = 0; i < loops; i++) { + SkAutoTUnref colorCube( + SkColorCubeFilter::Create(fCubeData, fCubeDimension)); + paint.setColorFilter(colorCube); canvas->drawBitmap(fBitmap, 0, 0, &paint); } }