summaryrefslogtreecommitdiffstats
path: root/cmds/bootanimation
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2011-08-15 15:20:22 -0700
committerMathias Agopian <mathias@google.com>2011-08-15 15:25:39 -0700
commit1b253b702a356619ae3c5e68ee92062b5305c5d7 (patch)
tree26233084bf99a5aad2131ede958741fc7147547a /cmds/bootanimation
parent7d8fc3c911ea8e4cd1e6531118da4f72e521a944 (diff)
downloadframeworks_base-1b253b702a356619ae3c5e68ee92062b5305c5d7.zip
frameworks_base-1b253b702a356619ae3c5e68ee92062b5305c5d7.tar.gz
frameworks_base-1b253b702a356619ae3c5e68ee92062b5305c5d7.tar.bz2
boot animation doesn't use EGLUtils anymore
Change-Id: I0767ac2a5ab814382b41c85bd5b0786c7a025255
Diffstat (limited to 'cmds/bootanimation')
-rw-r--r--cmds/bootanimation/BootAnimation.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/cmds/bootanimation/BootAnimation.cpp b/cmds/bootanimation/BootAnimation.cpp
index ccd668d..d816e7c 100644
--- a/cmds/bootanimation/BootAnimation.cpp
+++ b/cmds/bootanimation/BootAnimation.cpp
@@ -37,7 +37,6 @@
#include <ui/Region.h>
#include <ui/DisplayInfo.h>
#include <ui/FramebufferNativeWindow.h>
-#include <ui/EGLUtils.h>
#include <surfaceflinger/ISurfaceComposer.h>
#include <surfaceflinger/ISurfaceComposerClient.h>
@@ -222,6 +221,9 @@ status_t BootAnimation::readyToRun() {
// initialize opengl and egl
const EGLint attribs[] = {
+ EGL_RED_SIZE, 8,
+ EGL_GREEN_SIZE, 8,
+ EGL_BLUE_SIZE, 8,
EGL_DEPTH_SIZE, 0,
EGL_NONE
};
@@ -234,7 +236,7 @@ status_t BootAnimation::readyToRun() {
EGLDisplay display = eglGetDisplay(EGL_DEFAULT_DISPLAY);
eglInitialize(display, 0, 0);
- EGLUtils::selectConfigForNativeWindow(display, attribs, s.get(), &config);
+ eglChooseConfig(display, attribs, &config, 1, &numConfigs);
surface = eglCreateWindowSurface(display, config, s.get(), NULL);
context = eglCreateContext(display, config, NULL, NULL);
eglQuerySurface(display, surface, EGL_WIDTH, &w);