diff options
| author | Galia Peycheva <galinap@google.com> | 2019-12-13 10:09:00 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2019-12-13 10:09:00 +0000 |
| commit | a4aff1e1df81010367555d93b1df18e1b23f180e (patch) | |
| tree | 781954f5ca4e63ab047ac9e8ef88823c10a07d3b /core/java/android/view/Display.java | |
| parent | 34dea9fd960cb67658b4b90c0f3045e538805d4f (diff) | |
| parent | ea9457585a043c3cc2822a1db195375496652fb7 (diff) | |
Merge "Add minimal post processing API to framework"
Diffstat (limited to 'core/java/android/view/Display.java')
| -rw-r--r-- | core/java/android/view/Display.java | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/core/java/android/view/Display.java b/core/java/android/view/Display.java index ba2509302094..117b971ad446 100644 --- a/core/java/android/view/Display.java +++ b/core/java/android/view/Display.java @@ -21,6 +21,7 @@ import static android.Manifest.permission.CONFIGURE_DISPLAY_COLOR_MODE; import android.annotation.IntDef; import android.annotation.Nullable; import android.annotation.RequiresPermission; +import android.annotation.SuppressLint; import android.annotation.TestApi; import android.annotation.UnsupportedAppUsage; import android.app.KeyguardManager; @@ -857,6 +858,31 @@ public final class Display { } /** + * <p> Returns true if the connected display can be switched into a mode with minimal + * post processing. </p> + * + * <p> If the Display sink is connected via HDMI, this method will return true if the + * display supports either Auto Low Latency Mode or Game Content Type. + * + * <p> If the Display sink has an internal connection or uses some other protocol than + * HDMI, this method will return true if the sink can be switched into an + * implementation-defined low latency image processing mode. </p> + * + * <p> The ability to switch to a mode with minimal post processing may be disabled + * by a user setting in the system settings menu. In that case, this method returns + * false. </p> + * + * @see android.view.Window#setPreferMinimalPostProcessing + */ + @SuppressLint("VisiblySynchronized") + public boolean isMinimalPostProcessingSupported() { + synchronized (this) { + updateDisplayInfoLocked(); + return mDisplayInfo.minimalPostProcessingSupported; + } + } + + /** * Request the display applies a color mode. * @hide */ |
