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

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

Issue 1641273003: Support decoding opaque to *premul (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Update SkMaskSwizzler to support opaque to premul Created 4 years, 10 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
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 "SkBmpCodec.h" 8 #include "SkBmpCodec.h"
9 #include "SkColorTable.h" 9 #include "SkColorTable.h"
10 #include "SkImageInfo.h" 10 #include "SkImageInfo.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 48
49 bool onInIco() const override { 49 bool onInIco() const override {
50 return fInIco; 50 return fInIco;
51 } 51 }
52 52
53 SkCodec::Result prepareToDecode(const SkImageInfo& dstInfo, 53 SkCodec::Result prepareToDecode(const SkImageInfo& dstInfo,
54 const SkCodec::Options& options, SkPMColor inputColorPtr[], 54 const SkCodec::Options& options, SkPMColor inputColorPtr[],
55 int* inputColorCount) override; 55 int* inputColorCount) override;
56 56
57 57
58 uint32_t onGetFillValue(SkColorType colorType, SkAlphaType alphaType) const override; 58 uint32_t onGetFillValue(SkColorType) const override;
59 59
60 SkSampler* getSampler(bool createIfNecessary) override { 60 SkSampler* getSampler(bool createIfNecessary) override {
61 SkASSERT(fSwizzler); 61 SkASSERT(fSwizzler);
62 return fSwizzler; 62 return fSwizzler;
63 } 63 }
64 64
65 private: 65 private:
66 66
67 /* 67 /*
68 * Creates the color table 68 * Creates the color table
(...skipping 19 matching lines...) Expand all
88 const uint32_t fBytesPerColor; 88 const uint32_t fBytesPerColor;
89 const uint32_t fOffset; 89 const uint32_t fOffset;
90 SkAutoTDelete<SkSwizzler> fSwizzler; 90 SkAutoTDelete<SkSwizzler> fSwizzler;
91 const size_t fSrcRowBytes; 91 const size_t fSrcRowBytes;
92 SkAutoTDeleteArray<uint8_t> fSrcBuffer; 92 SkAutoTDeleteArray<uint8_t> fSrcBuffer;
93 const bool fInIco; 93 const bool fInIco;
94 const size_t fAndMaskRowBytes; // only used for fInIc o decodes 94 const size_t fAndMaskRowBytes; // only used for fInIc o decodes
95 95
96 typedef SkBmpCodec INHERITED; 96 typedef SkBmpCodec INHERITED;
97 }; 97 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698