diff options
author | Linux Build Service Account <lnxbuild@localhost> | 2018-03-22 12:37:00 -0700 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2018-03-22 12:37:00 -0700 |
commit | 155a6fc323d805420439e375f37fd327365d5ee6 (patch) | |
tree | 69c1f221b23564af46b535b235d8d64b1ff1c2ae /sdm/libs/hwc2 | |
parent | 1af9fe4f0adee856f5e2527700d96baeb948db8a (diff) | |
parent | d810962d820cc0f1580dc3e979975ac72fd8c31c (diff) | |
download | display-155a6fc323d805420439e375f37fd327365d5ee6.tar.gz |
Merge "sdm: comply with treble guidelines"
Diffstat (limited to 'sdm/libs/hwc2')
-rw-r--r-- | sdm/libs/hwc2/cpuhint.cpp | 2 | ||||
-rw-r--r-- | sdm/libs/hwc2/hwc_debugger.cpp | 3 | ||||
-rw-r--r-- | sdm/libs/hwc2/hwc_display.cpp | 4 | ||||
-rw-r--r-- | sdm/libs/hwc2/hwc_display_external.cpp | 6 | ||||
-rw-r--r-- | sdm/libs/hwc2/hwc_display_primary.cpp | 8 | ||||
-rw-r--r-- | sdm/libs/hwc2/hwc_session.cpp | 2 |
6 files changed, 13 insertions, 12 deletions
diff --git a/sdm/libs/hwc2/cpuhint.cpp b/sdm/libs/hwc2/cpuhint.cpp index 551fa247..ca88eadd 100644 --- a/sdm/libs/hwc2/cpuhint.cpp +++ b/sdm/libs/hwc2/cpuhint.cpp @@ -46,7 +46,7 @@ DisplayError CPUHint::Init(HWCDebugHandler *debug_handler) { } int pre_enable_window = -1; - debug_handler->GetProperty("sdm.perf_hint_window", &pre_enable_window); + debug_handler->GetProperty(PERF_HINT_WINDOW_PROP, &pre_enable_window); if (pre_enable_window <= 0) { DLOGI("Invalid CPU Hint Pre-enable Window %d", pre_enable_window); return kErrorNotSupported; diff --git a/sdm/libs/hwc2/hwc_debugger.cpp b/sdm/libs/hwc2/hwc_debugger.cpp index 8b517995..94965d8e 100644 --- a/sdm/libs/hwc2/hwc_debugger.cpp +++ b/sdm/libs/hwc2/hwc_debugger.cpp @@ -29,6 +29,7 @@ #include <utils/constants.h> #include <cutils/properties.h> +#include <utils/debug.h> #include "hwc_debugger.h" @@ -197,7 +198,7 @@ void HWCDebugHandler::EndTrace() { int HWCDebugHandler::GetIdleTimeoutMs() { int value = IDLE_TIMEOUT_DEFAULT_MS; - debug_handler_.GetProperty("sdm.idle_time", &value); + debug_handler_.GetProperty(IDLE_TIME_PROP, &value); return value; } diff --git a/sdm/libs/hwc2/hwc_display.cpp b/sdm/libs/hwc2/hwc_display.cpp index 2cf9af1d..219fab57 100644 --- a/sdm/libs/hwc2/hwc_display.cpp +++ b/sdm/libs/hwc2/hwc_display.cpp @@ -378,7 +378,7 @@ int HWCDisplay::Init() { client_target_ = new HWCLayer(id_, buffer_allocator_); int blit_enabled = 0; - HWCDebugHandler::Get()->GetProperty("persist.hwc.blit.comp", &blit_enabled); + HWCDebugHandler::Get()->GetProperty(DISABLE_BLIT_COMPOSITION_PROP, &blit_enabled); if (needs_blit_ && blit_enabled) { // TODO(user): Add blit engine when needed } @@ -1705,7 +1705,7 @@ int HWCDisplay::SetFrameBufferResolution(uint32_t x_pixels, uint32_t y_pixels) { // By default UBWC is enabled and below property is global enable/disable for all // buffers allocated through gralloc , including framebuffer targets. - HWCDebugHandler::Get()->GetProperty("debug.gralloc.gfx_ubwc_disable", &ubwc_disabled); + HWCDebugHandler::Get()->GetProperty(DISABLE_UBWC_PROP, &ubwc_disabled); if (!ubwc_disabled) { usage |= GRALLOC_USAGE_PRIVATE_ALLOC_UBWC; flags |= private_handle_t::PRIV_FLAGS_UBWC_ALIGNED; diff --git a/sdm/libs/hwc2/hwc_display_external.cpp b/sdm/libs/hwc2/hwc_display_external.cpp index 45ed8919..21a9284a 100644 --- a/sdm/libs/hwc2/hwc_display_external.cpp +++ b/sdm/libs/hwc2/hwc_display_external.cpp @@ -76,7 +76,7 @@ int HWCDisplayExternal::Create(CoreInterface *core_intf, HWCBufferAllocator *buf external_height = primary_height; } else { int downscale_enabled = 0; - HWCDebugHandler::Get()->GetProperty("sdm.debug.downscale_external", &downscale_enabled); + HWCDebugHandler::Get()->GetProperty(ENABLE_EXTERNAL_DOWNSCALE_PROP, &downscale_enabled); if (downscale_enabled) { GetDownscaleResolution(primary_width, primary_height, &external_width, &external_height); } @@ -289,8 +289,8 @@ int HWCDisplayExternal::SetState(bool connected) { void HWCDisplayExternal::GetUnderScanConfig() { if (!display_intf_->IsUnderscanSupported()) { // Read user defined underscan width and height - HWCDebugHandler::Get()->GetProperty("sdm.external_action_safe_width", &underscan_width_); - HWCDebugHandler::Get()->GetProperty("sdm.external_action_safe_height", &underscan_height_); + HWCDebugHandler::Get()->GetProperty(EXTERNAL_ACTION_SAFE_WIDTH_PROP, &underscan_width_); + HWCDebugHandler::Get()->GetProperty(EXTERNAL_ACTION_SAFE_HEIGHT_PROP, &underscan_height_); } } diff --git a/sdm/libs/hwc2/hwc_display_primary.cpp b/sdm/libs/hwc2/hwc_display_primary.cpp index 6149831d..b8a4c7cf 100644 --- a/sdm/libs/hwc2/hwc_display_primary.cpp +++ b/sdm/libs/hwc2/hwc_display_primary.cpp @@ -62,8 +62,8 @@ int HWCDisplayPrimary::Create(CoreInterface *core_intf, BufferAllocator *buffer_ hwc_display_primary->GetMixerResolution(&primary_width, &primary_height); int width = 0, height = 0; - HWCDebugHandler::Get()->GetProperty("sdm.fb_size_width", &width); - HWCDebugHandler::Get()->GetProperty("sdm.fb_size_height", &height); + HWCDebugHandler::Get()->GetProperty(FB_WIDTH_PROP, &width); + HWCDebugHandler::Get()->GetProperty(FB_HEIGHT_PROP, &height); if (width > 0 && height > 0) { primary_width = UINT32(width); primary_height = UINT32(height); @@ -102,7 +102,7 @@ int HWCDisplayPrimary::Init() { use_metadata_refresh_rate_ = true; int disable_metadata_dynfps = 0; - HWCDebugHandler::Get()->GetProperty("persist.metadata_dynfps.disable", &disable_metadata_dynfps); + HWCDebugHandler::Get()->GetProperty(DISABLE_METADATA_DYNAMIC_FPS_PROP, &disable_metadata_dynfps); if (disable_metadata_dynfps) { use_metadata_refresh_rate_ = false; } @@ -375,7 +375,7 @@ DisplayError HWCDisplayPrimary::SetDisplayMode(uint32_t mode) { void HWCDisplayPrimary::SetMetaDataRefreshRateFlag(bool enable) { int disable_metadata_dynfps = 0; - HWCDebugHandler::Get()->GetProperty("persist.metadata_dynfps.disable", &disable_metadata_dynfps); + HWCDebugHandler::Get()->GetProperty(DISABLE_METADATA_DYNAMIC_FPS_PROP, &disable_metadata_dynfps); if (disable_metadata_dynfps) { return; } diff --git a/sdm/libs/hwc2/hwc_session.cpp b/sdm/libs/hwc2/hwc_session.cpp index 11ecb2ec..b863346b 100644 --- a/sdm/libs/hwc2/hwc_session.cpp +++ b/sdm/libs/hwc2/hwc_session.cpp @@ -289,7 +289,7 @@ void HWCSession::GetCapabilities(struct hwc2_device *device, uint32_t *outCount, int value = 0; bool disable_skip_validate = false; - if (Debug::Get()->GetProperty("sdm.debug.disable_skip_validate", &value) == kErrorNone) { + if (Debug::Get()->GetProperty(DISABLE_SKIP_VALIDATE_PROP, &value) == kErrorNone) { disable_skip_validate = (value == 1); } uint32_t count = 1 + (disable_skip_validate ? 0 : 1); |