diff options
author | Mathias Agopian <mathias@google.com> | 2009-09-15 17:34:04 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2009-09-15 17:34:04 -0700 |
commit | 486aa963b63e20b7910e1004cebb4f0afabbd80f (patch) | |
tree | b615e2ca3a60bf05a1315410df8fb4b7501105ad /include | |
parent | a4fe2aca527ee45ddde6ace2316cad27dd487379 (diff) | |
download | frameworks_base-486aa963b63e20b7910e1004cebb4f0afabbd80f.zip frameworks_base-486aa963b63e20b7910e1004cebb4f0afabbd80f.tar.gz frameworks_base-486aa963b63e20b7910e1004cebb4f0afabbd80f.tar.bz2 |
fix [2122448] android_native_window_t::setUsage() only reallocates the first buffer
Diffstat (limited to 'include')
-rw-r--r-- | include/ui/Surface.h | 3 |
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. |