Remove unused dstColorSpace argument to MakeCrossContextFromPixmap (flutter/engine#11052)

This commit is contained in:
Brian Osman
2019-08-16 12:57:53 -04:00
committed by GitHub
parent 8aeeb5b90c
commit 152e8dfa20
2 changed files with 1 additions and 4 deletions

View File

@@ -177,7 +177,6 @@ static SkiaGPUObject<SkImage> UploadRasterImage(
SkImage::MakeCrossContextFromPixmap(context.get(), // context
pixmap, // pixmap
true, // buildMips,
nullptr, // dstColorSpace,
true // limitToMaxTextureSize
);

View File

@@ -118,10 +118,8 @@ sk_sp<SkImage> MultiFrameCodec::GetNextFrameImage(
if (resourceContext) {
SkPixmap pixmap(bitmap.info(), bitmap.pixelRef()->pixels(),
bitmap.pixelRef()->rowBytes());
// This indicates that we do not want a "linear blending" decode.
sk_sp<SkColorSpace> dstColorSpace = nullptr;
return SkImage::MakeCrossContextFromPixmap(resourceContext.get(), pixmap,
true, 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