Test sRGB with non-linear blending using new "srgbnl" sink

BUG=skia:

Change-Id: Ief7516c1505f8e447f83121ed4ba75b9fa9ba75b
Reviewed-on: https://skia-review.googlesource.com/8976
Commit-Queue: Matt Sarett <msarett@google.com>
Reviewed-by: Mike Klein <mtklein@chromium.org>
diff --git a/dm/DM.cpp b/dm/DM.cpp
index 5e3185b..bec5dd3 100644
--- a/dm/DM.cpp
+++ b/dm/DM.cpp
@@ -866,19 +866,24 @@
 
     if (FLAGS_cpu) {
         auto srgbColorSpace = SkColorSpace::MakeSRGB();
+        auto srgbColorSpaceNonLinearBlending = SkColorSpace::MakeRGB(
+                SkColorSpace::kSRGB_RenderTargetGamma,
+                SkColorSpace::kSRGB_Gamut,
+                SkColorSpace::kNonLinearBlending_ColorSpaceFlag);
         auto srgbLinearColorSpace = SkColorSpace::MakeSRGBLinear();
 
-        SINK("565",  RasterSink, kRGB_565_SkColorType);
-        SINK("8888", RasterSink, kN32_SkColorType);
-        SINK("srgb", RasterSink, kN32_SkColorType, srgbColorSpace);
-        SINK("f16",  RasterSink, kRGBA_F16_SkColorType, srgbLinearColorSpace);
-        SINK("pdf",  PDFSink);
-        SINK("skp",  SKPSink);
-        SINK("pipe", PipeSink);
-        SINK("svg",  SVGSink);
-        SINK("null", NullSink);
-        SINK("xps",  XPSSink);
-        SINK("pdfa", PDFSink, true);
+        SINK("565",     RasterSink, kRGB_565_SkColorType);
+        SINK("8888",    RasterSink, kN32_SkColorType);
+        SINK("srgb",    RasterSink, kN32_SkColorType, srgbColorSpace);
+        SINK("srgbnl",  RasterSink, kN32_SkColorType, srgbColorSpaceNonLinearBlending);
+        SINK("f16",     RasterSink, kRGBA_F16_SkColorType, srgbLinearColorSpace);
+        SINK("pdf",     PDFSink);
+        SINK("skp",     SKPSink);
+        SINK("pipe",    PipeSink);
+        SINK("svg",     SVGSink);
+        SINK("null",    NullSink);
+        SINK("xps",     XPSSink);
+        SINK("pdfa",    PDFSink, true);
         SINK("jsdebug", DebugSink);
     }
 #undef SINK