diff options
Diffstat (limited to 'composer/hwc_display.cpp')
-rw-r--r-- | composer/hwc_display.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/composer/hwc_display.cpp b/composer/hwc_display.cpp index f4c2c73a..42b0770f 100644 --- a/composer/hwc_display.cpp +++ b/composer/hwc_display.cpp @@ -2895,7 +2895,7 @@ HWC2::Error HWCDisplay::SetActiveConfigWithConstraints( vsync_period_change_constraints->desiredTimeNanos); out_timeline->refreshRequired = true; - if (info.x_pixels != fb_width_ || info.y_pixels != fb_height_) { + if (is_client_up_ && (info.x_pixels != fb_width_ || info.y_pixels != fb_height_)) { out_timeline->refreshRequired = false; fb_width_ = info.x_pixels; fb_height_ = info.y_pixels; @@ -3571,4 +3571,8 @@ DisplayError HWCDisplay::NotifyFpsMitigation(const float fps, return kErrorNone; } +void HWCDisplay::MarkClientActive(bool is_client_up) { + is_client_up_ = is_client_up; +} + } // namespace sdm |