summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2009-09-15 17:34:04 -0700
committerMathias Agopian <mathias@google.com>2009-09-15 17:34:04 -0700
commitd18afab9d6a89d14c5c583a7d976665af4765a6b (patch)
treecf2dfc2b32234209839362abdf5f2cdf526a1cfb /include
parent1a3f52c9ac443aab383b13aae9fe34f9c575e105 (diff)
downloadframeworks_native-d18afab9d6a89d14c5c583a7d976665af4765a6b.zip
frameworks_native-d18afab9d6a89d14c5c583a7d976665af4765a6b.tar.gz
frameworks_native-d18afab9d6a89d14c5c583a7d976665af4765a6b.tar.bz2
fix [2122448] android_native_window_t::setUsage() only reallocates the first buffer
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.