Skip to content

Commit

Permalink
Enable downscale of very large images when uploading on IO thread (fl…
Browse files Browse the repository at this point in the history
  • Loading branch information
brianosman authored and chinmaygarde committed Apr 19, 2018
1 parent 22e1381 commit 388f019
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ui/painting/codec.cc
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ static sk_sp<SkImage> DecodeImage(fml::WeakPtr<GrContext> context,
// This indicates that we do not want a "linear blending" decode.
sk_sp<SkColorSpace> dstColorSpace = nullptr;
return SkImage::MakeCrossContextFromEncoded(
context.get(), std::move(buffer), false, dstColorSpace.get());
context.get(), std::move(buffer), false, dstColorSpace.get(), true);
} else {
// Defer decoding until time of draw later on the GPU thread. Can happen
// when GL operations are currently forbidden such as in the background
Expand Down

0 comments on commit 388f019

Please sign in to comment.