Update BRD to support getAndroidGainmap

Bug: b/349357636
Change-Id: I460732a7f262da736658eade47d3975e54d4d4ae
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/901156
Reviewed-by: Leon Scroggins <scroggo@google.com>
Commit-Queue: Alec Mouri <alecmouri@google.com>
diff --git a/client_utils/android/BitmapRegionDecoder.h b/client_utils/android/BitmapRegionDecoder.h
index c9649b7..58c9f3d 100644
--- a/client_utils/android/BitmapRegionDecoder.h
+++ b/client_utils/android/BitmapRegionDecoder.h
@@ -47,6 +47,18 @@
         return fCodec->getAndroidGainmap(outInfo, outGainmapImageStream);
     }
 
+    bool getGainmapBitmapRegionDecoder(SkGainmapInfo* outInfo,
+                                       std::unique_ptr<BitmapRegionDecoder>* outDecoder) {
+        std::unique_ptr<SkAndroidCodec> codec;
+        if (!fCodec->getGainmapAndroidCodec(outInfo, &codec)) {
+            return false;
+        }
+
+        *outDecoder = std::unique_ptr<BitmapRegionDecoder>(
+                new BitmapRegionDecoder(std::move(codec)));
+        return true;
+    }
+
 private:
     BitmapRegionDecoder(std::unique_ptr<SkAndroidCodec> codec);