[webkit-changes] [WebKit/WebKit] 263fc5: [CoordinatedGraphics] Add CompositingRunLoop::isCu...

Carlos Garcia Campos noreply at github.com
Fri Oct 7 01:49:54 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 263fc5c51836e9287dbebd17a00c92992aa59072
      https://github.com/WebKit/WebKit/commit/263fc5c51836e9287dbebd17a00c92992aa59072
  Author: Carlos Garcia Campos <cgarcia at igalia.com>
  Date:   2022-10-07 (Fri, 07 Oct 2022)

  Changed paths:
    M Source/WebKit/Shared/CoordinatedGraphics/threadedcompositor/CompositingRunLoop.cpp
    M Source/WebKit/Shared/CoordinatedGraphics/threadedcompositor/CompositingRunLoop.h
    M Source/WebKit/Shared/CoordinatedGraphics/threadedcompositor/ThreadedCompositor.cpp

  Log Message:
  -----------
  [CoordinatedGraphics] Add CompositingRunLoop::isCurrent()
https://bugs.webkit.org/show_bug.cgi?id=246146

Reviewed by Žan Doberšek.

And use it instead of !RunLoop::isMain(), since we really want to check
not only that current thread is not the main one, but that it's the
threaded compositor one.

* Source/WebKit/Shared/CoordinatedGraphics/threadedcompositor/CompositingRunLoop.cpp:
(WebKit::CompositingRunLoop::isCurrent const):
* Source/WebKit/Shared/CoordinatedGraphics/threadedcompositor/CompositingRunLoop.h:
* Source/WebKit/Shared/CoordinatedGraphics/threadedcompositor/ThreadedCompositor.cpp:
(WebKit::ThreadedCompositor::createGLContext):
(WebKit::ThreadedCompositor::frameComplete):

Canonical link: https://commits.webkit.org/255258@main




More information about the webkit-changes mailing list