From ed9b5b7f948a5141fdd8f9d18a17a67c31590110 Mon Sep 17 00:00:00 2001 From: Michael Gernoth Date: Fri, 8 Jan 2016 23:56:40 +0100 Subject: gralloc: disable GRALLOC_USAGE_CURSOR Disable the GRALLOC_USAGE_CURSOR-flag when gralloc.h is included as our gralloc-blob can not handle it. Change-Id: I88baf92de9a74939b65f89e9628b62be88cfaede --- BoardConfigCommon.mk | 2 +- include/hardware/gralloc.h | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 include/hardware/gralloc.h diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk index ab0f86c..a9983a6 100644 --- a/BoardConfigCommon.mk +++ b/BoardConfigCommon.mk @@ -28,7 +28,7 @@ TARGET_ARCH_VARIANT := armv7-a-neon USE_OPENGL_RENDERER := true # Global include changes -#TARGET_SPECIFIC_HEADER_PATH += $(OMAP4_NEXT_FOLDER)/include +TARGET_SPECIFIC_HEADER_PATH += $(OMAP4_NEXT_FOLDER)/include # TI Enhancement Settings OMAP_ENHANCEMENT := true diff --git a/include/hardware/gralloc.h b/include/hardware/gralloc.h new file mode 100644 index 0000000..315a6d1 --- /dev/null +++ b/include/hardware/gralloc.h @@ -0,0 +1,21 @@ +/* + * Copyright (c) 2016 The CyanogenMod Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include "../../../../libhardware/include/hardware/gralloc.h" + +#define GRALLOC_USAGE_FLAG_DISABLED (0) + +#define GRALLOC_USAGE_CURSOR GRALLOC_USAGE_FLAG_DISABLED -- cgit v1.1