diff options
author | Bo Hu <bohu@google.com> | 2014-09-30 23:57:35 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-09-30 23:57:35 +0000 |
commit | 52df44c799657504405b47bddf813f353de98b1b (patch) | |
tree | 5c2d9bf70fd7b7fe8c430c14d284969d08ec9b81 /opengl | |
parent | 9460cc47d4fccb97b3721bd6c395151dff954293 (diff) | |
parent | 7fa2b92de2058a3556e5f38a135de415bb3d5e45 (diff) | |
download | android_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.h | 4 |
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)); |