gralloc: use ANDROID_API_LEVEL for the real sdk version

The previous ANDROID_VERSION is also checked against the wrong version
because the fp16 and 10bit rgba formats were released in 8.0. So this
change also fixes to check against api level 26 instead.

BUG=b:199524294
TEST=emerge-$BOARD arc-cros-gralloc

Change-Id: I16c1dba4901b374c5aecbc0e0f859638d08895aa
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/minigbm/+/3158977
Tested-by: Yiwei Zhang <zzyiwei@chromium.org>
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
Commit-Queue: Yiwei Zhang <zzyiwei@chromium.org>
1 file changed