aboutsummaryrefslogtreecommitdiffhomepage
path: root/dm/DM.cpp
diff options
context:
space:
mode:
authorGravatar Mike Klein <mtklein@chromium.org>2018-01-25 09:09:32 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-01-30 22:02:20 +0000
commitac568a934f8f82bf3a359b757d67eb3a797d3593 (patch)
tree08b667b597933b0e2baf0af8c5ddac7ec8e63cef /dm/DM.cpp
parent1c5906f5623cc6b019281b35ba387f620f13f969 (diff)
1010102, 101010x, 888x in sw
Same sort of deal as before, now with all three new formats. While I was at it, I made sure RGBA 8888 and BGRA 8888 both work too. We don't want the 101010's in lowp, but 888x should be fine. After looking at the DM images on monitors at work, I decided to re-enable dither even on 10-bit images. Looking at the GMs in 888x or 101010x is interesting... I think we must not be clearing the memory allocated for layers? Seems like we want to allocate layers as 8888? Change-Id: I3a85b4f00877792a6425a7e7eb31eacb04ae9218 Reviewed-on: https://skia-review.googlesource.com/101640 Reviewed-by: Mike Reed <reed@google.com> Commit-Queue: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'dm/DM.cpp')
-rw-r--r--dm/DM.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/dm/DM.cpp b/dm/DM.cpp
index 4f0dcd6a8c..f61f52150d 100644
--- a/dm/DM.cpp
+++ b/dm/DM.cpp
@@ -899,6 +899,11 @@ static Sink* create_sink(const GrContextOptions& grCtxOptions, const SkCommandLi
SINK("4444", RasterSink, kARGB_4444_SkColorType);
SINK("8888", RasterSink, kN32_SkColorType);
SINK("srgb", RasterSink, kN32_SkColorType, srgbColorSpace);
+ SINK("rgba", RasterSink, kRGBA_8888_SkColorType);
+ SINK("bgra", RasterSink, kBGRA_8888_SkColorType);
+ SINK("rgbx", RasterSink, kRGB_888x_SkColorType);
+ SINK("1010102", RasterSink, kRGBA_1010102_SkColorType);
+ SINK("101010x", RasterSink, kRGB_101010x_SkColorType);
SINK("f16", RasterSink, kRGBA_F16_SkColorType, srgbLinearColorSpace);
SINK("pdf", PDFSink, false, SK_ScalarDefaultRasterDPI);
SINK("skp", SKPSink);