diff options
author | Iliyan Malchev <malchev@google.com> | 2011-04-14 16:54:38 -0700 |
---|---|---|
committer | Iliyan Malchev <malchev@google.com> | 2011-05-03 15:49:40 -0700 |
commit | 4d7c1ce651bd5e283e694fa34641e1dc080613c0 (patch) | |
tree | cfb1f708b760f20b08ec81a6bc4d25c59ec8cc04 /include/surfaceflinger | |
parent | 9c7ac0d142eaf4b083a309299ab023932a9bb109 (diff) | |
download | frameworks_base-4d7c1ce651bd5e283e694fa34641e1dc080613c0.zip frameworks_base-4d7c1ce651bd5e283e694fa34641e1dc080613c0.tar.gz frameworks_base-4d7c1ce651bd5e283e694fa34641e1dc080613c0.tar.bz2 |
frameworks/base: make the ANativeWindow query() method const
query() does not modify the object's data, so it needs to be a const method
Change-Id: I67c40a3c865461e6f1cc2193fd2d74286ff6ac8f
Signed-off-by: Iliyan Malchev <malchev@google.com>
Diffstat (limited to 'include/surfaceflinger')
-rw-r--r-- | include/surfaceflinger/Surface.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/surfaceflinger/Surface.h b/include/surfaceflinger/Surface.h index 3923e61..31f2496 100644 --- a/include/surfaceflinger/Surface.h +++ b/include/surfaceflinger/Surface.h @@ -206,14 +206,14 @@ private: static int cancelBuffer(ANativeWindow* window, android_native_buffer_t* buffer); static int lockBuffer(ANativeWindow* window, android_native_buffer_t* buffer); static int queueBuffer(ANativeWindow* window, android_native_buffer_t* buffer); - static int query(ANativeWindow* window, int what, int* value); + static int query(const ANativeWindow* window, int what, int* value); static int perform(ANativeWindow* window, int operation, ...); int dequeueBuffer(android_native_buffer_t** buffer); int lockBuffer(android_native_buffer_t* buffer); int queueBuffer(android_native_buffer_t* buffer); int cancelBuffer(android_native_buffer_t* buffer); - int query(int what, int* value); + int query(int what, int* value) const; int perform(int operation, va_list args); void dispatch_setUsage(va_list args); |