summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordianlujitao <dianlujitao@gmail.com>2016-08-02 20:11:17 +0800
committerdianlujitao <dianlujitao@gmail.com>2016-08-02 20:11:17 +0800
commitb86bb46b4d252bee6e9120b4f9eda5ac8619f67c (patch)
treeadaa3e762ba6afc8ecfa7bb5bae6200004ab51aa
parent193a8c93342e0b0677540cc70850e43317c54992 (diff)
downloadframeworks_native-b86bb46b4d252bee6e9120b4f9eda5ac8619f67c.zip
frameworks_native-b86bb46b4d252bee6e9120b4f9eda5ac8619f67c.tar.gz
frameworks_native-b86bb46b4d252bee6e9120b4f9eda5ac8619f67c.tar.bz2
sf: Fix compliation for non-8996 platforms
Change-Id: I3edad5934ef9d9ec523e091fa2c959bbc9770f29
-rw-r--r--services/surfaceflinger/DisplayUtils.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/services/surfaceflinger/DisplayUtils.cpp b/services/surfaceflinger/DisplayUtils.cpp
index abbb2d7..e618e89 100644
--- a/services/surfaceflinger/DisplayUtils.cpp
+++ b/services/surfaceflinger/DisplayUtils.cpp
@@ -45,9 +45,11 @@
#include <ExSurfaceFlinger/ExHWComposer.h>
#include <ExSurfaceFlinger/ExVirtualDisplaySurface.h>
#include <gralloc_priv.h>
+#ifdef SDM_TARGET
#include <qd_utils.h>
#include <display_config.h>
#endif
+#endif
#include <dlfcn.h>
#include <cutils/properties.h>
@@ -178,6 +180,7 @@ bool DisplayUtils::canAllocateHwcDisplayIdForVDS(int usage) {
#ifdef QTI_BSP
#ifdef FORCE_HWC_COPY_FOR_VIRTUAL_DISPLAYS
+#ifdef SDM_TARGET
int hdmi_node = qdutils::getHDMINode();
if(hdmi_node == HWC_DISPLAY_PRIMARY) {
int active_config = qdutils::getActiveConfig(HWC_DISPLAY_PRIMARY);
@@ -190,9 +193,12 @@ bool DisplayUtils::canAllocateHwcDisplayIdForVDS(int usage) {
}
}
} else {
+#endif
// Reserve hardware acceleration for WFD use-case
flag_mask = GRALLOC_USAGE_PRIVATE_WFD;
+#ifdef SDM_TARGET
}
+#endif
#else
// Don't allocate HWC display unless we force HWC copy, otherwise
// incompatible buffers are sent to the media stack