summaryrefslogtreecommitdiff
path: root/core/java/android/view/Surface.java
diff options
context:
space:
mode:
authorSteven Thomas <steventhomas@google.com>2020-06-01 21:18:05 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2020-06-01 21:18:05 +0000
commitedf7f828e475d2cbf0e2e06639a36adc24ff4906 (patch)
tree3e27c8d12c9ac80327d9371b9368c42ae49119a9 /core/java/android/view/Surface.java
parentbebb57231c2b5110ddc099f176579e04cf0772c4 (diff)
parent39bdd7a712dd302583cf7d7632261b89f2f66839 (diff)
Merge "Clarify FRAME_RATE_COMPATIBILITY_* params" into rvc-dev am: 061dec3e8d am: 39bdd7a712
Change-Id: I3d8ef49874f9d18c38bc9c99323ebb2dfce67737
Diffstat (limited to 'core/java/android/view/Surface.java')
-rw-r--r--core/java/android/view/Surface.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/core/java/android/view/Surface.java b/core/java/android/view/Surface.java
index 0d503ed7afe6..b1d552060c87 100644
--- a/core/java/android/view/Surface.java
+++ b/core/java/android/view/Surface.java
@@ -195,7 +195,10 @@ public class Surface implements Parcelable {
// From native_window.h. Keep these in sync.
/**
- * There are no inherent restrictions on the frame rate of this surface.
+ * There are no inherent restrictions on the frame rate of this surface. When the
+ * system selects a frame rate other than what the app requested, the app will be able
+ * to run at the system frame rate without requiring pull down. This value should be
+ * used when displaying game content, UIs, and anything that isn't video.
*/
public static final int FRAME_RATE_COMPATIBILITY_DEFAULT = 0;
@@ -205,7 +208,7 @@ public class Surface implements Parcelable {
* other than what the app requested, the app will need to do pull down or use some
* other technique to adapt to the system's frame rate. The user experience is likely
* to be worse (e.g. more frame stuttering) than it would be if the system had chosen
- * the app's requested frame rate.
+ * the app's requested frame rate. This value should be used for video content.
*/
public static final int FRAME_RATE_COMPATIBILITY_FIXED_SOURCE = 1;