diff options
author | nagarajan.n <nagarajan.n@samsung.com> | 2017-09-25 18:13:06 +0530 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-09-25 19:01:50 +0000 |
commit | 477e9d432abd157f52d40ee1aa10263793489d53 (patch) | |
tree | 2bdec00ecd4363a9f02dcdb15f5b9a241735ecad /src/codec/SkIcoCodec.h | |
parent | f60c1a3ef905dc034dfcc91267fea382f77acea6 (diff) |
Merge fCurrIncrementalCodec and fCurrScanlineCodec usage into single
variable
This patch merges fCurrIncrementalCodec and fCurrScanlineCodec usage
into single variable for SkIcoCodec.
Bug: skia: None
Change-Id: I6629f04fc27b8792c4cb1e6f494f8df7006c6b21
Reviewed-on: https://skia-review.googlesource.com/50520
Reviewed-by: Leon Scroggins <scroggo@google.com>
Commit-Queue: Leon Scroggins <scroggo@google.com>
Diffstat (limited to 'src/codec/SkIcoCodec.h')
-rw-r--r-- | src/codec/SkIcoCodec.h | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/src/codec/SkIcoCodec.h b/src/codec/SkIcoCodec.h index 0b77df57c6..06ddeba9b4 100644 --- a/src/codec/SkIcoCodec.h +++ b/src/codec/SkIcoCodec.h @@ -92,21 +92,9 @@ private: std::unique_ptr<SkTArray<std::unique_ptr<SkCodec>, true>> fEmbeddedCodecs; - // Only used by the scanline decoder. onStartScanlineDecode() will set - // fCurrScanlineCodec to one of the fEmbeddedCodecs, if it can find a - // codec of the appropriate size. We will use fCurrScanlineCodec for - // subsequent calls to onGetScanlines() or onSkipScanlines(). - // fCurrScanlineCodec is owned by this class, but should not be an + // fCurrCodec is owned by this class, but should not be an // std::unique_ptr. It will be deleted by the destructor of fEmbeddedCodecs. - SkCodec* fCurrScanlineCodec; - - // Only used by incremental decoder. onStartIncrementalDecode() will set - // fCurrIncrementalCodec to one of the fEmbeddedCodecs, if it can find a - // codec of the appropriate size. We will use fCurrIncrementalCodec for - // subsequent calls to incrementalDecode(). - // fCurrIncrementalCodec is owned by this class, but should not be an - // std::unique_ptr. It will be deleted by the destructor of fEmbeddedCodecs. - SkCodec* fCurrIncrementalCodec; + SkCodec* fCurrCodec; typedef SkCodec INHERITED; }; |