From 68a6afeb26002961387573dd64dd0ea3816bdc91 Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Tue, 15 Sep 2009 19:10:47 -0700 Subject: fix [2122448] android_native_window_t::setUsage() only reallocates the first buffer Take 2. We needed to check that the usage flags are "good enough" as opposed to "the same". This reverts commit 8f17a762fe9e9f31e4e86cb60ff2bfb6b10fdee6. --- include/ui/Surface.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'include') diff --git a/include/ui/Surface.h b/include/ui/Surface.h index 118fb8317b..2cedeb6d1a 100644 --- a/include/ui/Surface.h +++ b/include/ui/Surface.h @@ -212,7 +212,7 @@ private: void setUsage(uint32_t reqUsage); - bool getUsage(uint32_t* usage); + uint32_t getUsage() const; // constants sp mClient; @@ -227,7 +227,6 @@ private: // protected by mSurfaceLock Rect mSwapRectangle; uint32_t mUsage; - int32_t mUsageChanged; // protected by mSurfaceLock. These are also used from lock/unlock // but in that case, they must be called form the same thread. -- cgit v1.2.3-59-g8ed1b