summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/src/com/android/gallery3d/ui/GLRootMock.java6
-rw-r--r--tests/src/com/android/gallery3d/ui/GLRootStub.java6
2 files changed, 10 insertions, 2 deletions
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; }
}