Index: ui/ozone/platform/wayland/wayland_surface_factory.cc |
diff --git a/ui/ozone/platform/wayland/wayland_surface_factory.cc b/ui/ozone/platform/wayland/wayland_surface_factory.cc |
index ff667e3f59994e8772b8f890e4ef896e79bfaf46..8700c44c7a3ee3c2a200c04f1c94119ccd7fd1d0 100644 |
--- a/ui/ozone/platform/wayland/wayland_surface_factory.cc |
+++ b/ui/ozone/platform/wayland/wayland_surface_factory.cc |
@@ -103,7 +103,7 @@ void WaylandCanvasSurface::PresentCanvas(const gfx::Rect& damage) { |
// draw to the buffer at any time, even if it is being used by the Wayland |
// compositor. Instead, we should track buffer releases and frame callbacks |
// from Wayland to ensure perfect frames (while minimizing copies). |
- wl_surface* surface = window_->GetSurface(); |
+ wl_surface* surface = window_->surface(); |
wl_surface_damage(surface, damage.x(), damage.y(), damage.width(), |
damage.height()); |
wl_surface_attach(surface, buffer_.get(), 0, 0); |