From ac02f46aa7ec727b839affb9aee415f01c1c2193 Mon Sep 17 00:00:00 2001 From: Chih-Chung Chang Date: Tue, 8 May 2012 17:57:33 +0800 Subject: Better orientation change handling. Bug 6451117: Preview location is wrong after rotating the device quickly Bug 6444303: The preview location is wrong when camera is started upside down on tablet Bug 6451710: Tap to focus broken in landscape Change-Id: I12fd57d6618ec5521ccc6efcbf65de57ff2ea3d2 --- tests/src/com/android/gallery3d/ui/GLRootMock.java | 6 +++++- tests/src/com/android/gallery3d/ui/GLRootStub.java | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/src/com/android/gallery3d/ui/GLRootMock.java b/tests/src/com/android/gallery3d/ui/GLRootMock.java index 55f1c9a12..4af7a1f59 100644 --- a/tests/src/com/android/gallery3d/ui/GLRootMock.java +++ b/tests/src/com/android/gallery3d/ui/GLRootMock.java @@ -16,6 +16,7 @@ package com.android.gallery3d.ui; +import android.graphics.Matrix; import com.android.gallery3d.anim.CanvasAnimation; public class GLRootMock implements GLRoot { @@ -34,5 +35,8 @@ public class GLRootMock implements GLRoot { public void lockRenderThread() {} public void unlockRenderThread() {} public void setContentPane(GLView content) {} - public void setOrientationCompensation(int degrees) {} + public void setOrientationSource(OrientationSource source) {} + public int getDisplayRotation() { return 0; } + public int getCompensation() { return 0; } + public Matrix getCompensationMatrix() { return null; } } diff --git a/tests/src/com/android/gallery3d/ui/GLRootStub.java b/tests/src/com/android/gallery3d/ui/GLRootStub.java index bf9b63f6b..878eeddb4 100644 --- a/tests/src/com/android/gallery3d/ui/GLRootStub.java +++ b/tests/src/com/android/gallery3d/ui/GLRootStub.java @@ -16,6 +16,7 @@ package com.android.gallery3d.ui; +import android.graphics.Matrix; import com.android.gallery3d.anim.CanvasAnimation; public class GLRootStub implements GLRoot { @@ -27,5 +28,8 @@ public class GLRootStub implements GLRoot { public void lockRenderThread() {} public void unlockRenderThread() {} public void setContentPane(GLView content) {} - public void setOrientationCompensation(int degrees) {} + public void setOrientationSource(OrientationSource source) {} + public int getDisplayRotation() { return 0; } + public int getCompensation() { return 0; } + public Matrix getCompensationMatrix() { return null; } } -- cgit v1.2.3