diff options
| author | 2023-10-24 11:57:54 -0700 | |
|---|---|---|
| committer | 2023-10-24 21:02:09 +0000 | |
| commit | 5c5cd9697c85f885c06c29e70563d5693a5abbf6 (patch) | |
| tree | 5774639970b6b9452f8a2bce15a9de6516471b91 /graphics/java | |
| parent | c65d4849da223f30cee21512a2a4c0f2487b45b0 (diff) | |
Rename OverlayProperties API.
- Display#getOverlaySupport is non-null, no need to check the object in
HardwareRenderer side.
Bug: 307552682
Bug: 267234573
Test: builds
Change-Id: I58589fd95de5f9853d758f1e3cc899a634d39eb5
Diffstat (limited to 'graphics/java')
| -rw-r--r-- | graphics/java/android/graphics/HardwareRenderer.java | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/graphics/java/android/graphics/HardwareRenderer.java b/graphics/java/android/graphics/HardwareRenderer.java index 9cde1878d9d8..8cd262e783d8 100644 --- a/graphics/java/android/graphics/HardwareRenderer.java +++ b/graphics/java/android/graphics/HardwareRenderer.java @@ -1390,10 +1390,6 @@ public class HardwareRenderer { int largestWidth = activeMode.getPhysicalWidth(); int largestHeight = activeMode.getPhysicalHeight(); final OverlayProperties overlayProperties = defaultDisplay.getOverlaySupport(); - boolean supportFp16ForHdr = overlayProperties != null - ? overlayProperties.supportFp16ForHdr() : false; - boolean supportMixedColorSpaces = overlayProperties != null - ? overlayProperties.supportMixedColorSpaces() : false; for (int i = 0; i < allDisplays.length; i++) { final Display display = allDisplays[i]; @@ -1421,7 +1417,8 @@ public class HardwareRenderer { nInitDisplayInfo(largestWidth, largestHeight, defaultDisplay.getRefreshRate(), wideColorDataspace, defaultDisplay.getAppVsyncOffsetNanos(), defaultDisplay.getPresentationDeadlineNanos(), - supportFp16ForHdr, supportMixedColorSpaces); + overlayProperties.isFp16SupportedForHdr(), + overlayProperties.isMixedColorSpacesSupported()); mDisplayInitialized = true; } |