surfaceflinger: Set max acquired buffer count
If triple framebuffers are enabled, the number of acquired buffers isn't increased by default. Set the count to one less than the max buffers to make sure all three buffers come into play. Change-Id: I8fae1b5564fbea598e415a86b0a21c3449c92d87
This commit is contained in:
parent
1cdd1b5ad2
commit
b9127bdbe3
@ -67,6 +67,7 @@ FramebufferSurface::FramebufferSurface(HWComposer& hwc, int disp,
|
|||||||
mConsumer->setDefaultBufferFormat(mHwc.getFormat(disp));
|
mConsumer->setDefaultBufferFormat(mHwc.getFormat(disp));
|
||||||
mConsumer->setDefaultBufferSize(mHwc.getWidth(disp), mHwc.getHeight(disp));
|
mConsumer->setDefaultBufferSize(mHwc.getWidth(disp), mHwc.getHeight(disp));
|
||||||
mConsumer->setDefaultMaxBufferCount(NUM_FRAMEBUFFER_SURFACE_BUFFERS);
|
mConsumer->setDefaultMaxBufferCount(NUM_FRAMEBUFFER_SURFACE_BUFFERS);
|
||||||
|
mConsumer->setMaxAcquiredBufferCount(NUM_FRAMEBUFFER_SURFACE_BUFFERS - 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
status_t FramebufferSurface::beginFrame(bool /*mustRecompose*/) {
|
status_t FramebufferSurface::beginFrame(bool /*mustRecompose*/) {
|
||||||
|
Loading…
Reference in New Issue
Block a user