From 3ae8bf50923945a3994c8102685101767e8160e8 Mon Sep 17 00:00:00 2001 From: Mykola Ostrovskyy Date: Fri, 14 Dec 2012 12:28:36 +0200 Subject: hwc: Support enumeration of display attributes Basic implementation of HWC 1.1 callbacks for display discovery. Only primary LCD display is supported. Change-Id: I6c48378f520887c143b2a6e03db5b4ab7322cb71 Signed-off-by: Mykola Ostrovskyy --- hwc/Android.mk | 2 +- hwc/display.c | 182 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ hwc/display.h | 48 +++++++++++++++ hwc/hwc.c | 25 ++++++-- hwc/hwc_dev.h | 2 + 5 files changed, 252 insertions(+), 7 deletions(-) create mode 100644 hwc/display.c create mode 100644 hwc/display.h (limited to 'hwc') diff --git a/hwc/Android.mk b/hwc/Android.mk index dd83714..e8e59f0 100644 --- a/hwc/Android.mk +++ b/hwc/Android.mk @@ -8,7 +8,7 @@ LOCAL_ARM_MODE := arm LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/../vendor/lib/hw LOCAL_SHARED_LIBRARIES := liblog libEGL libcutils libutils libhardware libhardware_legacy libz \ libion_ti -LOCAL_SRC_FILES := hwc.c rgz_2d.c dock_image.c sw_vsync.c +LOCAL_SRC_FILES := hwc.c rgz_2d.c dock_image.c sw_vsync.c display.c LOCAL_STATIC_LIBRARIES := libpng LOCAL_MODULE_TAGS := optional diff --git a/hwc/display.c b/hwc/display.c new file mode 100644 index 0000000..bd59813 --- /dev/null +++ b/hwc/display.c @@ -0,0 +1,182 @@ +/* + * Copyright (C) Texas Instruments - http://www.ti.com/ + * + * 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 +#include +#include +#include + +#include + +#include