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

Side by Side Diff: dm/DMSrcSink.h

Issue 1976303002: Drop AndroidCodecSrc::kDivisor_Mode (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 7 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 | « dm/DM.cpp ('k') | dm/DMSrcSink.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 #ifndef DMSrcSink_DEFINED 8 #ifndef DMSrcSink_DEFINED
9 #define DMSrcSink_DEFINED 9 #define DMSrcSink_DEFINED
10 10
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 Path fPath; 130 Path fPath;
131 Mode fMode; 131 Mode fMode;
132 DstColorType fDstColorType; 132 DstColorType fDstColorType;
133 SkAlphaType fDstAlphaType; 133 SkAlphaType fDstAlphaType;
134 float fScale; 134 float fScale;
135 bool fRunSerially; 135 bool fRunSerially;
136 }; 136 };
137 137
138 class AndroidCodecSrc : public Src { 138 class AndroidCodecSrc : public Src {
139 public: 139 public:
140 enum Mode { 140 AndroidCodecSrc(Path, CodecSrc::DstColorType, SkAlphaType, int sampleSize);
141 kFullImage_Mode,
142 // Splits the image into multiple subsets using a divisor and decodes th e subsets
143 // separately.
144 kDivisor_Mode,
145 };
146
147 AndroidCodecSrc(Path, Mode, CodecSrc::DstColorType, SkAlphaType, int sampleS ize);
148 141
149 Error draw(SkCanvas*) const override; 142 Error draw(SkCanvas*) const override;
150 SkISize size() const override; 143 SkISize size() const override;
151 Name name() const override; 144 Name name() const override;
152 bool veto(SinkFlags) const override; 145 bool veto(SinkFlags) const override;
153 bool serial() const override { return fRunSerially; } 146 bool serial() const override { return fRunSerially; }
154 private: 147 private:
155 Path fPath; 148 Path fPath;
156 Mode fMode;
157 CodecSrc::DstColorType fDstColorType; 149 CodecSrc::DstColorType fDstColorType;
158 SkAlphaType fDstAlphaType; 150 SkAlphaType fDstAlphaType;
159 int fSampleSize; 151 int fSampleSize;
160 bool fRunSerially; 152 bool fRunSerially;
161 }; 153 };
162 154
163 // Allows for testing of various implementations of Android's BitmapRegionDecode r 155 // Allows for testing of various implementations of Android's BitmapRegionDecode r
164 class BRDSrc : public Src { 156 class BRDSrc : public Src {
165 public: 157 public:
166 enum Mode { 158 enum Mode {
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 384
393 class ViaMojo : public Via { 385 class ViaMojo : public Via {
394 public: 386 public:
395 explicit ViaMojo(Sink* sink) : Via(sink) {} 387 explicit ViaMojo(Sink* sink) : Via(sink) {}
396 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; 388 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override;
397 }; 389 };
398 390
399 } // namespace DM 391 } // namespace DM
400 392
401 #endif//DMSrcSink_DEFINED 393 #endif//DMSrcSink_DEFINED
OLDNEW
« no previous file with comments | « dm/DM.cpp ('k') | dm/DMSrcSink.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698