Snap for 4571561 from 3c77a6bd38
to pi-release
Change-Id: I90a5e124d20415a4afbaed2911e910b5c45666b7
This commit is contained in:
commit
8f8b34d3c4
|
@ -5,6 +5,7 @@ include $(LOCAL_PATH)/../common.mk
|
|||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := gralloc_headers
|
||||
LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
|
||||
LOCAL_EXPORT_HEADER_LIBRARY_HEADERS := libhardware_headers liblog_headers
|
||||
include $(BUILD_HEADER_LIBRARY)
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
|
@ -15,6 +16,8 @@ LOCAL_MODULE_TAGS := optional
|
|||
LOCAL_C_INCLUDES := $(common_includes) \
|
||||
external/libcxx/include/
|
||||
|
||||
LOCAL_HEADER_LIBRARIES := libhardware_headers
|
||||
LOCAL_EXPORT_HEADER_LIBRARY_HEADERS := libhardware_headers liblog_headers
|
||||
LOCAL_SHARED_LIBRARIES := $(common_libs) libqdMetaData libsync
|
||||
LOCAL_CFLAGS := $(common_flags) -DLOG_TAG=\"qdgralloc\" -fPIC -Wall -std=c++11 -Werror
|
||||
LOCAL_CFLAGS += -isystem $(kernel_includes)
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
|
||||
#include <errno.h>
|
||||
|
||||
#include <cutils/log.h>
|
||||
#include <log/log.h>
|
||||
#include <hardware/gralloc1.h>
|
||||
#include <hardware/gralloc.h>
|
||||
#include <cinttypes>
|
||||
|
|
|
@ -20,6 +20,7 @@ include $(CLEAR_VARS)
|
|||
LOCAL_SRC_FILES := lights.c
|
||||
LOCAL_MODULE_RELATIVE_PATH := hw
|
||||
LOCAL_PROPRIETARY_MODULE := true
|
||||
LOCAL_HEADER_LIBRARIES := libhardware_headers
|
||||
LOCAL_SHARED_LIBRARIES := liblog
|
||||
LOCAL_CFLAGS := $(common_flags) -DLOG_TAG=\"qdlights\"
|
||||
LOCAL_CLANG := true
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
|
||||
// #define LOG_NDEBUG 0
|
||||
|
||||
#include <cutils/log.h>
|
||||
#include <log/log.h>
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
|
|
|
@ -20,7 +20,7 @@ include $(CLEAR_VARS)
|
|||
|
||||
LOCAL_MODULE_RELATIVE_PATH := hw
|
||||
LOCAL_PROPRIETARY_MODULE := true
|
||||
LOCAL_C_INCLUDES += hardware/libhardware/include
|
||||
LOCAL_HEADER_LIBRARIES := libhardware_headers
|
||||
LOCAL_CFLAGS := -Wconversion -Wall -Werror -Wno-sign-conversion
|
||||
LOCAL_CLANG := true
|
||||
LOCAL_SHARED_LIBRARIES := liblog
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
#include <errno.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <utils/Log.h>
|
||||
#include <log/log.h>
|
||||
|
||||
#include <hardware/memtrack.h>
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@ include $(CLEAR_VARS)
|
|||
LOCAL_MODULE := libqdutils
|
||||
LOCAL_PROPRIETARY_MODULE := true
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_HEADER_LIBRARIES := libhardware_headers
|
||||
LOCAL_SHARED_LIBRARIES := $(common_libs) libui libbinder libqservice
|
||||
LOCAL_C_INCLUDES := $(common_includes) $(kernel_includes)
|
||||
LOCAL_CFLAGS := $(common_flags) -DLOG_TAG=\"qdutils\" -Wno-sign-conversion
|
||||
|
@ -19,6 +20,7 @@ include $(BUILD_SHARED_LIBRARY)
|
|||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
|
||||
LOCAL_HEADER_LIBRARIES := libhardware_headers
|
||||
LOCAL_SHARED_LIBRARIES := liblog libcutils
|
||||
LOCAL_C_INCLUDES := $(common_includes)
|
||||
LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps)
|
||||
|
|
|
@ -8,6 +8,7 @@ LOCAL_MODULE_TAGS := optional
|
|||
LOCAL_C_INCLUDES := $(common_includes) $(kernel_includes)
|
||||
LOCAL_SHARED_LIBRARIES := $(common_libs) libbinder
|
||||
LOCAL_EXPORT_SHARED_LIBRARY_HEADERS := libbinder
|
||||
LOCAL_HEADER_LIBRARIES := libcutils_headers
|
||||
LOCAL_CFLAGS := $(common_flags) -DLOG_TAG=\"qdqservice\" -Wno-sign-conversion
|
||||
LOCAL_CFLAGS += -Wno-error
|
||||
LOCAL_CLANG := true
|
||||
|
|
|
@ -1090,8 +1090,8 @@ HWC2::Error HWCDisplay::GetHdrCapabilities(uint32_t *out_num_types, int32_t *out
|
|||
|
||||
|
||||
HWC2::Error HWCDisplay::CommitLayerStack(void) {
|
||||
if (shutdown_pending_ || layer_set_.empty()) {
|
||||
return HWC2::Error::None;
|
||||
if (skip_validate_ && !CanSkipValidate()) {
|
||||
validated_ = false;
|
||||
}
|
||||
|
||||
if (!validated_) {
|
||||
|
@ -1099,10 +1099,9 @@ HWC2::Error HWCDisplay::CommitLayerStack(void) {
|
|||
return HWC2::Error::NotValidated;
|
||||
}
|
||||
|
||||
if (skip_validate_ && !CanSkipValidate()) {
|
||||
DLOGV_IF(kTagCompManager, "Cannot skip validate on display: %d", id_);
|
||||
validated_ = false;
|
||||
return HWC2::Error::NotValidated;
|
||||
|
||||
if (shutdown_pending_ || layer_set_.empty()) {
|
||||
return HWC2::Error::None;
|
||||
}
|
||||
|
||||
DumpInputBuffers();
|
||||
|
@ -1189,8 +1188,11 @@ HWC2::Error HWCDisplay::PostCommitLayerStack(int32_t *out_retire_fence) {
|
|||
close(layer_buffer->acquire_fence_fd);
|
||||
layer_buffer->acquire_fence_fd = -1;
|
||||
}
|
||||
|
||||
layer->request.flags = {};
|
||||
}
|
||||
|
||||
client_target_->GetSDMLayer()->request.flags = {};
|
||||
*out_retire_fence = -1;
|
||||
if (!flush_) {
|
||||
// if swapinterval property is set to 0 then close and reset the list retire fence
|
||||
|
@ -1210,8 +1212,6 @@ HWC2::Error HWCDisplay::PostCommitLayerStack(int32_t *out_retire_fence) {
|
|||
geometry_changes_ = GeometryChanges::kNone;
|
||||
flush_ = false;
|
||||
|
||||
ClearRequestFlags();
|
||||
|
||||
return status;
|
||||
}
|
||||
|
||||
|
@ -1845,12 +1845,6 @@ void HWCDisplay::CloseAcquireFds() {
|
|||
}
|
||||
}
|
||||
|
||||
void HWCDisplay::ClearRequestFlags() {
|
||||
for (Layer *layer : layer_stack_.layers) {
|
||||
layer->request.flags = {};
|
||||
}
|
||||
}
|
||||
|
||||
std::string HWCDisplay::Dump() {
|
||||
std::ostringstream os;
|
||||
os << "-------------------------------" << std::endl;
|
||||
|
|
|
@ -238,7 +238,6 @@ class HWCDisplay : public DisplayEventHandler {
|
|||
bool IsLayerUpdating(const Layer *layer);
|
||||
uint32_t SanitizeRefreshRate(uint32_t req_refresh_rate);
|
||||
virtual void CloseAcquireFds();
|
||||
virtual void ClearRequestFlags();
|
||||
virtual void GetUnderScanConfig() { }
|
||||
|
||||
enum {
|
||||
|
|
Loading…
Reference in New Issue