[ozone/wayland] Prepare WaylandCanvasSurface for completion callbacks
This is a prerequisite CL to make WaylandCanvasSurface listen to OnSubmission and OnPresentation callbacks. The following changes have been made to avoid code duplicates: * Added WaylandSurfaceGpu interface, which has two methods: OnSubmission and OnPresentation. * Moved RegisterSurface, UnregisterSurface, GetSurface from WaylandSurfaceFactory to WaylandBufferManagerGpu * Overrode WaylandSurfaceGpu methods in: ** GbmSurfacelessWayland and removed usage of WaylandSurfaceFactory. Now, everything is managed by the WaylandBufferManagerGpu instead. ** WaylandCanvasSurface and added NOTIMPLEMENTED. The idea is to propagate the results to a VSyncProvider and avoid tearing when submitting new frames. Bug: 963854 Change-Id: Ia91b359e505c152512db244b540d175ce1eeb0aa Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1640977Reviewed-by:Michael Spang <spang@chromium.org> Commit-Queue: Maksim Sisov <msisov@igalia.com> Cr-Commit-Position: refs/heads/master@{#665830}
Showing
Please register or sign in to comment