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 SkWebpCodec_DEFINED | 8 #ifndef SkWebpCodec_DEFINED |
9 #define SkWebpCodec_DEFINED | 9 #define SkWebpCodec_DEFINED |
10 | 10 |
(...skipping 15 matching lines...) Expand all Loading... |
26 SkEncodedFormat onGetEncodedFormat() const override { return kWEBP_SkEncoded
Format; } | 26 SkEncodedFormat onGetEncodedFormat() const override { return kWEBP_SkEncoded
Format; } |
27 | 27 |
28 bool onReallyHasAlpha() const override { | 28 bool onReallyHasAlpha() const override { |
29 return this->getInfo().alphaType() != kOpaque_SkAlphaType; | 29 return this->getInfo().alphaType() != kOpaque_SkAlphaType; |
30 } | 30 } |
31 | 31 |
32 SkISize onGetScaledDimensions(float desiredScale) const override; | 32 SkISize onGetScaledDimensions(float desiredScale) const override; |
33 | 33 |
34 bool onDimensionsSupported(const SkISize&) override; | 34 bool onDimensionsSupported(const SkISize&) override; |
35 | 35 |
36 bool onGetValidSubset(SkIRect* /* desiredSubset */) const override; | 36 bool onSubsetSupported(const SkIRect& subset, bool isScanlineDecode) overrid
e; |
| 37 |
| 38 bool onScaledSubsetSupported(const Options& options, bool isScanlineDecode)
override; |
| 39 |
| 40 bool onGetScaledSubsetDimensions(float desiredScale, const Options& options)
const override; |
37 private: | 41 private: |
38 SkWebpCodec(const SkImageInfo&, SkStream*); | 42 SkWebpCodec(const SkImageInfo&, SkStream*); |
39 | 43 |
40 typedef SkCodec INHERITED; | 44 typedef SkCodec INHERITED; |
41 }; | 45 }; |
42 #endif // SkWebpCodec_DEFINED | 46 #endif // SkWebpCodec_DEFINED |
OLD | NEW |