Changeset 206961 in webkit
- Timestamp:
- Oct 8, 2016 4:12:17 PM (7 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r206960 r206961 1 2016-10-08 Emanuele Aina <emanuele.aina@collabora.com> 2 3 [GTK] Drop redundant wl_display_flush_clients() call 4 https://bugs.webkit.org/show_bug.cgi?id=161904 5 6 Reviewed by Michael Catanzaro. 7 8 The Wayland GSource::prepare() function already calls 9 wl_display_flush_clients() at every mainloop iteration, so there's no 10 need to further call it on Surface::commit(). 11 12 * UIProcess/gtk/WaylandCompositor.cpp: 13 (WebKit::WaylandCompositor::Surface::commit): 14 * UIProcess/gtk/WaylandCompositor.h: 15 1 16 2016-10-06 Darin Adler <darin@apple.com> 2 17 -
trunk/Source/WebKit2/UIProcess/gtk/WaylandCompositor.cpp
r205547 r206961 219 219 } 220 220 221 boolWaylandCompositor::Surface::commit()221 void WaylandCompositor::Surface::commit() 222 222 { 223 223 EGLDisplay eglDisplay = PlatformDisplay::sharedDisplay().eglDisplay(); … … 226 226 m_image = m_pendingBuffer->createImage(); 227 227 if (m_image == EGL_NO_IMAGE_KHR) 228 return false;228 return; 229 229 230 230 makePendingBufferCurrent(); … … 241 241 wl_resource_destroy(resource); 242 242 } 243 244 return true;245 243 } 246 244 … … 289 287 if (!surface) 290 288 return; 291 292 if (surface->commit()) 293 wl_display_flush_clients(wl_client_get_display(client)); 289 surface->commit(); 294 290 }, 295 291 // setBufferTransformCallback -
trunk/Source/WebKit2/UIProcess/gtk/WaylandCompositor.h
r205116 r206961 86 86 void attachBuffer(struct wl_resource*); 87 87 void requestFrame(struct wl_resource*); 88 boolcommit();88 void commit(); 89 89 90 90 void setWebPage(WebPageProxy* webPage) { m_webPage = webPage; }
Note: See TracChangeset
for help on using the changeset viewer.