summaryrefslogtreecommitdiff
path: root/modules/gralloc/framebuffer.cpp
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2021-12-17 00:07:44 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2021-12-17 00:07:44 +0000
commitc142f2613ef9982d59dca254d7a625bdf595f70c (patch)
treec87c7bb1c44219e1cdf45506113ef451ce15d998 /modules/gralloc/framebuffer.cpp
parentfcafef0ab6d0ca861a3d772447f3409c27722ad9 (diff)
parent0b5ab223e110f3a34b30e7b61e4ea68c03dba98b (diff)
Snap for 8010657 from 0b5ab223e110f3a34b30e7b61e4ea68c03dba98b to sc-v2-release
Change-Id: Ie66e88133267b6c910002995e0dbc92f326155cd
Diffstat (limited to 'modules/gralloc/framebuffer.cpp')
-rw-r--r--modules/gralloc/framebuffer.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/gralloc/framebuffer.cpp b/modules/gralloc/framebuffer.cpp
index b2ec3e44..fc220dbc 100644
--- a/modules/gralloc/framebuffer.cpp
+++ b/modules/gralloc/framebuffer.cpp
@@ -45,8 +45,10 @@
#define USE_PAN_DISPLAY 0
#endif
-// numbers of buffers for page flipping
+// Enabling page flipping by default
+#ifndef NUM_BUFFERS
#define NUM_BUFFERS 2
+#endif
enum {
@@ -157,7 +159,8 @@ int mapFrameBufferLocked(struct private_module_t* module, int format)
info.activate = FB_ACTIVATE_NOW;
/*
- * Request NUM_BUFFERS screens (at lest 2 for page flipping)
+ * Request NUM_BUFFERS screens
+ * To enable page flipping, NUM_BUFFERS should be at least 2.
*/
info.yres_virtual = info.yres * NUM_BUFFERS;