summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorChih-Chung Chang <chihchung@google.com>2012-02-16 07:27:03 +0800
committerChih-Chung Chang <chihchung@google.com>2012-02-16 07:29:17 +0800
commit3f43ecbb1b7c8f24c9a6e3d6b9807a1d0ef2f2ab (patch)
tree38758ad199d32d032b81267fa9a385d6ccd29412 /tests
parentad21fbed030fa8c80b65ad6b6866a3e944f24e4f (diff)
downloadandroid_packages_apps_Snap-3f43ecbb1b7c8f24c9a6e3d6b9807a1d0ef2f2ab.zip
android_packages_apps_Snap-3f43ecbb1b7c8f24c9a6e3d6b9807a1d0ef2f2ab.tar.gz
android_packages_apps_Snap-3f43ecbb1b7c8f24c9a6e3d6b9807a1d0ef2f2ab.tar.bz2
Make GLCanvas a bit faster.
(1) make a faster version of translate(x, y). (2) make mapPoints() faster. (3) avoid calling canvas.rotate() when it is not needed. Change-Id: I364e2aa3fc9ee81c43f42f3af8b2d30a1241b482
Diffstat (limited to 'tests')
-rw-r--r--tests/src/com/android/gallery3d/ui/GLCanvasStub.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/src/com/android/gallery3d/ui/GLCanvasStub.java b/tests/src/com/android/gallery3d/ui/GLCanvasStub.java
index f1663f4..17d520d 100644
--- a/tests/src/com/android/gallery3d/ui/GLCanvasStub.java
+++ b/tests/src/com/android/gallery3d/ui/GLCanvasStub.java
@@ -33,6 +33,7 @@ public class GLCanvasStub implements GLCanvas {
}
public void multiplyAlpha(float alpha) {}
public void translate(float x, float y, float z) {}
+ public void translate(float x, float y) {}
public void scale(float sx, float sy, float sz) {}
public void rotate(float angle, float x, float y, float z) {}
public boolean clipRect(int left, int top, int right, int bottom) {