Fix gainmap build warning.

Bug: 267216437
Change-Id: Id267ddbbb3f8eebd9ed8dcacefa4e163a867c21e
Test: builds
diff --git a/libs/hwui/jni/Bitmap.cpp b/libs/hwui/jni/Bitmap.cpp
index 6fa45df0..23a7520 100644
--- a/libs/hwui/jni/Bitmap.cpp
+++ b/libs/hwui/jni/Bitmap.cpp
@@ -398,7 +398,7 @@
                 return NULL;
             }
             gainmap->bitmap = std::move(skBitmap);
-            bitmap->setGainmap(std::move(gainmap.get()));
+            bitmap->setGainmap(std::move(gainmap));
         }
         return createBitmap(env, bitmap.release(), getPremulBitmapCreateFlags(isMutable));
     }
@@ -421,7 +421,7 @@
             return NULL;
         }
         gainmap->bitmap = sk_sp<Bitmap>(destAllocator.getStorageObjAndReset());
-        bitmap->setGainmap(std::move(gainmap.get()));
+        bitmap->setGainmap(std::move(gainmap));
     }
     return createBitmap(env, bitmap, getPremulBitmapCreateFlags(isMutable));
 }