summaryrefslogtreecommitdiff
authorTellen Yu <tellen.yu@amlogic.com>2017-05-23 02:01:13 (GMT)
committer Gerrit Code Review <gituser@scgit.amlogic.com>2017-05-23 02:01:13 (GMT)
commit7dc259e7540e8a85dddbf1440c7921762b1e35d3 (patch)
tree5d7e7eb9c1d79adef2753f67039500d2780d3b13
parentfa74ff03f5a80909425117700aee7648725ce013 (diff)
parent0d6780076377eeb7ee8c75b4d87879ebf7a01952 (diff)
downloadhwcomposer-7dc259e7540e8a85dddbf1440c7921762b1e35d3.zip
hwcomposer-7dc259e7540e8a85dddbf1440c7921762b1e35d3.tar.gz
hwcomposer-7dc259e7540e8a85dddbf1440c7921762b1e35d3.tar.bz2
Merge "bringup o-pdk" into pdk2017
Diffstat
-rw-r--r--hwc2/common/base/HwcLayer.cpp2
-rw-r--r--hwc2/common/base/HwcModule.cpp2
-rw-r--r--hwc2/common/composers/GE2DComposer.cpp1
-rw-r--r--hwc2/common/composers/GE2DComposer.h2
-rw-r--r--hwc2/common/devices/PhysicalDevice.cpp2
5 files changed, 6 insertions, 3 deletions
diff --git a/hwc2/common/base/HwcLayer.cpp b/hwc2/common/base/HwcLayer.cpp
index 4d8bb5f..8163478 100644
--- a/hwc2/common/base/HwcLayer.cpp
+++ b/hwc2/common/base/HwcLayer.cpp
@@ -35,7 +35,7 @@ HwcLayer::HwcLayer(hwc2_display_t& dpy)
mAcquireFence(-1),
mDataSpace(HAL_DATASPACE_UNKNOWN),
mPlaneAlpha(0.0f),
- mTransform(HAL_TRANSFORM_RESERVED),
+ mTransform(0),
mZ(0),
mBufferHnd(NULL),
mInitialized(false)
diff --git a/hwc2/common/base/HwcModule.cpp b/hwc2/common/base/HwcModule.cpp
index 9b3a34b..5af1713 100644
--- a/hwc2/common/base/HwcModule.cpp
+++ b/hwc2/common/base/HwcModule.cpp
@@ -544,6 +544,8 @@ hwc2_function_pointer_t hwc2_getFunction(struct hwc2_device* device,
return reinterpret_cast<hwc2_function_pointer_t>(getActiveConfig);
case HWC2_FUNCTION_GET_CHANGED_COMPOSITION_TYPES:
return reinterpret_cast<hwc2_function_pointer_t>(getChangedCompositionTypes);
+ case HWC2_FUNCTION_GET_CLIENT_TARGET_SUPPORT:
+ return reinterpret_cast<hwc2_function_pointer_t>(getClientTargetSupport);
case HWC2_FUNCTION_GET_COLOR_MODES:
return reinterpret_cast<hwc2_function_pointer_t>(getColorModes);
case HWC2_FUNCTION_GET_DISPLAY_ATTRIBUTE:
diff --git a/hwc2/common/composers/GE2DComposer.cpp b/hwc2/common/composers/GE2DComposer.cpp
index ddaa229..591b495 100644
--- a/hwc2/common/composers/GE2DComposer.cpp
+++ b/hwc2/common/composers/GE2DComposer.cpp
@@ -10,6 +10,7 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/fcntl.h>
+#include <cutils/atomic.h>
namespace android {
namespace amlogic {
diff --git a/hwc2/common/composers/GE2DComposer.h b/hwc2/common/composers/GE2DComposer.h
index 22d2f35..c71c115 100644
--- a/hwc2/common/composers/GE2DComposer.h
+++ b/hwc2/common/composers/GE2DComposer.h
@@ -22,7 +22,7 @@ public:
LayerState()
: mBufferHnd(NULL),
mBlendMode(0),
- mTransform(HAL_TRANSFORM_RESERVED),
+ mTransform(0),
mBufferFd(-1) {
}
diff --git a/hwc2/common/devices/PhysicalDevice.cpp b/hwc2/common/devices/PhysicalDevice.cpp
index 214480f..0afbb54 100644
--- a/hwc2/common/devices/PhysicalDevice.cpp
+++ b/hwc2/common/devices/PhysicalDevice.cpp
@@ -1449,7 +1449,7 @@ int32_t PhysicalDevice::getLineValue(const char *lineStr, const char *magicStr)
return 0;
}
- if (NULL != (pos = strstr(lineStr, magicStr))) {
+ if (NULL != (pos = strstr((char *)lineStr, magicStr))) {
pos = pos + strlen(magicStr);
char* start = pos;
while (*start != '\n' && (strlen(start) > 0))