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

Side by Side Diff: dm/DMSrcSink.h

Issue 1530933003: Use possible read_partial_scanlines() API in SkJpegCodec (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Response to comments and further testing Created 5 years 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 99
100 private: 100 private:
101 skiagm::GMRegistry::Factory fFactory; 101 skiagm::GMRegistry::Factory fFactory;
102 }; 102 };
103 103
104 class CodecSrc : public Src { 104 class CodecSrc : public Src {
105 public: 105 public:
106 enum Mode { 106 enum Mode {
107 kCodec_Mode, 107 kCodec_Mode,
108 kScanline_Mode, 108 kScanline_Mode,
109 kStripe_Mode, // Tests the skipping of scanlines 109 kTile_Mode, // Tests subset decoding optimizations
110 kSubset_Mode, // For codecs that support subsets directly. 110 kSubset_Mode, // For codecs that support subsets directly.
111 }; 111 };
112 enum DstColorType { 112 enum DstColorType {
113 kGetFromCanvas_DstColorType, 113 kGetFromCanvas_DstColorType,
114 kIndex8_Always_DstColorType, 114 kIndex8_Always_DstColorType,
115 kGrayscale_Always_DstColorType, 115 kGrayscale_Always_DstColorType,
116 }; 116 };
117 CodecSrc(Path, Mode, DstColorType, float); 117 CodecSrc(Path, Mode, DstColorType, float);
118 118
119 Error draw(SkCanvas*) const override; 119 Error draw(SkCanvas*) const override;
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 360
361 class ViaTwice : public Via { 361 class ViaTwice : public Via {
362 public: 362 public:
363 explicit ViaTwice(Sink* sink) : Via(sink) {} 363 explicit ViaTwice(Sink* sink) : Via(sink) {}
364 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; 364 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override;
365 }; 365 };
366 366
367 } // namespace DM 367 } // namespace DM
368 368
369 #endif//DMSrcSink_DEFINED 369 #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