Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: src/codec/SkRawCodec.h

Issue 1782913002: Rename the kRAW_SkEncodedFormat to kDNG_SkEncodedFormat as it is actually only used for DNG for… (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix code formatting Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/codec/SkAndroidCodec.cpp ('k') | tools/get_images_from_skps.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « src/codec/SkAndroidCodec.cpp ('k') | tools/get_images_from_skps.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698