diff options
Diffstat (limited to 'services/surfaceflinger/SurfaceFlinger.cpp')
| -rw-r--r-- | services/surfaceflinger/SurfaceFlinger.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp index ec15bad456..73eaa360ef 100644 --- a/services/surfaceflinger/SurfaceFlinger.cpp +++ b/services/surfaceflinger/SurfaceFlinger.cpp @@ -4378,6 +4378,7 @@ status_t SurfaceFlinger::CheckTransactCodeCredentials(uint32_t code) { case SET_ACTIVE_CONFIG: case SET_ALLOWED_DISPLAY_CONFIGS: case GET_ALLOWED_DISPLAY_CONFIGS: + case SET_DESIRED_DISPLAY_CONFIG_SPECS: case SET_ACTIVE_COLOR_MODE: case INJECT_VSYNC: case SET_POWER_MODE: @@ -5471,6 +5472,23 @@ status_t SurfaceFlinger::getAllowedDisplayConfigs(const sp<IBinder>& displayToke return NO_ERROR; } +status_t SurfaceFlinger::setDesiredDisplayConfigSpecs(const sp<IBinder>& displayToken, + int32_t defaultModeId, float minRefreshRate, + float maxRefreshRate) { + ATRACE_CALL(); + + if (!displayToken) { + return BAD_VALUE; + } + + ALOGD("setDesiredDisplayConfigSpecs: defaultId: %d min: %.f max: %.f", defaultModeId, + minRefreshRate, maxRefreshRate); + // TODO(b/142507213): In order to minimize the changelist size, this is going to be implemented + // in the follow up CL. + + return NO_ERROR; +} + void SurfaceFlinger::SetInputWindowsListener::onSetInputWindowsFinished() { mFlinger->setInputWindowsFinished(); } |