diff options
author | Linux Build Service Account <lnxbuild@localhost> | 2022-04-04 05:56:56 -0700 |
---|---|---|
committer | Linux Build Service Account <lnxbuild@localhost> | 2022-04-04 05:56:56 -0700 |
commit | 05445d8b448ea0349822250fa0c2a6f651289736 (patch) | |
tree | ab7c399debcc86a00607387d37dc1cdf48abc500 /modules/gralloc/framebuffer.cpp | |
parent | a650ca80c583ccf3c8dfcfac5e51f539931fae69 (diff) | |
parent | e1361aaa2d8bc275242203ffc5b74d8339e217a4 (diff) |
Merge e1361aaa2d8bc275242203ffc5b74d8339e217a4 on remote branch
Change-Id: I5d0b3493620052500838ebb2443206eddd6ca150
Diffstat (limited to 'modules/gralloc/framebuffer.cpp')
-rw-r--r-- | modules/gralloc/framebuffer.cpp | 7 |
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; |