commit | 7825c68effe771516ecfa646e9cf8f9cc269fb6c | [log] [tgz] |
---|---|---|
author | Ady Abraham <adyabr@google.com> | Mon May 17 15:12:14 2021 -0700 |
committer | Ady Abraham <adyabr@google.com> | Thu Jul 01 20:48:00 2021 +0000 |
tree | 7725c12fecc62f2657e646d7e675c225337cfddb | |
parent | bef8b8525f0d008b63aee956b10535480894483d [diff] [blame] |
SF: default display is active display For devices with multiple internal displays, choose the internal display the is powered on (if any) to be the default display that would be used mainly for vsync tracking. Bug: 187539899 Test: SF unit tests Change-Id: Icc305cdeec1c8a04729f00ff795dfbb806d8f72c Merged-In: Icc305cdeec1c8a04729f00ff795dfbb806d8f72c
diff --git a/services/surfaceflinger/Scheduler/Scheduler.cpp b/services/surfaceflinger/Scheduler/Scheduler.cpp index 6d6e3c2..384e4e9 100644 --- a/services/surfaceflinger/Scheduler/Scheduler.cpp +++ b/services/surfaceflinger/Scheduler/Scheduler.cpp
@@ -893,7 +893,7 @@ } } -void Scheduler::onPrimaryDisplayAreaChanged(uint32_t displayArea) { +void Scheduler::onActiveDisplayAreaChanged(uint32_t displayArea) { mLayerHistory->setDisplayArea(displayArea); }