| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2016 Google Inc. | 2 * Copyright 2016 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 SkRawCodec_DEFINED | 8 #ifndef SkRawCodec_DEFINED |
| 9 #define SkRawCodec_DEFINED | 9 #define SkRawCodec_DEFINED |
| 10 | 10 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 static SkCodec* NewFromStream(SkStream*); | 31 static SkCodec* NewFromStream(SkStream*); |
| 32 | 32 |
| 33 ~SkRawCodec() override; | 33 ~SkRawCodec() override; |
| 34 | 34 |
| 35 protected: | 35 protected: |
| 36 | 36 |
| 37 Result onGetPixels(const SkImageInfo& dstInfo, void* dst, size_t dstRowBytes
, const Options&, | 37 Result onGetPixels(const SkImageInfo& dstInfo, void* dst, size_t dstRowBytes
, const Options&, |
| 38 SkPMColor*, int*, int*) override; | 38 SkPMColor*, int*, int*) override; |
| 39 | 39 |
| 40 SkEncodedFormat onGetEncodedFormat() const override { | 40 SkEncodedFormat onGetEncodedFormat() const override { |
| 41 return kRAW_SkEncodedFormat; | 41 return kDNG_SkEncodedFormat; |
| 42 } | 42 } |
| 43 | 43 |
| 44 SkISize onGetScaledDimensions(float desiredScale) const override; | 44 SkISize onGetScaledDimensions(float desiredScale) const override; |
| 45 | 45 |
| 46 bool onDimensionsSupported(const SkISize&) override; | 46 bool onDimensionsSupported(const SkISize&) override; |
| 47 | 47 |
| 48 private: | 48 private: |
| 49 | 49 |
| 50 /* | 50 /* |
| 51 * Creates an instance of the decoder | 51 * Creates an instance of the decoder |
| 52 * Called only by NewFromStream, takes ownership of dngImage. | 52 * Called only by NewFromStream, takes ownership of dngImage. |
| 53 */ | 53 */ |
| 54 SkRawCodec(SkDngImage* dngImage); | 54 SkRawCodec(SkDngImage* dngImage); |
| 55 | 55 |
| 56 SkAutoTDelete<SkDngImage> fDngImage; | 56 SkAutoTDelete<SkDngImage> fDngImage; |
| 57 | 57 |
| 58 typedef SkCodec INHERITED; | 58 typedef SkCodec INHERITED; |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 #endif | 61 #endif |
| OLD | NEW |