diff options
author | msarett <msarett@google.com> | 2016-05-18 06:23:57 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-05-18 06:23:57 -0700 |
commit | d1227a7417922ce26252d55815d0d1e98f0eb070 (patch) | |
tree | e6aa4536de96410f69247c4b3e72e8cab09429ff /bench/BitmapRegionDecoderBench.h | |
parent | 4803f9715ff02b54a8ebae24167c490181d7cc3f (diff) |
Delete SkBitmapRegionCanvas
This was an approach we considered for implementing Android's
BitmapRegionDecoder.
It was useful for testing and comparison, but now is no longer worth
maintaining and testing.
The approach to subset/scaled decodes (clipped decode, then scale)
may be worth reconsidering at some point.
BUG=skia:5307
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1990543002
Review-Url: https://codereview.chromium.org/1990543002
Diffstat (limited to 'bench/BitmapRegionDecoderBench.h')
-rw-r--r-- | bench/BitmapRegionDecoderBench.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/bench/BitmapRegionDecoderBench.h b/bench/BitmapRegionDecoderBench.h index 7c331aee31..69588b24c3 100644 --- a/bench/BitmapRegionDecoderBench.h +++ b/bench/BitmapRegionDecoderBench.h @@ -18,16 +18,13 @@ /** * Benchmark Android's BitmapRegionDecoder for a particular colorType, sampleSize, and subset. * - * fStrategy determines which of various implementations is to be used. - * * nanobench.cpp handles creating benchmarks for interesting scaled subsets. We strive to test * on real use cases. */ class BitmapRegionDecoderBench : public Benchmark { public: // Calls encoded->ref() - BitmapRegionDecoderBench(const char* basename, SkData* encoded, - SkBitmapRegionDecoder::Strategy strategy, SkColorType colorType, + BitmapRegionDecoderBench(const char* basename, SkData* encoded, SkColorType colorType, uint32_t sampleSize, const SkIRect& subset); protected: @@ -40,7 +37,6 @@ private: SkString fName; SkAutoTDelete<SkBitmapRegionDecoder> fBRD; SkAutoTUnref<SkData> fData; - const SkBitmapRegionDecoder::Strategy fStrategy; const SkColorType fColorType; const uint32_t fSampleSize; const SkIRect fSubset; |