Skip to content
Snippets Groups Projects
Commit d4fa2de8 authored by Lingfeng Yang's avatar Lingfeng Yang
Browse files

Fix build on older apis

some gralloc0 entry points not defined for older api levels

bug: Bug: 131089111

Change-Id: If3f1843ffb2c008052a5dec87b9063d2500298f1
parent c17779dc
No related branches found
No related tags found
No related merge requests found
......@@ -73,6 +73,7 @@ ifeq (true,$(BUILD_EMULATOR_OPENGL)) # Guest build
GOLDFISH_OPENGL_SHOULD_BUILD := true
EMUGL_COMMON_CFLAGS += -DPLATFORM_SDK_VERSION=$(PLATFORM_SDK_VERSION)
EMUGL_COMMON_CFLAGS += -DPLATFORM_VERSION=$(PLATFORM_VERSION)
ifeq (O, $(PLATFORM_VERSION_CODENAME))
EMUGL_COMMON_CFLAGS += -DGOLDFISH_HIDL_GRALLOC
......
......@@ -1542,8 +1542,10 @@ struct private_module_t HAL_MODULE_INFO_SYM = {
lock: gralloc_lock,
unlock: gralloc_unlock,
perform: NULL,
#if PLATFORM_VERSION > 9 // In Q, we want to specify these, but SDK version is not 29 yet.
validateBufferSize: NULL,
getTransportSize: NULL,
#endif // PLATFORM_VERSION > 9
#if PLATFORM_SDK_VERSION >= 18
lock_ycbcr: gralloc_lock_ycbcr,
#endif // PLATFORM_SDK_VERSION >= 18
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment