Remove unused dstColorSpace argument to MakeCrossContextFromPixmap (flutter/engine#11052)
This commit is contained in:
@@ -177,7 +177,6 @@ static SkiaGPUObject<SkImage> UploadRasterImage(
|
||||
SkImage::MakeCrossContextFromPixmap(context.get(), // context
|
||||
pixmap, // pixmap
|
||||
true, // buildMips,
|
||||
nullptr, // dstColorSpace,
|
||||
true // limitToMaxTextureSize
|
||||
);
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user