-
Notifications
You must be signed in to change notification settings - Fork 1.7k
[WebGPU] Simplify the lifetime of GPUPresentationContext within GPUCanvasContextCocoa #9284
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
Conversation
e8b2a93 to
4b1cabe
Compare
|
EWS run on previous version of this PR (hash 825ba07)
|
|
EWS run on previous version of this PR (hash e8b2a93)
|
|
EWS run on current version of this PR (hash 4b1cabe)
|
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.
when requesting to configure and there is no configuration, is that an error?
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.
Yes, though I'm going to end up rewriting this function entirely (as in #8963) so I didn't want to spend a lot of time polishing up the existing code in this function.
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.
![]()
…nvasContextCocoa https://bugs.webkit.org/show_bug.cgi?id=251067 rdar://104784569 Reviewed by Tadeu Zagallo. There's no reason to lazily create the GPUPresentationContext; we can just create it eagerly, which allows us to use a Ref instead of a RefPtr for the object, thereby eliminating one potential state in the class. * Source/WebCore/html/canvas/GPUCanvasContextCocoa.cpp: (WebCore::presentationContextDescriptor): (WebCore::GPUCanvasContextCocoa::GPUCanvasContextCocoa): (WebCore::GPUCanvasContextCocoa::reshape): (WebCore::GPUCanvasContextCocoa::unconfigurePresentationContextIfNeeded): (WebCore::GPUCanvasContextCocoa::configurePresentationContextIfNeeded): (WebCore::GPUCanvasContextCocoa::getCurrentTexture): (WebCore::GPUCanvasContextCocoa::createPresentationContextIfNeeded): Deleted. * Source/WebCore/html/canvas/GPUCanvasContextCocoa.h: Canonical link: https://commits.webkit.org/259564@main
|
Committed 259564@main (2f40848): https://commits.webkit.org/259564@main Reviewed commits have been landed. Closing PR #9284 and removing active labels. |
4b1cabe to
2f40848
Compare
2f40848
4b1cabe