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

Side by Side Diff: dm/DMSrcSink.h

Issue 1327433003: Various improvements to CodecSrc testing in dm (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 3 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
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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 Name name() const override; 95 Name name() const override;
96 void modifyGrContextOptions(GrContextOptions* options) const override; 96 void modifyGrContextOptions(GrContextOptions* options) const override;
97 97
98 private: 98 private:
99 skiagm::GMRegistry::Factory fFactory; 99 skiagm::GMRegistry::Factory fFactory;
100 }; 100 };
101 101
102 class CodecSrc : public Src { 102 class CodecSrc : public Src {
103 public: 103 public:
104 enum Mode { 104 enum Mode {
105 kNormal_Mode, 105 kScaledCodec_Mode,
106 kCodec_Mode,
106 kScanline_Mode, 107 kScanline_Mode,
107 kScanline_Subset_Mode, 108 kScanline_Subset_Mode,
108 kStripe_Mode, // Tests the skipping of scanlines 109 kStripe_Mode, // Tests the skipping of scanlines
109 kSubset_Mode, // For codecs that support subsets directly. 110 kSubset_Mode, // For codecs that support subsets directly.
110 }; 111 };
111 enum DstColorType { 112 enum DstColorType {
112 kGetFromCanvas_DstColorType, 113 kGetFromCanvas_DstColorType,
113 kIndex8_Always_DstColorType, 114 kIndex8_Always_DstColorType,
114 kGrayscale_Always_DstColorType, 115 kGrayscale_Always_DstColorType,
115 }; 116 };
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 309
309 class ViaTwice : public Via { 310 class ViaTwice : public Via {
310 public: 311 public:
311 explicit ViaTwice(Sink* sink) : Via(sink) {} 312 explicit ViaTwice(Sink* sink) : Via(sink) {}
312 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; 313 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override;
313 }; 314 };
314 315
315 } // namespace DM 316 } // namespace DM
316 317
317 #endif//DMSrcSink_DEFINED 318 #endif//DMSrcSink_DEFINED
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698