summaryrefslogtreecommitdiffstats
path: root/gallerycommon/src/com/android/gallery3d
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2012-10-22 16:11:01 -0700
committerJohn Reck <jreck@google.com>2012-10-22 16:11:01 -0700
commitbf30e7dfdd17b59894014d0c081a59e444f92b39 (patch)
tree87bef69c63407a985569eeb592704e76bf3eb126 /gallerycommon/src/com/android/gallery3d
parent1aa9974c1fa79ffa587fb53756a886aab6aa08e2 (diff)
downloadandroid_packages_apps_Snap-bf30e7dfdd17b59894014d0c081a59e444f92b39.tar.gz
android_packages_apps_Snap-bf30e7dfdd17b59894014d0c081a59e444f92b39.tar.bz2
android_packages_apps_Snap-bf30e7dfdd17b59894014d0c081a59e444f92b39.zip
Drive GLRootView with Choreographer
Bug: 7332724 By routing requestRender through postOnAnimation we can drive the GLRootView's rendering with the UI thread's coreographer, which ensures that touch events are processed before drawing Change-Id: Iac2b3229e9a09ee0319c64c5fc7cb906512a379c
Diffstat (limited to 'gallerycommon/src/com/android/gallery3d')
-rw-r--r--gallerycommon/src/com/android/gallery3d/common/ApiHelper.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java b/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
index a393025fa..837777e51 100644
--- a/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
+++ b/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
@@ -167,6 +167,9 @@ public class ApiHelper {
public static final boolean HAS_VIEW_PROPERTY_ANIMATOR =
Build.VERSION.SDK_INT >= VERSION_CODES.HONEYCOMB_MR1;
+ public static final boolean HAS_POST_ON_ANIMATION =
+ Build.VERSION.SDK_INT >= VERSION_CODES.JELLY_BEAN;
+
public static int getIntFieldIfExists(Class<?> klass, String fieldName,
Class<?> obj, int defaultVal) {
try {