blob: 42f0e6da3629e341d9276e20966c62244e155753 [file] [log] [blame]
scroggo478652e2015-03-25 07:11:02 -07001/*
2 * Copyright 2015 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
mtklein748ca3b2015-01-15 10:56:12 -08008#ifndef DMSrcSink_DEFINED
9#define DMSrcSink_DEFINED
10
11#include "DMGpuSupport.h"
12#include "SkBBHFactory.h"
13#include "SkBBoxHierarchy.h"
14#include "SkBitmap.h"
msarett5cb48852015-11-06 08:56:32 -080015#include "SkBitmapRegionDecoder.h"
mtklein748ca3b2015-01-15 10:56:12 -080016#include "SkCanvas.h"
17#include "SkData.h"
mtklein748ca3b2015-01-15 10:56:12 -080018#include "SkPicture.h"
mtklein748ca3b2015-01-15 10:56:12 -080019#include "gm.h"
20
21namespace DM {
22
23// This is just convenience. It lets you use either return "foo" or return SkStringPrintf(...).
24struct ImplicitString : public SkString {
25 template <typename T>
26 ImplicitString(const T& s) : SkString(s) {}
msarett9e707a02015-09-01 14:57:57 -070027 ImplicitString() : SkString("") {}
mtklein748ca3b2015-01-15 10:56:12 -080028};
mtklein748ca3b2015-01-15 10:56:12 -080029typedef ImplicitString Name;
mtklein8d17a132015-01-30 11:42:31 -080030typedef ImplicitString Path;
mtklein748ca3b2015-01-15 10:56:12 -080031
mtklein4089ef72015-03-05 08:40:28 -080032class Error {
33public:
34 Error(const SkString& s) : fMsg(s), fFatal(!this->isEmpty()) {}
35 Error(const char* s) : fMsg(s), fFatal(!this->isEmpty()) {}
36
37 Error(const Error&) = default;
38 Error& operator=(const Error&) = default;
39
40 static Error Nonfatal(const SkString& s) { return Nonfatal(s.c_str()); }
41 static Error Nonfatal(const char* s) {
42 Error e(s);
43 e.fFatal = false;
44 return e;
45 }
46
47 const char* c_str() const { return fMsg.c_str(); }
48 bool isEmpty() const { return fMsg.isEmpty(); }
49 bool isFatal() const { return fFatal; }
50
51private:
52 SkString fMsg;
53 bool fFatal;
54};
55
mtklein99cab4e2015-07-31 06:43:04 -070056struct SinkFlags {
57 enum { kNull, kGPU, kVector, kRaster } type;
58 enum { kDirect, kIndirect } approach;
59};
mtkleine0effd62015-07-29 06:37:28 -070060
mtklein748ca3b2015-01-15 10:56:12 -080061struct Src {
mtklein748ca3b2015-01-15 10:56:12 -080062 virtual ~Src() {}
63 virtual Error SK_WARN_UNUSED_RESULT draw(SkCanvas*) const = 0;
64 virtual SkISize size() const = 0;
65 virtual Name name() const = 0;
bsalomon4ee6bd82015-05-27 13:23:23 -070066 virtual void modifyGrContextOptions(GrContextOptions* options) const {}
mtklein99cab4e2015-07-31 06:43:04 -070067 virtual bool veto(SinkFlags) const { return false; }
mtklein21eaf3b2016-02-08 12:39:59 -080068
69 // Force Tasks using this Src to run on the main thread?
70 virtual bool serial() const { return false; }
mtklein748ca3b2015-01-15 10:56:12 -080071};
72
73struct Sink {
74 virtual ~Sink() {}
mtkleinb9eb4ac2015-02-02 18:26:03 -080075 // You may write to either the bitmap or stream. If you write to log, we'll print that out.
76 virtual Error SK_WARN_UNUSED_RESULT draw(const Src&, SkBitmap*, SkWStream*, SkString* log)
77 const = 0;
mtklein21eaf3b2016-02-08 12:39:59 -080078
79 // Force Tasks using this Sink to run on the main thread?
80 virtual bool serial() const { return false; }
mtklein748ca3b2015-01-15 10:56:12 -080081
82 // File extension for the content draw() outputs, e.g. "png", "pdf".
83 virtual const char* fileExtension() const = 0;
mtklein99cab4e2015-07-31 06:43:04 -070084
85 virtual SinkFlags flags() const = 0;
mtklein748ca3b2015-01-15 10:56:12 -080086};
87
mtklein748ca3b2015-01-15 10:56:12 -080088/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
89
mtklein748ca3b2015-01-15 10:56:12 -080090class GMSrc : public Src {
91public:
92 explicit GMSrc(skiagm::GMRegistry::Factory);
93
mtklein36352bf2015-03-25 18:17:31 -070094 Error draw(SkCanvas*) const override;
95 SkISize size() const override;
96 Name name() const override;
bsalomon4ee6bd82015-05-27 13:23:23 -070097 void modifyGrContextOptions(GrContextOptions* options) const override;
98
mtklein748ca3b2015-01-15 10:56:12 -080099private:
100 skiagm::GMRegistry::Factory fFactory;
101};
102
scroggo9b77ddd2015-03-19 06:03:39 -0700103class CodecSrc : public Src {
104public:
scroggo9c59ebc2015-03-25 13:48:49 -0700105 enum Mode {
msarett9e707a02015-09-01 14:57:57 -0700106 kCodec_Mode,
msarettbb25b532016-01-13 09:31:39 -0800107 // We choose to test only one mode with zero initialized memory.
108 // This will exercise all of the interesting cases in SkSwizzler
109 // without doubling the size of our test suite.
110 kCodecZeroInit_Mode,
scroggo9c59ebc2015-03-25 13:48:49 -0700111 kScanline_Mode,
msarett0a242972015-06-11 14:27:27 -0700112 kStripe_Mode, // Tests the skipping of scanlines
msarett91c22b22016-02-22 12:27:46 -0800113 kCroppedScanline_Mode, // Tests (jpeg) cropped scanline optimization
scroggob636b452015-07-22 07:16:20 -0700114 kSubset_Mode, // For codecs that support subsets directly.
scroggo9c59ebc2015-03-25 13:48:49 -0700115 };
msarett438b2ad2015-04-09 12:43:10 -0700116 enum DstColorType {
117 kGetFromCanvas_DstColorType,
118 kIndex8_Always_DstColorType,
119 kGrayscale_Always_DstColorType,
msarett34e0ec42016-04-22 16:27:24 -0700120 kNonNative8888_Always_DstColorType,
msarett438b2ad2015-04-09 12:43:10 -0700121 };
scroggoc5560be2016-02-03 09:42:42 -0800122 CodecSrc(Path, Mode, DstColorType, SkAlphaType, float);
scroggo9b77ddd2015-03-19 06:03:39 -0700123
mtklein36352bf2015-03-25 18:17:31 -0700124 Error draw(SkCanvas*) const override;
125 SkISize size() const override;
126 Name name() const override;
mtklein99cab4e2015-07-31 06:43:04 -0700127 bool veto(SinkFlags) const override;
scroggo3ac66e92016-02-08 15:09:48 -0800128 bool serial() const override { return fRunSerially; }
scroggo9b77ddd2015-03-19 06:03:39 -0700129private:
msarett9e707a02015-09-01 14:57:57 -0700130 Path fPath;
131 Mode fMode;
132 DstColorType fDstColorType;
scroggoc5560be2016-02-03 09:42:42 -0800133 SkAlphaType fDstAlphaType;
msarett9e707a02015-09-01 14:57:57 -0700134 float fScale;
scroggo3ac66e92016-02-08 15:09:48 -0800135 bool fRunSerially;
scroggo9b77ddd2015-03-19 06:03:39 -0700136};
137
msarett3d9d7a72015-10-21 10:27:10 -0700138class AndroidCodecSrc : public Src {
139public:
scroggof8dc9df2016-05-16 09:04:13 -0700140 AndroidCodecSrc(Path, CodecSrc::DstColorType, SkAlphaType, int sampleSize);
msarett3d9d7a72015-10-21 10:27:10 -0700141
142 Error draw(SkCanvas*) const override;
143 SkISize size() const override;
144 Name name() const override;
145 bool veto(SinkFlags) const override;
scroggo3ac66e92016-02-08 15:09:48 -0800146 bool serial() const override { return fRunSerially; }
msarett3d9d7a72015-10-21 10:27:10 -0700147private:
148 Path fPath;
msarett3d9d7a72015-10-21 10:27:10 -0700149 CodecSrc::DstColorType fDstColorType;
scroggoc5560be2016-02-03 09:42:42 -0800150 SkAlphaType fDstAlphaType;
msarett3d9d7a72015-10-21 10:27:10 -0700151 int fSampleSize;
scroggo3ac66e92016-02-08 15:09:48 -0800152 bool fRunSerially;
msarett3d9d7a72015-10-21 10:27:10 -0700153};
154
msaretta5783ae2015-09-08 15:35:32 -0700155// Allows for testing of various implementations of Android's BitmapRegionDecoder
156class BRDSrc : public Src {
157public:
158 enum Mode {
159 // Decode the entire image as one region.
160 kFullImage_Mode,
161 // Splits the image into multiple regions using a divisor and decodes the regions
162 // separately. Also, this test adds a border of a few pixels to each of the regions
163 // that it is decoding. This tests the behavior when a client asks for a region that
164 // does not fully fit in the image.
165 kDivisor_Mode,
166 };
167
msarettd1227a72016-05-18 06:23:57 -0700168 BRDSrc(Path, Mode, CodecSrc::DstColorType, uint32_t);
msaretta5783ae2015-09-08 15:35:32 -0700169
msaretta5783ae2015-09-08 15:35:32 -0700170 Error draw(SkCanvas*) const override;
171 SkISize size() const override;
172 Name name() const override;
173 bool veto(SinkFlags) const override;
174private:
175 Path fPath;
msaretta5783ae2015-09-08 15:35:32 -0700176 Mode fMode;
177 CodecSrc::DstColorType fDstColorType;
178 uint32_t fSampleSize;
179};
scroggo9b77ddd2015-03-19 06:03:39 -0700180
msarett18976312016-03-09 14:20:58 -0800181class ImageGenSrc : public Src {
182public:
183 enum Mode {
184 kCodec_Mode, // Use CodecImageGenerator
185 kPlatform_Mode, // Uses CG or WIC
186 };
187 ImageGenSrc(Path, Mode, SkAlphaType, bool);
188
189 Error draw(SkCanvas*) const override;
190 SkISize size() const override;
191 Name name() const override;
192 bool veto(SinkFlags) const override;
193 bool serial() const override { return fRunSerially; }
194private:
195 Path fPath;
196 Mode fMode;
197 SkAlphaType fDstAlphaType;
198 bool fIsGpu;
199 bool fRunSerially;
200};
201
msarett69deca82016-04-29 09:38:40 -0700202class ColorCodecSrc : public Src {
203public:
204 enum Mode {
205 // Mimic legacy behavior and apply no color correction.
206 kBaseline_Mode,
msarett888dc162016-05-23 10:21:17 -0700207
208 // Color correct images into a specific dst color space. If you happen to have this
209 // monitor, you're in luck! The unmarked outputs of this test should display
210 // correctly on this monitor in the Chrome browser. If not, it's useful to know
211 // that this monitor has a profile that is fairly similar to Adobe RGB.
212 // TODO (msarett): Should we add a new test with a new monitor and verify that outputs
213 // look identical on two different dsts?
214 kDst_HPZR30w_Mode,
msarett9876ac52016-06-01 14:47:18 -0700215
216#if !defined(GOOGLE3)
217 // Use QCMS for color correction.
218 kQCMS_HPZR30w_Mode,
219#endif
msarett69deca82016-04-29 09:38:40 -0700220 };
221
msarett9876ac52016-06-01 14:47:18 -0700222 ColorCodecSrc(Path, Mode);
msarett69deca82016-04-29 09:38:40 -0700223
224 Error draw(SkCanvas*) const override;
225 SkISize size() const override;
226 Name name() const override;
227 bool veto(SinkFlags) const override;
228private:
229 Path fPath;
230 Mode fMode;
231};
232
mtklein748ca3b2015-01-15 10:56:12 -0800233class SKPSrc : public Src {
234public:
mtklein8d17a132015-01-30 11:42:31 -0800235 explicit SKPSrc(Path path);
mtklein748ca3b2015-01-15 10:56:12 -0800236
mtklein36352bf2015-03-25 18:17:31 -0700237 Error draw(SkCanvas*) const override;
238 SkISize size() const override;
239 Name name() const override;
mtklein748ca3b2015-01-15 10:56:12 -0800240private:
mtklein8d17a132015-01-30 11:42:31 -0800241 Path fPath;
mtklein748ca3b2015-01-15 10:56:12 -0800242};
243
244/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
245
mtkleinad66f9b2015-02-13 15:11:10 -0800246class NullSink : public Sink {
247public:
248 NullSink() {}
249
mtklein36352bf2015-03-25 18:17:31 -0700250 Error draw(const Src& src, SkBitmap*, SkWStream*, SkString*) const override;
mtklein36352bf2015-03-25 18:17:31 -0700251 const char* fileExtension() const override { return ""; }
mtklein99cab4e2015-07-31 06:43:04 -0700252 SinkFlags flags() const override { return SinkFlags{ SinkFlags::kNull, SinkFlags::kDirect }; }
mtkleinad66f9b2015-02-13 15:11:10 -0800253};
254
255
mtklein748ca3b2015-01-15 10:56:12 -0800256class GPUSink : public Sink {
257public:
bsalomon85b4b532016-04-05 11:06:27 -0700258 GPUSink(sk_gpu_test::GrContextFactory::ContextType,
259 sk_gpu_test::GrContextFactory::ContextOptions,
brianosmand93c1202016-03-10 07:49:08 -0800260 int samples, bool diText, SkColorType colorType, SkColorProfileType profileType,
261 bool threaded);
mtklein748ca3b2015-01-15 10:56:12 -0800262
mtklein36352bf2015-03-25 18:17:31 -0700263 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override;
mtklein21eaf3b2016-02-08 12:39:59 -0800264 bool serial() const override { return !fThreaded; }
mtklein36352bf2015-03-25 18:17:31 -0700265 const char* fileExtension() const override { return "png"; }
mtklein99cab4e2015-07-31 06:43:04 -0700266 SinkFlags flags() const override { return SinkFlags{ SinkFlags::kGPU, SinkFlags::kDirect }; }
mtklein748ca3b2015-01-15 10:56:12 -0800267private:
bsalomon85b4b532016-04-05 11:06:27 -0700268 sk_gpu_test::GrContextFactory::ContextType fContextType;
269 sk_gpu_test::GrContextFactory::ContextOptions fContextOptions;
bsalomon3724e572016-03-30 18:56:19 -0700270 int fSampleCount;
271 bool fUseDIText;
272 SkColorType fColorType;
273 SkColorProfileType fProfileType;
274 bool fThreaded;
mtklein748ca3b2015-01-15 10:56:12 -0800275};
276
277class PDFSink : public Sink {
278public:
halcanary4b656662016-04-27 07:45:18 -0700279 PDFSink(bool pdfa = false) : fPDFA(pdfa) {}
mtklein36352bf2015-03-25 18:17:31 -0700280 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override;
mtklein36352bf2015-03-25 18:17:31 -0700281 const char* fileExtension() const override { return "pdf"; }
mtklein99cab4e2015-07-31 06:43:04 -0700282 SinkFlags flags() const override { return SinkFlags{ SinkFlags::kVector, SinkFlags::kDirect }; }
halcanary4b656662016-04-27 07:45:18 -0700283 bool fPDFA;
mtklein748ca3b2015-01-15 10:56:12 -0800284};
285
halcanary47ef4d52015-03-03 09:13:09 -0800286class XPSSink : public Sink {
287public:
288 XPSSink();
289
mtklein36352bf2015-03-25 18:17:31 -0700290 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override;
mtklein36352bf2015-03-25 18:17:31 -0700291 const char* fileExtension() const override { return "xps"; }
mtklein99cab4e2015-07-31 06:43:04 -0700292 SinkFlags flags() const override { return SinkFlags{ SinkFlags::kVector, SinkFlags::kDirect }; }
halcanary47ef4d52015-03-03 09:13:09 -0800293};
294
mtklein748ca3b2015-01-15 10:56:12 -0800295class RasterSink : public Sink {
296public:
mtklein27c3fdd2016-02-26 14:43:21 -0800297 explicit RasterSink(SkColorType, SkColorProfileType=kLinear_SkColorProfileType);
mtklein748ca3b2015-01-15 10:56:12 -0800298
mtklein36352bf2015-03-25 18:17:31 -0700299 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override;
mtklein36352bf2015-03-25 18:17:31 -0700300 const char* fileExtension() const override { return "png"; }
mtklein99cab4e2015-07-31 06:43:04 -0700301 SinkFlags flags() const override { return SinkFlags{ SinkFlags::kRaster, SinkFlags::kDirect }; }
mtklein748ca3b2015-01-15 10:56:12 -0800302private:
mtklein27c3fdd2016-02-26 14:43:21 -0800303 SkColorType fColorType;
304 SkColorProfileType fProfileType;
mtklein748ca3b2015-01-15 10:56:12 -0800305};
306
mtklein9c3f17d2015-01-28 11:35:18 -0800307class SKPSink : public Sink {
308public:
309 SKPSink();
310
mtklein36352bf2015-03-25 18:17:31 -0700311 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override;
mtklein36352bf2015-03-25 18:17:31 -0700312 const char* fileExtension() const override { return "skp"; }
mtklein99cab4e2015-07-31 06:43:04 -0700313 SinkFlags flags() const override { return SinkFlags{ SinkFlags::kVector, SinkFlags::kDirect }; }
mtklein9c3f17d2015-01-28 11:35:18 -0800314};
315
mtklein8a4527e2015-01-31 20:00:58 -0800316class SVGSink : public Sink {
317public:
318 SVGSink();
319
mtklein36352bf2015-03-25 18:17:31 -0700320 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override;
mtklein36352bf2015-03-25 18:17:31 -0700321 const char* fileExtension() const override { return "svg"; }
mtklein99cab4e2015-07-31 06:43:04 -0700322 SinkFlags flags() const override { return SinkFlags{ SinkFlags::kVector, SinkFlags::kDirect }; }
mtklein8a4527e2015-01-31 20:00:58 -0800323};
324
325
mtklein748ca3b2015-01-15 10:56:12 -0800326/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
327
mtklein78829242015-05-06 07:54:07 -0700328class Via : public Sink {
329public:
msarett62d3b102015-12-10 15:14:27 -0800330 explicit Via(Sink* sink) : fSink(sink) {}
mtklein78829242015-05-06 07:54:07 -0700331 const char* fileExtension() const override { return fSink->fileExtension(); }
mtklein21eaf3b2016-02-08 12:39:59 -0800332 bool serial() const override { return fSink->serial(); }
mtklein99cab4e2015-07-31 06:43:04 -0700333 SinkFlags flags() const override {
334 SinkFlags flags = fSink->flags();
335 flags.approach = SinkFlags::kIndirect;
336 return flags;
337 }
mtklein78829242015-05-06 07:54:07 -0700338protected:
339 SkAutoTDelete<Sink> fSink;
340};
341
342class ViaMatrix : public Via {
mtklein748ca3b2015-01-15 10:56:12 -0800343public:
msarett62d3b102015-12-10 15:14:27 -0800344 ViaMatrix(SkMatrix, Sink*);
mtklein36352bf2015-03-25 18:17:31 -0700345 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override;
mtklein748ca3b2015-01-15 10:56:12 -0800346private:
mtklein78829242015-05-06 07:54:07 -0700347 const SkMatrix fMatrix;
mtklein748ca3b2015-01-15 10:56:12 -0800348};
349
mtklein78829242015-05-06 07:54:07 -0700350class ViaUpright : public Via {
mtkleind603b222015-02-17 11:13:33 -0800351public:
msarett62d3b102015-12-10 15:14:27 -0800352 ViaUpright(SkMatrix, Sink*);
mtklein36352bf2015-03-25 18:17:31 -0700353 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override;
mtkleind603b222015-02-17 11:13:33 -0800354private:
mtklein78829242015-05-06 07:54:07 -0700355 const SkMatrix fMatrix;
mtkleind603b222015-02-17 11:13:33 -0800356};
357
mtklein78829242015-05-06 07:54:07 -0700358class ViaSerialization : public Via {
mtklein748ca3b2015-01-15 10:56:12 -0800359public:
msarett62d3b102015-12-10 15:14:27 -0800360 explicit ViaSerialization(Sink* sink) : Via(sink) {}
mtklein36352bf2015-03-25 18:17:31 -0700361 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override;
mtklein748ca3b2015-01-15 10:56:12 -0800362};
363
mtklein4a34ecb2016-01-08 10:19:35 -0800364class ViaPicture : public Via {
365public:
366 explicit ViaPicture(Sink* sink) : Via(sink) {}
367 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override;
368};
369
mtklein78829242015-05-06 07:54:07 -0700370class ViaTiles : public Via {
mtklein748ca3b2015-01-15 10:56:12 -0800371public:
msarett62d3b102015-12-10 15:14:27 -0800372 ViaTiles(int w, int h, SkBBHFactory*, Sink*);
mtklein36352bf2015-03-25 18:17:31 -0700373 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override;
mtklein748ca3b2015-01-15 10:56:12 -0800374private:
375 const int fW, fH;
376 SkAutoTDelete<SkBBHFactory> fFactory;
mtklein748ca3b2015-01-15 10:56:12 -0800377};
378
mtklein78829242015-05-06 07:54:07 -0700379class ViaSecondPicture : public Via {
mtkleinb7e8d692015-04-07 08:30:32 -0700380public:
msarett62d3b102015-12-10 15:14:27 -0800381 explicit ViaSecondPicture(Sink* sink) : Via(sink) {}
mtkleinb7e8d692015-04-07 08:30:32 -0700382 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override;
mtkleinb7e8d692015-04-07 08:30:32 -0700383};
384
mtklein78829242015-05-06 07:54:07 -0700385class ViaSingletonPictures : public Via {
mtkleind31c13d2015-05-05 12:59:56 -0700386public:
msarett62d3b102015-12-10 15:14:27 -0800387 explicit ViaSingletonPictures(Sink* sink) : Via(sink) {}
mtkleind31c13d2015-05-05 12:59:56 -0700388 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override;
mtkleind31c13d2015-05-05 12:59:56 -0700389};
390
mtklein6fbf4b32015-05-06 11:35:40 -0700391class ViaTwice : public Via {
392public:
msarett62d3b102015-12-10 15:14:27 -0800393 explicit ViaTwice(Sink* sink) : Via(sink) {}
mtklein6fbf4b32015-05-06 11:35:40 -0700394 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override;
395};
396
halcanary7a76f9c2016-02-03 11:53:18 -0800397class ViaMojo : public Via {
398public:
399 explicit ViaMojo(Sink* sink) : Via(sink) {}
400 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override;
401};
402
mtklein748ca3b2015-01-15 10:56:12 -0800403} // namespace DM
404
405#endif//DMSrcSink_DEFINED