Skip to content

Commit 5db15b8

Browse files
author
Daz Jones
committedOct 19, 2013
Legacify and update for 4.3
1 parent bc15701 commit 5db15b8

File tree

8 files changed

+22
-14
lines changed

8 files changed

+22
-14
lines changed
 

‎Android.mk

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
#Enables the listed display HAL modules
22
#libs to be built for QCOM targets only
33

4-
ifeq ($(BOARD_USES_QCOM_HARDWARE),true)
4+
ifeq ($(TARGET_QCOM_DISPLAY_VARIANT),legacy)
5+
56
display-hals := libgralloc libgenlock libcopybit
67
display-hals += libhwcomposer liboverlay libqdutils
8+
display-hals += libtilerenderer
79

810
ifneq ($(TARGET_PROVIDES_LIBLIGHTS),true)
911
display-hals += liblight
1012
endif
1113

12-
endif
13-
14-
display-hals += libtilerenderer
15-
1614
include $(call all-named-subdir-makefiles,$(display-hals))
15+
16+
endif

‎common.mk

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#Common headers
2-
common_includes := hardware/qcom/display/libgralloc
3-
common_includes += hardware/qcom/display/libgenlock
4-
common_includes += hardware/qcom/display/liboverlay
5-
common_includes += hardware/qcom/display/libcopybit
6-
common_includes += hardware/qcom/display/libqdutils
2+
common_includes := hardware/qcom/display-legacy/libgralloc
3+
common_includes += hardware/qcom/display-legacy/libgenlock
4+
common_includes += hardware/qcom/display-legacy/liboverlay
5+
common_includes += hardware/qcom/display-legacy/libcopybit
6+
common_includes += hardware/qcom/display-legacy/libqdutils
77

88
ifeq ($(TARGET_USES_POST_PROCESSING),true)
99
common_flags += -DUSES_POST_PROCESSING

‎libgralloc/alloc_controller.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@
3939
#include "gr.h"
4040
#include "comptype.h"
4141

42+
ANDROID_SINGLETON_STATIC_INSTANCE(qdutils::QCCompositionType);
43+
4244
using namespace gralloc;
4345
using namespace qdutils;
4446
using android::sp;

‎libgralloc/framebuffer.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,12 @@ int mapFrameBufferLocked(struct private_module_t* module)
316316
float xdpi = (info.xres * 25.4f) / info.width;
317317
float ydpi = (info.yres * 25.4f) / info.height;
318318
//The reserved[4] field is used to store FPS by the driver.
319+
#ifndef REFRESH_RATE
319320
float fps = info.reserved[4];
321+
#else
322+
float fps = REFRESH_RATE;
323+
#warning "refresh rate set via makefile to REFRESH_RATE"
324+
#endif
320325

321326
ALOGI("using (fd=%d)\n"
322327
"id = %s\n"

‎libgralloc/gralloc.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ base: {
8282
lock: gralloc_lock,
8383
unlock: gralloc_unlock,
8484
perform: gralloc_perform,
85-
reserved_proc: {0},
8685
},
8786
framebuffer: 0,
8887
fbFormat: 0,

‎libgralloc/gralloc_priv.h

+3
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ enum {
7272
*/
7373
GRALLOC_USAGE_PRIVATE_UNSYNCHRONIZED = 0X04000000,
7474

75+
/* Buffer content should be displayed on an primary display only */
76+
GRALLOC_USAGE_PRIVATE_INTERNAL_ONLY = 0x04000000,
77+
7578
/* Buffer content should be displayed on an external display only */
7679
GRALLOC_USAGE_PRIVATE_EXTERNAL_ONLY = 0x08000000,
7780

‎libqdutils/Android.mk

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ include $(CLEAR_VARS)
55
LOCAL_MODULE := libqdutils
66
LOCAL_MODULE_TAGS := optional
77
LOCAL_SHARED_LIBRARIES := $(common_libs) libdl libui libcutils
8-
LOCAL_C_INCLUDES += $(TOP)/hardware/qcom/display/libhwcomposer
9-
LOCAL_C_INCLUDES += $(TOP)/hardware/qcom/display/libgralloc
8+
LOCAL_C_INCLUDES += $(TOP)/hardware/qcom/display-legacy/libhwcomposer
9+
LOCAL_C_INCLUDES += $(TOP)/hardware/qcom/display-legacy/libgralloc
1010

1111
LOCAL_CFLAGS := $(common_flags)
1212
LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps)

‎libqdutils/comptype.h

-1
Original file line numberDiff line numberDiff line change
@@ -90,5 +90,4 @@ inline QCCompositionType::QCCompositionType()
9090

9191
}
9292
}; //namespace qdutils
93-
ANDROID_SINGLETON_STATIC_INSTANCE(qdutils::QCCompositionType);
9493
#endif //INCLUDE_LIBQCOM_COMPTYPES

0 commit comments

Comments
 (0)
Please sign in to comment.