Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bd6d1b05 authored by Kevin Lubick's avatar Kevin Lubick
Browse files

Use SkImages::DeferredFromAHardwareBuffer

Follow-up to https://googleplex-android-review.git.corp.google.com/c/platform/frameworks/base/+/22135940

Change-Id: Iabf5ebc38161e1ea8535bba5986bfaae3dc830c2
parent 92fd8261
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -183,8 +183,8 @@ void VkInteropFunctorDrawable::onDraw(SkCanvas* canvas) {
    // drawing into the offscreen surface, so we need to reset it here.
    canvas->resetMatrix();

    auto functorImage = SkImage::MakeFromAHardwareBuffer(mFrameBuffer.get(), kPremul_SkAlphaType,
                                                         canvas->imageInfo().refColorSpace(),
    auto functorImage = SkImages::DeferredFromAHardwareBuffer(
        mFrameBuffer.get(), kPremul_SkAlphaType, canvas->imageInfo().refColorSpace(),
        kBottomLeft_GrSurfaceOrigin);
    canvas->drawImage(functorImage, 0, 0, SkSamplingOptions(), &paint);
    canvas->restore();