Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(121)

Unified Diff: ui/ozone/platform/wayland/wayland_surface_factory.cc

Issue 1742883002: ozone/platform/wayland: Drop WaylandWindow::GetWidget() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@wayland-test1
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
« no previous file with comments | « ui/ozone/platform/wayland/wayland_display.cc ('k') | ui/ozone/platform/wayland/wayland_surface_factory_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698