summaryrefslogtreecommitdiffstats
path: root/include/ui
diff options
context:
space:
mode:
authorJean-Baptiste Queru <jbq@google.com>2010-11-17 17:29:48 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2010-11-17 17:29:48 -0800
commit5e0690745a45f99d12d940dd4aaae814b00a429e (patch)
treee3ec2e16e969670170e68c438343fbceed182491 /include/ui
parent1a2344b8b2c374cb32ff4af020666e6910ff2a8f (diff)
parenta15e4886de8f75f3cb137f51743d330414c910e8 (diff)
downloadframeworks_base-5e0690745a45f99d12d940dd4aaae814b00a429e.zip
frameworks_base-5e0690745a45f99d12d940dd4aaae814b00a429e.tar.gz
frameworks_base-5e0690745a45f99d12d940dd4aaae814b00a429e.tar.bz2
am a15e4886: Merge "Framebuffer: Support variable number of framebuffers in the UI"
* commit 'a15e4886de8f75f3cb137f51743d330414c910e8': Framebuffer: Support variable number of framebuffers in the UI
Diffstat (limited to 'include/ui')
-rw-r--r--include/ui/FramebufferNativeWindow.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/ui/FramebufferNativeWindow.h b/include/ui/FramebufferNativeWindow.h
index c913355..2cd0911 100644
--- a/include/ui/FramebufferNativeWindow.h
+++ b/include/ui/FramebufferNativeWindow.h
@@ -29,6 +29,7 @@
#include <ui/egl/android_natives.h>
+#define NUM_FRAME_BUFFERS 2
extern "C" EGLNativeWindowType android_createDisplaySurface(void);
@@ -72,7 +73,7 @@ private:
framebuffer_device_t* fbDev;
alloc_device_t* grDev;
- sp<NativeBuffer> buffers[2];
+ sp<NativeBuffer> buffers[NUM_FRAME_BUFFERS];
sp<NativeBuffer> front;
mutable Mutex mutex;