From 4a21029f07c64b8c3460b6aefe3aa22a0e8ea66d Mon Sep 17 00:00:00 2001 From: Carlos Martinez Romero Date: Wed, 11 Oct 2023 19:45:53 +0000 Subject: Add a flag to a Gainmap constructor. Test: m Bug: 304478551 Change-Id: I895f2d4844e70ee1d48d854a789abff1996801ed --- graphics/java/android/graphics/Gainmap.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'graphics/java') diff --git a/graphics/java/android/graphics/Gainmap.java b/graphics/java/android/graphics/Gainmap.java index b5fb13db4ae4..0a6fb8424094 100644 --- a/graphics/java/android/graphics/Gainmap.java +++ b/graphics/java/android/graphics/Gainmap.java @@ -16,11 +16,14 @@ package android.graphics; +import android.annotation.FlaggedApi; import android.annotation.FloatRange; import android.annotation.NonNull; import android.os.Parcel; import android.os.Parcelable; +import com.android.graphics.hwui.flags.Flags; + import libcore.util.NativeAllocationRegistry; /** @@ -125,6 +128,7 @@ public final class Gainmap implements Parcelable { * Creates a new gainmap using the provided gainmap as the metadata source and the provided * bitmap as the replacement for the gainmapContents */ + @FlaggedApi(Flags.FLAG_GAINMAP_CONSTRUCTOR_WITH_METADATA) public Gainmap(@NonNull Gainmap gainmap, @NonNull Bitmap gainmapContents) { this(gainmapContents, nCreateCopy(gainmap.mNativePtr)); } -- cgit v1.2.3-59-g8ed1b