mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Do legacy image decoding for now (flutter/engine#3480)
This commit is contained in:
parent
0ca8d88853
commit
45b19efda8
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user