Commit 5db15b8 Daz Jones
committed Oct 19, 2013
1 parent bc15701 commit 5db15b8 Copy full SHA for 5db15b8
File tree 8 files changed +22
-14
lines changed
8 files changed +22
-14
lines changed Original file line number Diff line number Diff line change 1
1
# Enables the listed display HAL modules
2
2
# libs to be built for QCOM targets only
3
3
4
- ifeq ($(BOARD_USES_QCOM_HARDWARE ) ,true)
4
+ ifeq ($(TARGET_QCOM_DISPLAY_VARIANT ) ,legacy)
5
+
5
6
display-hals := libgralloc libgenlock libcopybit
6
7
display-hals += libhwcomposer liboverlay libqdutils
8
+ display-hals += libtilerenderer
7
9
8
10
ifneq ($(TARGET_PROVIDES_LIBLIGHTS ) ,true)
9
11
display-hals += liblight
10
12
endif
11
13
12
- endif
13
-
14
- display-hals += libtilerenderer
15
-
16
14
include $(call all-named-subdir-makefiles,$(display-hals ) )
15
+
16
+ endif
Original file line number Diff line number Diff line change 1
1
# 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
7
7
8
8
ifeq ($(TARGET_USES_POST_PROCESSING ) ,true)
9
9
common_flags += -DUSES_POST_PROCESSING
Original file line number Diff line number Diff line change 39
39
#include " gr.h"
40
40
#include " comptype.h"
41
41
42
+ ANDROID_SINGLETON_STATIC_INSTANCE (qdutils::QCCompositionType);
43
+
42
44
using namespace gralloc ;
43
45
using namespace qdutils ;
44
46
using android::sp;
Original file line number Diff line number Diff line change @@ -316,7 +316,12 @@ int mapFrameBufferLocked(struct private_module_t* module)
316
316
float xdpi = (info.xres * 25 .4f ) / info.width ;
317
317
float ydpi = (info.yres * 25 .4f ) / info.height ;
318
318
// The reserved[4] field is used to store FPS by the driver.
319
+ #ifndef REFRESH_RATE
319
320
float fps = info.reserved [4 ];
321
+ #else
322
+ float fps = REFRESH_RATE;
323
+ #warning "refresh rate set via makefile to REFRESH_RATE"
324
+ #endif
320
325
321
326
ALOGI (" using (fd=%d)\n "
322
327
" id = %s\n "
Original file line number Diff line number Diff line change @@ -82,7 +82,6 @@ base: {
82
82
lock: gralloc_lock,
83
83
unlock: gralloc_unlock,
84
84
perform: gralloc_perform,
85
- reserved_proc: {0 },
86
85
},
87
86
framebuffer: 0 ,
88
87
fbFormat: 0 ,
Original file line number Diff line number Diff line change 72
72
*/
73
73
GRALLOC_USAGE_PRIVATE_UNSYNCHRONIZED = 0X04000000 ,
74
74
75
+ /* Buffer content should be displayed on an primary display only */
76
+ GRALLOC_USAGE_PRIVATE_INTERNAL_ONLY = 0x04000000 ,
77
+
75
78
/* Buffer content should be displayed on an external display only */
76
79
GRALLOC_USAGE_PRIVATE_EXTERNAL_ONLY = 0x08000000 ,
77
80
Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ include $(CLEAR_VARS)
5
5
LOCAL_MODULE := libqdutils
6
6
LOCAL_MODULE_TAGS := optional
7
7
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
10
10
11
11
LOCAL_CFLAGS := $(common_flags )
12
12
LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps )
Original file line number Diff line number Diff line change @@ -90,5 +90,4 @@ inline QCCompositionType::QCCompositionType()
90
90
91
91
}
92
92
}; // namespace qdutils
93
- ANDROID_SINGLETON_STATIC_INSTANCE (qdutils::QCCompositionType);
94
93
#endif // INCLUDE_LIBQCOM_COMPTYPES
You can’t perform that action at this time.
0 commit comments