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

Commit b714acb9 authored by George Burgess IV's avatar George Burgess IV
Browse files

Move a shared pointer that's going to die anyway.

This saves us two atomic operations that a copy would cost us (inc +
dec), and hopefully makes some internal tooling -- which yet doesn't
model atomics well -- happy.

Bug: None
Test: Builds
Change-Id: Ic55c3db6af55f45eceaf30c1ee479e9ae70aabb4
parent 8ed2c7f2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -393,7 +393,7 @@ static jobject ImageDecoder_nDecodeBitmap(JNIEnv* env, jobject /*clazz*/, jlong
        canvas.drawBitmap(bm, 0.0f, 0.0f, &paint);

        bm.swap(scaledBm);
        nativeBitmap = scaledPixelRef;
        nativeBitmap = std::move(scaledPixelRef);
    }

    if (jpostProcess) {