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

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

Issue 2335203002: Implement Fill() for incomplete decodes to RGBA_F16 (Closed)
Patch Set: Fix win builds Created 4 years, 3 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/SkMaskSwizzler.h ('k') | src/codec/SkPngCodec.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 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 #include "SkCodec.h" 8 #include "SkCodec.h"
9 #include "SkColorSpaceXform.h" 9 #include "SkColorSpaceXform.h"
10 #include "SkColorTable.h" 10 #include "SkColorTable.h"
(...skipping 25 matching lines...) Expand all
36 36
37 explicit operator bool() const { return fPtr != nullptr; } 37 explicit operator bool() const { return fPtr != nullptr; }
38 38
39 void* fPtr; 39 void* fPtr;
40 }; 40 };
41 41
42 Result onGetPixels(const SkImageInfo&, void*, size_t, const Options&, SkPMCo lor*, int*, int*) 42 Result onGetPixels(const SkImageInfo&, void*, size_t, const Options&, SkPMCo lor*, int*, int*)
43 override; 43 override;
44 SkEncodedFormat onGetEncodedFormat() const override { return kPNG_SkEncodedF ormat; } 44 SkEncodedFormat onGetEncodedFormat() const override { return kPNG_SkEncodedF ormat; }
45 bool onRewind() override; 45 bool onRewind() override;
46 uint32_t onGetFillValue(SkColorType) const override; 46 uint64_t onGetFillValue(const SkImageInfo&) const override;
47 47
48 // Helper to set up swizzler, color xforms, and color table. Also calls png_ read_update_info. 48 // Helper to set up swizzler, color xforms, and color table. Also calls png_ read_update_info.
49 bool initializeXforms(const SkImageInfo& dstInfo, const Options&, SkPMColor* colorPtr, 49 bool initializeXforms(const SkImageInfo& dstInfo, const Options&, SkPMColor* colorPtr,
50 int* colorCount); 50 int* colorCount);
51 void initializeSwizzler(const SkImageInfo& dstInfo, const Options&); 51 void initializeSwizzler(const SkImageInfo& dstInfo, const Options&);
52 SkSampler* getSampler(bool createIfNecessary) override; 52 SkSampler* getSampler(bool createIfNecessary) override;
53 void allocateStorage(const SkImageInfo& dstInfo); 53 void allocateStorage(const SkImageInfo& dstInfo);
54 void applyXformRow(void* dst, const void* src, SkColorType, SkAlphaType, int width); 54 void applyXformRow(void* dst, const void* src, SkColorType, SkAlphaType, int width);
55 55
56 virtual int readRows(const SkImageInfo& dstInfo, void* dst, size_t rowBytes, int count, 56 virtual int readRows(const SkImageInfo& dstInfo, void* dst, size_t rowBytes, int count,
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 kSwizzleColor_XformMode, 88 kSwizzleColor_XformMode,
89 }; 89 };
90 90
91 bool createColorTable(const SkImageInfo& dstInfo, int* ctableCount); 91 bool createColorTable(const SkImageInfo& dstInfo, int* ctableCount);
92 void destroyReadStruct(); 92 void destroyReadStruct();
93 93
94 XformMode fXformMode; 94 XformMode fXformMode;
95 95
96 typedef SkCodec INHERITED; 96 typedef SkCodec INHERITED;
97 }; 97 };
OLDNEW
« no previous file with comments | « src/codec/SkMaskSwizzler.h ('k') | src/codec/SkPngCodec.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698