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

Side by Side Diff: dm/DMSrcSink.h

Issue 1157153003: Scanline Subset Mode for DM Correctness Test (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: converting drawBitmap inputs from int to scalar Created 5 years, 7 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 Name name() const override; 87 Name name() const override;
88 private: 88 private:
89 skiagm::GMRegistry::Factory fFactory; 89 skiagm::GMRegistry::Factory fFactory;
90 }; 90 };
91 91
92 class CodecSrc : public Src { 92 class CodecSrc : public Src {
93 public: 93 public:
94 enum Mode { 94 enum Mode {
95 kNormal_Mode, 95 kNormal_Mode,
96 kScanline_Mode, 96 kScanline_Mode,
97 kScanline_Subset_Mode,
97 }; 98 };
98 enum DstColorType { 99 enum DstColorType {
99 kGetFromCanvas_DstColorType, 100 kGetFromCanvas_DstColorType,
100 kIndex8_Always_DstColorType, 101 kIndex8_Always_DstColorType,
101 kGrayscale_Always_DstColorType, 102 kGrayscale_Always_DstColorType,
102 }; 103 };
103 CodecSrc(Path, Mode, DstColorType); 104 CodecSrc(Path, Mode, DstColorType);
104 105
105 Error draw(SkCanvas*) const override; 106 Error draw(SkCanvas*) const override;
106 SkISize size() const override; 107 SkISize size() const override;
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 281
281 class ViaTwice : public Via { 282 class ViaTwice : public Via {
282 public: 283 public:
283 explicit ViaTwice(Sink* sink) : Via(sink) {} 284 explicit ViaTwice(Sink* sink) : Via(sink) {}
284 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; 285 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override;
285 }; 286 };
286 287
287 } // namespace DM 288 } // namespace DM
288 289
289 #endif//DMSrcSink_DEFINED 290 #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