aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/codec
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 /src/codec
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 'src/codec')
-rw-r--r--src/codec/SkWebpCodec.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/codec/SkWebpCodec.cpp b/src/codec/SkWebpCodec.cpp
index f1c309acfd..6618072c8a 100644
--- a/src/codec/SkWebpCodec.cpp
+++ b/src/codec/SkWebpCodec.cpp
@@ -340,7 +340,6 @@ static void pick_memory_stages(SkColorType ct, SkRasterPipeline::StockStage* loa
case kARGB_4444_SkColorType:
case kGray_8_SkColorType:
case kRGB_888x_SkColorType:
- case kRGBA_1010102_SkColorType:
case kRGB_101010x_SkColorType:
SkASSERT(false);
break;
@@ -356,6 +355,10 @@ static void pick_memory_stages(SkColorType ct, SkRasterPipeline::StockStage* loa
if (load) *load = SkRasterPipeline::load_bgra;
if (store) *store = SkRasterPipeline::store_bgra;
break;
+ case kRGBA_1010102_SkColorType:
+ if (load) *load = SkRasterPipeline::load_1010102;
+ if (store) *store = SkRasterPipeline::store_1010102;
+ break;
case kRGBA_F16_SkColorType:
if (load) *load = SkRasterPipeline::load_f16;
if (store) *store = SkRasterPipeline::store_f16;