Merge "sdm: Add property to define max video upscaling limit."

This commit is contained in:
Linux Build Service Account
2016-08-13 13:52:15 -07:00
committed by Gerrit - the friendly Code Review server
2 changed files with 8 additions and 0 deletions

View File

@@ -69,6 +69,7 @@ class Debug {
static bool IsRotatorDownScaleDisabled();
static bool IsDecimationDisabled();
static int GetMaxPipesPerMixer(DisplayType display_type);
static int GetMaxVideoUpscale();
static bool IsVideoModeEnabled();
static bool IsRotatorUbwcDisabled();
static bool IsRotatorSplitDisabled();

View File

@@ -99,6 +99,13 @@ int Debug::GetMaxPipesPerMixer(DisplayType display_type) {
return value;
}
int Debug::GetMaxVideoUpscale() {
int value = 0;
debug_.debug_handler_->GetProperty("sdm.video_max_upscale", &value);
return value;
}
bool Debug::IsVideoModeEnabled() {
int value = 0;
debug_.debug_handler_->GetProperty("sdm.video_mode_panel", &value);