summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2009-09-15 19:10:47 -0700
committerMathias Agopian <mathias@google.com>2009-09-15 19:21:31 -0700
commite611a6ed33d157b7ae15bdfe4e1873dc20ce7d48 (patch)
treefc1e8f0b97d6f2c4cb43c52055e5f015ffe8204a /include
parentdd8f6186775f69a8fef6213bcdc23be633d1ab6f (diff)
downloadframeworks_base-e611a6ed33d157b7ae15bdfe4e1873dc20ce7d48.zip
frameworks_base-e611a6ed33d157b7ae15bdfe4e1873dc20ce7d48.tar.gz
frameworks_base-e611a6ed33d157b7ae15bdfe4e1873dc20ce7d48.tar.bz2
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.
Diffstat (limited to 'include')
-rw-r--r--include/ui/Surface.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/ui/Surface.h b/include/ui/Surface.h
index 118fb83..2cedeb6 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<SurfaceComposerClient> 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.