SetAuthoritativeVSyncInterval() isn't doing anything useful anymore. The function is only used on Chrome OS. It sets an authoritative vsync interval based on the refresh rate Ozone DRM tells it. This is the same vsync interval that Ozone DRM returns through the command buffer. SetAuthoritativeVSyncInterval() seems to be left over from X11 Chrome OS where XrandR would return a more accurate refresh rate than the GL context.
In addition to not being necessary, the first call to GpuProcessTransportFactory::SetAuthoritativeVSyncInterval() on startup or when a display is added happens before |per_compositor_data_| has an entry for the compositor. It takes the early out here:
https://cs.chromium.org/chromium/src/content/browser/compositor/gpu_process_transport_factory.cc?l=849&rcl=450d772cac4a3f1306eeaf60f941135f327247ba
SetAuthoritativeVSyncInterval() will only get called again if the user changes the display configuration after the display is added, so most of the time the authoritative interval isn't even set.
I don't see any reason to not remove the function?
Comment 1 by kylec...@chromium.org
, Sep 18