summaryrefslogtreecommitdiff
path: root/modules/gralloc/framebuffer.cpp
diff options
context:
space:
mode:
authorHaamed Gheibi <haamed@google.com>2022-02-17 15:24:46 -0800
committerHaamed Gheibi <haamed@google.com>2022-02-22 09:46:46 -0800
commit75f1bda1bc422e3882dbbeed4be03b24f863b2ba (patch)
treeab7c399debcc86a00607387d37dc1cdf48abc500 /modules/gralloc/framebuffer.cpp
parent202706ad45c6b0c0efff99c9f1de34003e80927f (diff)
parentc142f2613ef9982d59dca254d7a625bdf595f70c (diff)
Merge SP2A.220305.013
Bug: 220074017 Change-Id: Ia2198b401a3a907c785316e0ef4c00bf27fa59b1
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;