logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git

2.32.1-Properly-use-CompletionHandler-when-USE_OPENGL_OR_ES.patch (1893B)


  1. From 94cdcd289b993ed4d39c17d4b8b90db7c81a9b10 Mon Sep 17 00:00:00 2001
  2. From: "commit-queue@webkit.org"
  3. <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
  4. Date: Sat, 10 Apr 2021 22:02:50 +0000
  5. Subject: [PATCH] Properly use CompletionHandler when USE_OPENGL_OR_ES is set
  6. to OFF https://bugs.webkit.org/show_bug.cgi?id=224149
  7. Patch by Charlène Wendling <julianaito@posteo.jp> on 2021-04-10
  8. Reviewed by Fujii Hironori.
  9. * WebProcess/WebPage/CoordinatedGraphics/LayerTreeHost.h:
  10. (WebKit::LayerTreeHost::forceRepaintAsync):
  11. Canonical link: https://commits.webkit.org/236373@main
  12. git-svn-id: https://svn.webkit.org/repository/webkit/trunk@275802 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  13. ---
  14. Source/WebKit/ChangeLog | 10 ++++++++++
  15. .../WebPage/CoordinatedGraphics/LayerTreeHost.h | 2 +-
  16. 2 files changed, 11 insertions(+), 1 deletion(-)
  17. diff --git a/Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/LayerTreeHost.h b/Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/LayerTreeHost.h
  18. index 6727d16c8c0b..db65f813267d 100644
  19. --- a/Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/LayerTreeHost.h
  20. +++ b/Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/LayerTreeHost.h
  21. @@ -213,7 +213,7 @@ inline void LayerTreeHost::setRootCompositingLayer(WebCore::GraphicsLayer*) { }
  22. inline void LayerTreeHost::setViewOverlayRootLayer(WebCore::GraphicsLayer*) { }
  23. inline void LayerTreeHost::scrollNonCompositedContents(const WebCore::IntRect&) { }
  24. inline void LayerTreeHost::forceRepaint() { }
  25. -inline bool LayerTreeHost::forceRepaintAsync(CompletionHandler<void()>&) { return false; }
  26. +inline void LayerTreeHost::forceRepaintAsync(CompletionHandler<void()>&&) { }
  27. inline void LayerTreeHost::sizeDidChange(const WebCore::IntSize&) { }
  28. inline void LayerTreeHost::pauseRendering() { }
  29. inline void LayerTreeHost::resumeRendering() { }
  30. --
  31. 2.26.3