Skip to content

Commit

Permalink
overlay: Allow Mdss rotator support to be optional
Browse files Browse the repository at this point in the history
Pre-MR1 kernels doesn't have this.

Change-Id: Ib149b48e84c3bd514f9e984db6076ab049b992c3
  • Loading branch information
arco committed Apr 18, 2013
1 parent 6deca06 commit 3bbf7c8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion liboverlay/Android.mk
Expand Up @@ -16,7 +16,10 @@ LOCAL_SRC_FILES := \
overlayMdp.cpp \
overlayRotator.cpp \
overlayMdpRot.cpp \
overlayMdssRot.cpp \
pipes/overlayGenPipe.cpp

ifeq ($(BOARD_OVERLAY_MDSS), true)
LOCAL_SRC_FILES += overlayMdssRot.cpp
endif

include $(BUILD_SHARED_LIBRARY)
2 changes: 2 additions & 0 deletions liboverlay/overlayRotator.cpp
Expand Up @@ -31,8 +31,10 @@ Rotator* Rotator::getRotator() {
int type = getRotatorHwType();
if(type == TYPE_MDP) {
return new MdpRot(); //will do reset
#ifdef OVERLAY_MDSS
} else if(type == TYPE_MDSS) {
return new MdssRot();
#endif
} else {
ALOGE("%s Unknown h/w type %d", __FUNCTION__, type);
return NULL;
Expand Down

0 comments on commit 3bbf7c8

Please sign in to comment.