| Index: bench/SkipZeroesBench.cpp
|
| diff --git a/bench/SkipZeroesBench.cpp b/bench/SkipZeroesBench.cpp
|
| index b56838c200b503ad23b432993510f1177c0fd4c9..fc2f060a353b10347aaf427e7da7a330f4345e47 100644
|
| --- a/bench/SkipZeroesBench.cpp
|
| +++ b/bench/SkipZeroesBench.cpp
|
| @@ -61,15 +61,7 @@ protected:
|
| fStream.setData(skdata.get());
|
| fDecoder.reset(SkImageDecoder::Factory(&fStream));
|
| if (fDecoder.get()) {
|
| - // Disabling until the feature is checked in.
|
| - // See https://codereview.chromium.org/24269006/
|
| - //fDecoder->setSkipWritingZeroes(fSkipZeroes);
|
| - if (fSkipZeroes) {
|
| - // This printf will never happen since this bench is
|
| - // only currently created with false. Remove once
|
| - // the above code is uncommented.
|
| - SkDebugf("Should be skipping zeroes...\n");
|
| - }
|
| + fDecoder->setSkipWritingZeroes(fSkipZeroes);
|
| } else {
|
| fValid = false;
|
| }
|
| @@ -117,5 +109,5 @@ private:
|
| };
|
|
|
| // Enable the true version once the feature is checked in.
|
| -//DEF_BENCH( return SkNEW_ARGS(SkipZeroesBench, ("arrow.png", true)));
|
| +DEF_BENCH( return SkNEW_ARGS(SkipZeroesBench, ("arrow.png", true)));
|
| DEF_BENCH( return SkNEW_ARGS(SkipZeroesBench, ("arrow.png", false)));
|
|
|