Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 63f9f4e9 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Expose configGroup to DisplayConfig" into rvc-dev

parents f49a7c47 ff731d8b
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -33,6 +33,7 @@ struct DisplayConfig {
    nsecs_t appVsyncOffset = 0;
    nsecs_t appVsyncOffset = 0;
    nsecs_t sfVsyncOffset = 0;
    nsecs_t sfVsyncOffset = 0;
    nsecs_t presentationDeadline = 0;
    nsecs_t presentationDeadline = 0;
    int configGroup = -1;
};
};


static_assert(std::is_trivially_copyable_v<DisplayConfig>);
static_assert(std::is_trivially_copyable_v<DisplayConfig>);
+1 −0
Original line number Original line Diff line number Diff line
@@ -853,6 +853,7 @@ status_t SurfaceFlinger::getDisplayConfigs(const sp<IBinder>& displayToken,
        const auto offsets = mPhaseConfiguration->getOffsetsForRefreshRate(config.refreshRate);
        const auto offsets = mPhaseConfiguration->getOffsetsForRefreshRate(config.refreshRate);
        config.appVsyncOffset = offsets.late.app;
        config.appVsyncOffset = offsets.late.app;
        config.sfVsyncOffset = offsets.late.sf;
        config.sfVsyncOffset = offsets.late.sf;
        config.configGroup = hwConfig->getConfigGroup();


        // This is how far in advance a buffer must be queued for
        // This is how far in advance a buffer must be queued for
        // presentation at a given time.  If you want a buffer to appear
        // presentation at a given time.  If you want a buffer to appear