Chromium Code Reviews| 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 16 matching lines...) Expand all Loading... | |
| 27 Result onGetPixels(const SkImageInfo&, void*, size_t, const Options&, SkPMCo lor*, int*, int*) | 27 Result onGetPixels(const SkImageInfo&, void*, size_t, const Options&, SkPMCo lor*, int*, int*) |
| 28 override; | 28 override; |
| 29 SkEncodedFormat onGetEncodedFormat() const override { return kWEBP_SkEncoded Format; } | 29 SkEncodedFormat onGetEncodedFormat() const override { return kWEBP_SkEncoded Format; } |
| 30 | 30 |
| 31 SkISize onGetScaledDimensions(float desiredScale) const override; | 31 SkISize onGetScaledDimensions(float desiredScale) const override; |
| 32 | 32 |
| 33 bool onDimensionsSupported(const SkISize&) override; | 33 bool onDimensionsSupported(const SkISize&) override; |
| 34 | 34 |
| 35 bool onGetValidSubset(SkIRect* /* desiredSubset */) const override; | 35 bool onGetValidSubset(SkIRect* /* desiredSubset */) const override; |
| 36 private: | 36 private: |
| 37 static bool ReadHeader(SkStream* stream, SkCodec** outCodec); | |
|
msarett
2016/04/25 14:59:10
Leon, do you remember why SkWebpCodec doesn't need
scroggo
2016/04/25 15:10:43
It doesn't store any information locally. e.g. SkP
msarett
2016/04/25 15:18:21
Acknowledged.
| |
| 38 | |
| 37 SkWebpCodec(int width, int height, const SkEncodedInfo&, SkStream*); | 39 SkWebpCodec(int width, int height, const SkEncodedInfo&, SkStream*); |
| 38 | 40 |
| 39 typedef SkCodec INHERITED; | 41 typedef SkCodec INHERITED; |
| 40 }; | 42 }; |
| 41 #endif // SkWebpCodec_DEFINED | 43 #endif // SkWebpCodec_DEFINED |
| OLD | NEW |