From 45b19efda8fcd9bee09534657064629dca2d3fb1 Mon Sep 17 00:00:00 2001 From: Brian Osman Date: Wed, 15 Mar 2017 17:31:05 -0400 Subject: [PATCH] Do legacy image decoding for now (flutter/engine#3480) --- engine/src/flutter/lib/ui/painting/image_decoding.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/src/flutter/lib/ui/painting/image_decoding.cc b/engine/src/flutter/lib/ui/painting/image_decoding.cc index 78c13a3a615..d9e46663a0d 100644 --- a/engine/src/flutter/lib/ui/painting/image_decoding.cc +++ b/engine/src/flutter/lib/ui/painting/image_decoding.cc @@ -40,9 +40,9 @@ sk_sp DecodeImage(sk_sp buffer) { } if (auto context = ResourceContext::Get()) { - auto colorspace = SkColorSpace::MakeSRGB(); + // TODO: Supply actual destination color space once available if (auto texture_image = - raster_image->makeTextureImage(context, colorspace.get())) { + raster_image->makeTextureImage(context, nullptr)) { #ifdef OS_ANDROID glFlush(); #endif