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

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

Issue 1372973002: Move all knowledge of X sampling into SkScaledCodec (Closed) Base URL: https://skia.googlesource.com/skia.git@codecSDmerge
Patch Set: Attempt to fix RLE overflow Created 5 years, 2 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/SkBmpCodec.cpp ('k') | src/codec/SkBmpRLECodec.h » ('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 "SkBmpCodec.h" 8 #include "SkBmpCodec.h"
9 #include "SkImageInfo.h" 9 #include "SkImageInfo.h"
10 #include "SkMaskSwizzler.h" 10 #include "SkMaskSwizzler.h"
(...skipping 27 matching lines...) Expand all
38 size_t dstRowBytes, const Options&, SkPMColor*, 38 size_t dstRowBytes, const Options&, SkPMColor*,
39 int*) override; 39 int*) override;
40 40
41 SkCodec::Result prepareToDecode(const SkImageInfo& dstInfo, 41 SkCodec::Result prepareToDecode(const SkImageInfo& dstInfo,
42 const SkCodec::Options& options, SkPMColor inputColorPtr[], 42 const SkCodec::Options& options, SkPMColor inputColorPtr[],
43 int* inputColorCount) override; 43 int* inputColorCount) override;
44 44
45 private: 45 private:
46 46
47 bool initializeSwizzler(const SkImageInfo& dstInfo); 47 bool initializeSwizzler(const SkImageInfo& dstInfo);
48 SkSampler* getSampler() override { return fMaskSwizzler; }
48 49
49 Result decodeRows(const SkImageInfo& dstInfo, void* dst, size_t dstRowBytes, 50 Result decodeRows(const SkImageInfo& dstInfo, void* dst, size_t dstRowBytes,
50 const Options& opts) override; 51 const Options& opts) override;
51 52
52 SkAutoTDelete<SkMasks> fMasks; // owned 53 SkAutoTDelete<SkMasks> fMasks; // owned
53 SkAutoTDelete<SkMaskSwizzler> fMaskSwizzler; 54 SkAutoTDelete<SkMaskSwizzler> fMaskSwizzler;
54 const size_t fSrcRowBytes; 55 const size_t fSrcRowBytes;
55 SkAutoTDeleteArray<uint8_t> fSrcBuffer; 56 SkAutoTDeleteArray<uint8_t> fSrcBuffer;
56 57
57 typedef SkBmpCodec INHERITED; 58 typedef SkBmpCodec INHERITED;
58 }; 59 };
OLDNEW
« no previous file with comments | « src/codec/SkBmpCodec.cpp ('k') | src/codec/SkBmpRLECodec.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698