summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/ui/GLRootView.java
diff options
context:
space:
mode:
authorOwen Lin <owenlin@google.com>2010-04-28 11:36:07 +0800
committerOwen Lin <owenlin@google.com>2010-05-07 11:09:33 +0800
commit7b783cb800a90b3f301374f354750292bb75f7aa (patch)
treed73c2d0550bcb43061a0b39fa4139c4a055fac6f /src/com/android/camera/ui/GLRootView.java
parent7d16cd38466eaa850a08627552499116fb80286b (diff)
downloadLegacyCamera-7b783cb800a90b3f301374f354750292bb75f7aa.zip
LegacyCamera-7b783cb800a90b3f301374f354750292bb75f7aa.tar.gz
LegacyCamera-7b783cb800a90b3f301374f354750292bb75f7aa.tar.bz2
Use our own EGLChooser so that we can fall back to use "copyImage2D" when
stencil is not supported. Also fix an issue in GLListView due to a different behavior on Emulator, i.e., ACTION_MOVE won't be sent after ACTION_DOWN. Bug: 2538315 Change-Id: I8eb26794656b42df1c89e675bc153879920a7155
Diffstat (limited to 'src/com/android/camera/ui/GLRootView.java')
-rw-r--r--src/com/android/camera/ui/GLRootView.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/com/android/camera/ui/GLRootView.java b/src/com/android/camera/ui/GLRootView.java
index 10981b1..30adccb 100644
--- a/src/com/android/camera/ui/GLRootView.java
+++ b/src/com/android/camera/ui/GLRootView.java
@@ -75,9 +75,8 @@ public class GLRootView extends GLSurfaceView
private Thread mGLThread;
private boolean mIsQueueActive = true;
+ private CameraEGLConfigChooser mEglConfigChooser = new CameraEGLConfigChooser();
- private int mFirstWidth;
- private int mFirstHeight;
// TODO: move this part (handler) into GLSurfaceView
private final Looper mLooper;
@@ -156,9 +155,13 @@ public class GLRootView extends GLSurfaceView
}
}
+ public CameraEGLConfigChooser getEGLConfigChooser() {
+ return mEglConfigChooser;
+ }
+
private void initialize() {
mFlags |= FLAG_INITIALIZED;
- setEGLConfigChooser(8, 8, 8, 8, 0, 4);
+ setEGLConfigChooser(mEglConfigChooser);
getHolder().setFormat(PixelFormat.TRANSLUCENT);
setZOrderOnTop(true);