Merge "Expose configGroup to DisplayConfig" into rvc-dev

This commit is contained in:
TreeHugger Robot 2020-02-28 17:43:40 +00:00 committed by Android (Google) Code Review
commit 63f9f4e9fd
2 changed files with 2 additions and 0 deletions

View file

@ -33,6 +33,7 @@ struct DisplayConfig {
nsecs_t appVsyncOffset = 0;
nsecs_t sfVsyncOffset = 0;
nsecs_t presentationDeadline = 0;
int configGroup = -1;
};
static_assert(std::is_trivially_copyable_v<DisplayConfig>);

View file

@ -853,6 +853,7 @@ status_t SurfaceFlinger::getDisplayConfigs(const sp<IBinder>& displayToken,
const auto offsets = mPhaseConfiguration->getOffsetsForRefreshRate(config.refreshRate);
config.appVsyncOffset = offsets.late.app;
config.sfVsyncOffset = offsets.late.sf;
config.configGroup = hwConfig->getConfigGroup();
// This is how far in advance a buffer must be queued for
// presentation at a given time. If you want a buffer to appear