New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WebGPU] Add typedef for performWithMediaPlayerOnMainThread #13943
[WebGPU] Add typedef for performWithMediaPlayerOnMainThread #13943
Conversation
EWS run on previous version of this PR (hash 8c1bcfc) |
@@ -63,10 +63,12 @@ class ObjectHeap; | |||
struct RequestAdapterOptions; | |||
} | |||
|
|||
typedef Function<void(WebCore::MediaPlayerIdentifier, Function<void(WebCore::MediaPlayer&)>&&)> PerformWithMediaPlayerOnMainThread; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we generally prefer using PerformWithMediaPlayerOnMainThread = Function<void(WebCore::MediaPlayerIdentifier, Function<void(WebCore::MediaPlayer&)>&&)>
rather than typedef
Also, can we break this into two lines?
using MediaPlayerAccessor = Function<void(WebCore::MediaPlayer&)>;
using PerformWithMediaPlayerOnMainThread = Function<void(WebCore::MediaPlayerIdentifier, MediaPlayerAccessor&&)>;
8c1bcfc
to
09519cd
Compare
EWS run on current version of this PR (hash 09519cd) |
https://bugs.webkit.org/show_bug.cgi?id=256866 <radar://109429790> Reviewed by Myles C. Maxfield. Make this easier to read with a typedef. * Source/WebKit/GPUProcess/graphics/WebGPU/RemoteAdapter.cpp: (WebKit::RemoteAdapter::RemoteAdapter): * Source/WebKit/GPUProcess/graphics/WebGPU/RemoteAdapter.h: * Source/WebKit/GPUProcess/graphics/WebGPU/RemoteDevice.cpp: (WebKit::RemoteDevice::RemoteDevice): * Source/WebKit/GPUProcess/graphics/WebGPU/RemoteDevice.h: * Source/WebKit/GPUProcess/graphics/WebGPU/RemoteGPU.cpp: (WebKit::RemoteGPU::RemoteGPU): * Source/WebKit/GPUProcess/graphics/WebGPU/RemoteGPU.h: Canonical link: https://commits.webkit.org/264131@main
09519cd
to
b2fbc85
Compare
Committed 264131@main (b2fbc85): https://commits.webkit.org/264131@main Reviewed commits have been landed. Closing PR #13943 and removing active labels. |
b2fbc85
09519cd
π§ͺ wpe-wk2π§ͺ ios-wk2-wptπ§ͺ gtk-wk2π§ͺ api-iosπ§ͺ mac-AS-debug-wk2