summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/ui/GLRootView.java
diff options
context:
space:
mode:
authorGeorge Mount <mount@google.com>2013-05-09 13:30:39 -0700
committerGeorge Mount <mount@google.com>2013-05-09 13:30:39 -0700
commitcaa77af0d12fa40418a342385bc47b8db6267e6c (patch)
treefde8041f08ed006d158ac4f41aed8fcee9418649 /src/com/android/gallery3d/ui/GLRootView.java
parentb5530eae0732be37a7685e646c5dd9726dc73caf (diff)
downloadandroid_packages_apps_Snap-caa77af0d12fa40418a342385bc47b8db6267e6c.tar.gz
android_packages_apps_Snap-caa77af0d12fa40418a342385bc47b8db6267e6c.tar.bz2
android_packages_apps_Snap-caa77af0d12fa40418a342385bc47b8db6267e6c.zip
Remove GL dependency on unused stencil buffers.
Bug 8884435 Change-Id: I8e7f0563a4a901953e3e2b14e35457b4fefe2e34
Diffstat (limited to 'src/com/android/gallery3d/ui/GLRootView.java')
-rw-r--r--src/com/android/gallery3d/ui/GLRootView.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/com/android/gallery3d/ui/GLRootView.java b/src/com/android/gallery3d/ui/GLRootView.java
index 775e4a518..f00bd543c 100644
--- a/src/com/android/gallery3d/ui/GLRootView.java
+++ b/src/com/android/gallery3d/ui/GLRootView.java
@@ -94,9 +94,6 @@ public class GLRootView extends GLSurfaceView
private int mFlags = FLAG_NEED_LAYOUT;
private volatile boolean mRenderRequested = false;
- private final GalleryEGLConfigChooser mEglConfigChooser =
- new GalleryEGLConfigChooser();
-
private final ArrayList<CanvasAnimation> mAnimations =
new ArrayList<CanvasAnimation>();
@@ -123,7 +120,11 @@ public class GLRootView extends GLSurfaceView
mFlags |= FLAG_INITIALIZED;
setBackgroundDrawable(null);
setEGLContextClientVersion(ApiHelper.HAS_GLES20_REQUIRED ? 2 : 1);
- setEGLConfigChooser(mEglConfigChooser);
+ if (ApiHelper.USE_888_PIXEL_FORMAT) {
+ setEGLConfigChooser(8, 8, 8, 0, 0, 0);
+ } else {
+ setEGLConfigChooser(5, 6, 5, 0, 0, 0);
+ }
setRenderer(this);
if (ApiHelper.USE_888_PIXEL_FORMAT) {
getHolder().setFormat(PixelFormat.RGB_888);