Do legacy image decoding for now (flutter/engine#3480)
This commit is contained in:
committed by
Chinmay Garde
parent
0ca8d88853
commit
45b19efda8
@@ -40,9 +40,9 @@ sk_sp<SkImage> DecodeImage(sk_sp<SkData> buffer) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (auto context = ResourceContext::Get()) {
|
if (auto context = ResourceContext::Get()) {
|
||||||
auto colorspace = SkColorSpace::MakeSRGB();
|
// TODO: Supply actual destination color space once available
|
||||||
if (auto texture_image =
|
if (auto texture_image =
|
||||||
raster_image->makeTextureImage(context, colorspace.get())) {
|
raster_image->makeTextureImage(context, nullptr)) {
|
||||||
#ifdef OS_ANDROID
|
#ifdef OS_ANDROID
|
||||||
glFlush();
|
glFlush();
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user