Do legacy image decoding for now (flutter/engine#3480)

This commit is contained in:
Brian Osman 2017-03-15 17:31:05 -04:00 committed by Chinmay Garde
parent 0ca8d88853
commit 45b19efda8

View File

@ -40,9 +40,9 @@ sk_sp<SkImage> DecodeImage(sk_sp<SkData> 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