diff options
author | John Stultz <john.stultz@linaro.org> | 2019-01-15 19:42:22 -0800 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2019-01-15 19:42:22 -0800 |
commit | 9faff93a4ff7b0e986e591bebcc2df4ae48f252f (patch) | |
tree | 58de81c9181ad085c35cac5cfd28774cfdca15f7 | |
parent | 8cb53ad32fe09d5dcdf719b906fe4412c10a0445 (diff) | |
parent | 2a6465beb65cd5275bd008bb146515c46ddf5053 (diff) | |
download | drm_hwcomposer-9faff93a4ff7b0e986e591bebcc2df4ae48f252f.tar.gz |
Merge remote-tracking branch 'aosp/upstream-master' into HEAD am: bdf5d72c1b am: d487ba5aa5
am: 2a6465beb6
Change-Id: Ia461d2f654df3099aa1b32c60793afd123d47f5d
-rw-r--r-- | Android.mk | 3 | ||||
-rw-r--r-- | drmhwctwo.cpp | 17 |
2 files changed, 5 insertions, 15 deletions
@@ -77,9 +77,6 @@ LOCAL_SRC_FILES := \ LOCAL_CFLAGS := $(common_drm_hwcomposer_cflags) -# Suppress warnings until they are fixed in drmhwctwo.cpp -LOCAL_CFLAGS += -Wno-error=implicit-fallthrough - LOCAL_CPPFLAGS += \ -DHWC2_USE_CPP11 \ -DHWC2_INCLUDE_STRINGIFICATION diff --git a/drmhwctwo.cpp b/drmhwctwo.cpp index cd79e7b..cf4ec11 100644 --- a/drmhwctwo.cpp +++ b/drmhwctwo.cpp @@ -745,18 +745,11 @@ HWC2::Error DrmHwcTwo::HwcDisplay::ValidateDisplay(uint32_t *num_types, for (std::pair<const hwc2_layer_t, DrmHwcTwo::HwcLayer> &l : layers_) { DrmHwcTwo::HwcLayer &layer = l.second; - switch (layer.sf_type()) { - case HWC2::Composition::Device: - if (layer.validated_type() == HWC2::Composition::Device) - break; - // fall thru - case HWC2::Composition::SolidColor: - case HWC2::Composition::Cursor: - case HWC2::Composition::Sideband: - default: - layer.set_validated_type(HWC2::Composition::Client); - ++*num_types; - break; + // We can only handle layers of Device type, send everything else to SF + if (layer.sf_type() != HWC2::Composition::Device || + layer.validated_type() != HWC2::Composition::Device) { + layer.set_validated_type(HWC2::Composition::Client); + ++*num_types; } } return *num_types ? HWC2::Error::HasChanges : HWC2::Error::None; |