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

Side by Side Diff: dm/DMSrcSink.h

Issue 1641663002: Stop testing SkImageDecoder in DM/nanobench (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Reblacklist some interlaced images 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
« 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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 Name name() const override; 173 Name name() const override;
174 bool veto(SinkFlags) const override; 174 bool veto(SinkFlags) const override;
175 private: 175 private:
176 Path fPath; 176 Path fPath;
177 SkBitmapRegionDecoder::Strategy fStrategy; 177 SkBitmapRegionDecoder::Strategy fStrategy;
178 Mode fMode; 178 Mode fMode;
179 CodecSrc::DstColorType fDstColorType; 179 CodecSrc::DstColorType fDstColorType;
180 uint32_t fSampleSize; 180 uint32_t fSampleSize;
181 }; 181 };
182 182
183 class ImageSrc : public Src {
184 public:
185 explicit ImageSrc(Path path);
186
187 Error draw(SkCanvas*) const override;
188 SkISize size() const override;
189 Name name() const override;
190 bool veto(SinkFlags) const override;
191 private:
192 Path fPath;
193 };
194
195 class SKPSrc : public Src { 183 class SKPSrc : public Src {
196 public: 184 public:
197 explicit SKPSrc(Path path); 185 explicit SKPSrc(Path path);
198 186
199 Error draw(SkCanvas*) const override; 187 Error draw(SkCanvas*) const override;
200 SkISize size() const override; 188 SkISize size() const override;
201 Name name() const override; 189 Name name() const override;
202 private: 190 private:
203 Path fPath; 191 Path fPath;
204 }; 192 };
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 351
364 class ViaTwice : public Via { 352 class ViaTwice : public Via {
365 public: 353 public:
366 explicit ViaTwice(Sink* sink) : Via(sink) {} 354 explicit ViaTwice(Sink* sink) : Via(sink) {}
367 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; 355 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override;
368 }; 356 };
369 357
370 } // namespace DM 358 } // namespace DM
371 359
372 #endif//DMSrcSink_DEFINED 360 #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