diff options
author | Jamie Gennis <jgennis@google.com> | 2011-02-27 14:10:20 -0800 |
---|---|---|
committer | Jamie Gennis <jgennis@google.com> | 2011-02-28 12:24:40 -0800 |
commit | 9d4d6c101d90d4a1d1ca9413cf3eb89d1f1898d6 (patch) | |
tree | 0942023183333661cfad18434702b533213a89cd /libs/surfaceflinger_client | |
parent | 2e158a769d3903750f3f3e1ae0c8a980f8c16038 (diff) | |
download | frameworks_native-9d4d6c101d90d4a1d1ca9413cf3eb89d1f1898d6.zip frameworks_native-9d4d6c101d90d4a1d1ca9413cf3eb89d1f1898d6.tar.gz frameworks_native-9d4d6c101d90d4a1d1ca9413cf3eb89d1f1898d6.tar.bz2 |
Add the MIN_UNDEQUEUED_BUFFERS query to ANW.
This change adds a new query to ANativeWindow for getting the minimum
number of buffers that must be left un-dequeued during the steady-state
operation of the ANativeWindow.
Change-Id: Ie8c461fc26b02ecde02ddb4f95bf763662cf1551
Related-Bug: 3356050
Diffstat (limited to 'libs/surfaceflinger_client')
-rw-r--r-- | libs/surfaceflinger_client/Surface.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/surfaceflinger_client/Surface.cpp b/libs/surfaceflinger_client/Surface.cpp index 1e9bd74..2c77edf 100644 --- a/libs/surfaceflinger_client/Surface.cpp +++ b/libs/surfaceflinger_client/Surface.cpp @@ -709,6 +709,9 @@ int Surface::query(int what, int* value) case NATIVE_WINDOW_FORMAT: *value = int(mFormat); return NO_ERROR; + case NATIVE_WINDOW_MIN_UNDEQUEUED_BUFFERS: + *value = MIN_UNDEQUEUED_BUFFERS; + return NO_ERROR; } return BAD_VALUE; } |