summaryrefslogtreecommitdiffstats
path: root/opengl
diff options
context:
space:
mode:
authorBo Hu <bohu@google.com>2014-09-30 23:57:35 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-09-30 23:57:35 +0000
commit52df44c799657504405b47bddf813f353de98b1b (patch)
tree5c2d9bf70fd7b7fe8c430c14d284969d08ec9b81 /opengl
parent9460cc47d4fccb97b3721bd6c395151dff954293 (diff)
parent7fa2b92de2058a3556e5f38a135de415bb3d5e45 (diff)
downloadandroid_device_generic_goldfish-52df44c799657504405b47bddf813f353de98b1b.tar.gz
android_device_generic_goldfish-52df44c799657504405b47bddf813f353de98b1b.tar.bz2
android_device_generic_goldfish-52df44c799657504405b47bddf813f353de98b1b.zip
am 7fa2b92d: Merge "Use more appropriate type in cb_handle_t::validate."
* commit '7fa2b92de2058a3556e5f38a135de415bb3d5e45': Use more appropriate type in cb_handle_t::validate.
Diffstat (limited to 'opengl')
-rw-r--r--opengl/system/OpenglSystemCommon/gralloc_cb.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/opengl/system/OpenglSystemCommon/gralloc_cb.h b/opengl/system/OpenglSystemCommon/gralloc_cb.h
index a0f6ed8..d2d6f35 100644
--- a/opengl/system/OpenglSystemCommon/gralloc_cb.h
+++ b/opengl/system/OpenglSystemCommon/gralloc_cb.h
@@ -71,8 +71,8 @@ struct cb_handle_t : public native_handle {
numInts = CB_HANDLE_NUM_INTS(numFds);
}
- static bool validate(cb_handle_t * hnd) {
- return (hnd &&
+ static bool validate(const cb_handle_t* hnd) {
+ return (hnd &&
hnd->version == sizeof(native_handle) &&
hnd->magic == BUFFER_HANDLE_MAGIC &&
hnd->numInts == CB_HANDLE_NUM_INTS(hnd->numFds));