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

Side by Side Diff: dm/DMSrcSink.h

Issue 1549473003: Add getYUV8Planes() API to SkCodec (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 11 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 public: 104 public:
105 enum Mode { 105 enum Mode {
106 kCodec_Mode, 106 kCodec_Mode,
107 // We choose to test only one mode with zero initialized memory. 107 // We choose to test only one mode with zero initialized memory.
108 // This will exercise all of the interesting cases in SkSwizzler 108 // This will exercise all of the interesting cases in SkSwizzler
109 // without doubling the size of our test suite. 109 // without doubling the size of our test suite.
110 kCodecZeroInit_Mode, 110 kCodecZeroInit_Mode,
111 kScanline_Mode, 111 kScanline_Mode,
112 kStripe_Mode, // Tests the skipping of scanlines 112 kStripe_Mode, // Tests the skipping of scanlines
113 kSubset_Mode, // For codecs that support subsets directly. 113 kSubset_Mode, // For codecs that support subsets directly.
114 kGen_Mode, // Test SkCodecImageGenerator (includes YUV)
114 }; 115 };
115 enum DstColorType { 116 enum DstColorType {
116 kGetFromCanvas_DstColorType, 117 kGetFromCanvas_DstColorType,
117 kIndex8_Always_DstColorType, 118 kIndex8_Always_DstColorType,
118 kGrayscale_Always_DstColorType, 119 kGrayscale_Always_DstColorType,
119 }; 120 };
120 CodecSrc(Path, Mode, DstColorType, float); 121 CodecSrc(Path, Mode, DstColorType, float);
121 122
122 Error draw(SkCanvas*) const override; 123 Error draw(SkCanvas*) const override;
123 SkISize size() const override; 124 SkISize size() const override;
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 363
363 class ViaTwice : public Via { 364 class ViaTwice : public Via {
364 public: 365 public:
365 explicit ViaTwice(Sink* sink) : Via(sink) {} 366 explicit ViaTwice(Sink* sink) : Via(sink) {}
366 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; 367 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override;
367 }; 368 };
368 369
369 } // namespace DM 370 } // namespace DM
370 371
371 #endif//DMSrcSink_DEFINED 372 #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