| OLD | NEW | 
|    1 /* |    1 /* | 
|    2  * Copyright 2015 Google Inc. |    2  * Copyright 2015 Google Inc. | 
|    3  * |    3  * | 
|    4  * Use of this source code is governed by a BSD-style license that can be |    4  * Use of this source code is governed by a BSD-style license that can be | 
|    5  * found in the LICENSE file. |    5  * found in the LICENSE file. | 
|    6  */ |    6  */ | 
|    7  |    7  | 
|    8 #ifndef SkJpegCodec_DEFINED |    8 #ifndef SkJpegCodec_DEFINED | 
|    9 #define SkJpegCodec_DEFINED |    9 #define SkJpegCodec_DEFINED | 
|   10  |   10  | 
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   97     SkJpegCodec(int width, int height, const SkEncodedInfo& info, SkStream* stre
     am, |   97     SkJpegCodec(int width, int height, const SkEncodedInfo& info, SkStream* stre
     am, | 
|   98             JpegDecoderMgr* decoderMgr, sk_sp<SkColorSpace> colorSpace, Origin o
     rigin, |   98             JpegDecoderMgr* decoderMgr, sk_sp<SkColorSpace> colorSpace, Origin o
     rigin, | 
|   99             sk_sp<SkData> iccData); |   99             sk_sp<SkData> iccData); | 
|  100  |  100  | 
|  101     /* |  101     /* | 
|  102      * Checks if the conversion between the input image and the requested output |  102      * Checks if the conversion between the input image and the requested output | 
|  103      * image has been implemented. |  103      * image has been implemented. | 
|  104      * |  104      * | 
|  105      * Sets the output color space. |  105      * Sets the output color space. | 
|  106      */ |  106      */ | 
|  107     bool setOutputColorSpace(const SkImageInfo& dst, bool needsColorXform); |  107     bool setOutputColorSpace(const SkImageInfo& dst); | 
|  108  |  108  | 
|  109     void initializeSwizzler(const SkImageInfo& dstInfo, const Options& options); |  109     void initializeSwizzler(const SkImageInfo& dstInfo, const Options& options); | 
|  110     bool initializeColorXform(const SkImageInfo& dstInfo, bool needsColorXform); |  110     bool initializeColorXform(const SkImageInfo& dstInfo); | 
|  111     void allocateStorage(const SkImageInfo& dstInfo); |  111     void allocateStorage(const SkImageInfo& dstInfo); | 
|  112     int readRows(const SkImageInfo& dstInfo, void* dst, size_t rowBytes, int cou
     nt); |  112     int readRows(const SkImageInfo& dstInfo, void* dst, size_t rowBytes, int cou
     nt); | 
|  113  |  113  | 
|  114     /* |  114     /* | 
|  115      * Scanline decoding. |  115      * Scanline decoding. | 
|  116      */ |  116      */ | 
|  117     SkSampler* getSampler(bool createIfNecessary) override; |  117     SkSampler* getSampler(bool createIfNecessary) override; | 
|  118     Result onStartScanlineDecode(const SkImageInfo& dstInfo, const Options& opti
     ons, |  118     Result onStartScanlineDecode(const SkImageInfo& dstInfo, const Options& opti
     ons, | 
|  119             SkPMColor ctable[], int* ctableCount) override; |  119             SkPMColor ctable[], int* ctableCount) override; | 
|  120     int onGetScanlines(void* dst, int count, size_t rowBytes) override; |  120     int onGetScanlines(void* dst, int count, size_t rowBytes) override; | 
| (...skipping 17 matching lines...) Expand all  Loading... | 
|  138  |  138  | 
|  139     SkAutoTDelete<SkSwizzler>          fSwizzler; |  139     SkAutoTDelete<SkSwizzler>          fSwizzler; | 
|  140     std::unique_ptr<SkColorSpaceXform> fColorXform; |  140     std::unique_ptr<SkColorSpaceXform> fColorXform; | 
|  141  |  141  | 
|  142     sk_sp<SkData>                      fICCData; |  142     sk_sp<SkData>                      fICCData; | 
|  143  |  143  | 
|  144     typedef SkCodec INHERITED; |  144     typedef SkCodec INHERITED; | 
|  145 }; |  145 }; | 
|  146  |  146  | 
|  147 #endif |  147 #endif | 
| OLD | NEW |