| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 | 52 |
| 53 /* | 53 /* |
| 54 * Recommend a set of destination dimensions given a requested scale | 54 * Recommend a set of destination dimensions given a requested scale |
| 55 */ | 55 */ |
| 56 SkISize onGetScaledDimensions(float desiredScale) const override; | 56 SkISize onGetScaledDimensions(float desiredScale) const override; |
| 57 | 57 |
| 58 /* | 58 /* |
| 59 * Initiates the jpeg decode | 59 * Initiates the jpeg decode |
| 60 */ | 60 */ |
| 61 Result onGetPixels(const SkImageInfo& dstInfo, void* dst, size_t dstRowBytes
, const Options&, | 61 Result onGetPixels(const SkImageInfo& dstInfo, void* dst, size_t dstRowBytes
, const Options&, |
| 62 SkPMColor*, int*) override; | 62 SkPMColor*, int*, int*) override; |
| 63 | 63 |
| 64 SkEncodedFormat onGetEncodedFormat() const override { | 64 SkEncodedFormat onGetEncodedFormat() const override { |
| 65 return kJPEG_SkEncodedFormat; | 65 return kJPEG_SkEncodedFormat; |
| 66 } | 66 } |
| 67 | 67 |
| 68 bool onRewind() override; | 68 bool onRewind() override; |
| 69 | 69 |
| 70 private: | 70 private: |
| 71 | 71 |
| 72 /* | 72 /* |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 // We will save the state of the decompress struct after reading the header. | 119 // We will save the state of the decompress struct after reading the header. |
| 120 // This allows us to safely call onGetScaledDimensions() at any time. | 120 // This allows us to safely call onGetScaledDimensions() at any time. |
| 121 const int fReadyState; | 121 const int fReadyState; |
| 122 | 122 |
| 123 friend class SkJpegScanlineDecoder; | 123 friend class SkJpegScanlineDecoder; |
| 124 | 124 |
| 125 typedef SkCodec INHERITED; | 125 typedef SkCodec INHERITED; |
| 126 }; | 126 }; |
| 127 | 127 |
| 128 #endif | 128 #endif |
| OLD | NEW |