diff options
| author | Mathias Agopian <mathias@google.com> | 2009-09-15 18:57:06 -0700 |
|---|---|---|
| committer | Mathias Agopian <mathias@google.com> | 2009-09-15 18:57:06 -0700 |
| commit | 8f17a762fe9e9f31e4e86cb60ff2bfb6b10fdee6 (patch) | |
| tree | f9500ecdcefae8e859433c2153dcc1b2fe642909 /include/ui | |
| parent | d6b10fb86229ed0e904138ec4604066ea85059db (diff) | |
| download | frameworks_base-8f17a762fe9e9f31e4e86cb60ff2bfb6b10fdee6.zip frameworks_base-8f17a762fe9e9f31e4e86cb60ff2bfb6b10fdee6.tar.gz frameworks_base-8f17a762fe9e9f31e4e86cb60ff2bfb6b10fdee6.tar.bz2 | |
Revert "fix [2122448] android_native_window_t::setUsage() only reallocates the first buffer"
This reverts commit 486aa963b63e20b7910e1004cebb4f0afabbd80f.
Diffstat (limited to 'include/ui')
| -rw-r--r-- | include/ui/Surface.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/ui/Surface.h b/include/ui/Surface.h index 2cedeb6..118fb83 100644 --- a/include/ui/Surface.h +++ b/include/ui/Surface.h @@ -212,7 +212,7 @@ private: void setUsage(uint32_t reqUsage); - uint32_t getUsage() const; + bool getUsage(uint32_t* usage); // constants sp<SurfaceComposerClient> mClient; @@ -227,6 +227,7 @@ 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. |
