From ac568a934f8f82bf3a359b757d67eb3a797d3593 Mon Sep 17 00:00:00 2001 From: Mike Klein Date: Thu, 25 Jan 2018 09:09:32 -0500 Subject: 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 Commit-Queue: Mike Klein --- dm/DM.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'dm') 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); -- cgit v1.2.3