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

Side by Side Diff: dm/DMSrcSink.h

Issue 1240143002: Add the ability to decode a subset to SkCodec. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix some conversion warning/errors. Created 5 years, 5 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 skiagm::GMRegistry::Factory fFactory; 92 skiagm::GMRegistry::Factory fFactory;
93 }; 93 };
94 94
95 class CodecSrc : public Src { 95 class CodecSrc : public Src {
96 public: 96 public:
97 enum Mode { 97 enum Mode {
98 kNormal_Mode, 98 kNormal_Mode,
99 kScanline_Mode, 99 kScanline_Mode,
100 kScanline_Subset_Mode, 100 kScanline_Subset_Mode,
101 kStripe_Mode, // Tests the skipping of scanlines 101 kStripe_Mode, // Tests the skipping of scanlines
102 kSubset_Mode, // For codecs that support subsets directly.
102 }; 103 };
103 enum DstColorType { 104 enum DstColorType {
104 kGetFromCanvas_DstColorType, 105 kGetFromCanvas_DstColorType,
105 kIndex8_Always_DstColorType, 106 kIndex8_Always_DstColorType,
106 kGrayscale_Always_DstColorType, 107 kGrayscale_Always_DstColorType,
107 }; 108 };
108 CodecSrc(Path, Mode, DstColorType, float); 109 CodecSrc(Path, Mode, DstColorType, float);
109 110
110 Error draw(SkCanvas*) const override; 111 Error draw(SkCanvas*) const override;
111 SkISize size() const override; 112 SkISize size() const override;
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 287
287 class ViaTwice : public Via { 288 class ViaTwice : public Via {
288 public: 289 public:
289 explicit ViaTwice(Sink* sink) : Via(sink) {} 290 explicit ViaTwice(Sink* sink) : Via(sink) {}
290 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; 291 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override;
291 }; 292 };
292 293
293 } // namespace DM 294 } // namespace DM
294 295
295 #endif//DMSrcSink_DEFINED 296 #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