From ff95aabbcc6e8606acbd7933c90eeb9b8b382a21 Mon Sep 17 00:00:00 2001 From: Pablo Ceballos Date: Wed, 13 Jan 2016 17:09:58 -0800 Subject: Add interface for controlling single buffer auto refresh - Adds a boolean to BufferQueue that controls whether or not auto refresh is enabled in SurfaceFlinger when in single buffer mode. - Adds plumbing up to ANativeWindow. - When enabled, it will cache the shared buffer slot in Surface in order to prevent the Binder transaction with SurfaceFlinger. Bug 24940410 Change-Id: I83142afdc00e203f198a32288f071d926f8fda95 --- libs/gui/BufferItem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs/gui/BufferItem.cpp') diff --git a/libs/gui/BufferItem.cpp b/libs/gui/BufferItem.cpp index 036ef1ecf7..5e3924a7ee 100644 --- a/libs/gui/BufferItem.cpp +++ b/libs/gui/BufferItem.cpp @@ -38,7 +38,7 @@ BufferItem::BufferItem() : mAcquireCalled(false), mTransformToDisplayInverse(false), mSurfaceDamage(), - mSingleBufferMode(false), + mAutoRefresh(false), mQueuedBuffer(true), mIsStale(false) { } -- cgit v1.2.3-59-g8ed1b