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

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

Issue 2246143002: Support color xforms for kIndex8 pngs (Closed) Base URL: https://skia.googlesource.com/skia.git@xformpremul
Patch Set: Response to comments Created 4 years, 4 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/SkCodecPriv.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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 std::unique_ptr<SkColorSpaceXform> fColorXform; 59 std::unique_ptr<SkColorSpaceXform> fColorXform;
60 SkAutoTMalloc<uint8_t> fStorage; 60 SkAutoTMalloc<uint8_t> fStorage;
61 uint8_t* fSwizzlerSrcRow; 61 uint8_t* fSwizzlerSrcRow;
62 uint32_t* fColorXformSrcRow; 62 uint32_t* fColorXformSrcRow;
63 size_t fSrcRowBytes; 63 size_t fSrcRowBytes;
64 64
65 const int fNumberPasses; 65 const int fNumberPasses;
66 int fBitDepth; 66 int fBitDepth;
67 67
68 private: 68 private:
69 bool createColorTable(SkColorType dstColorType, bool premultiply, int* ctabl eCount); 69 bool createColorTable(const SkImageInfo& dstInfo, int* ctableCount);
70 void destroyReadStruct(); 70 void destroyReadStruct();
71 71
72 typedef SkCodec INHERITED; 72 typedef SkCodec INHERITED;
73 }; 73 };
OLDNEW
« no previous file with comments | « src/codec/SkCodecPriv.h ('k') | src/codec/SkPngCodec.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698