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