[webkit-changes] [WebKit/WebKit] 9a7ee2: [WebGPU] TextureView should hold a Ref<Texture> in...
mwyrzykowski
noreply at github.com
Mon Feb 19 23:58:00 PST 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 9a7ee2735d19c8372febcde381fcfdeb8bf796c0
https://github.com/WebKit/WebKit/commit/9a7ee2735d19c8372febcde381fcfdeb8bf796c0
Author: Mike Wyrzykowski <mwyrzykowski at apple.com>
Date: 2024-02-19 (Mon, 19 Feb 2024)
Changed paths:
M Source/WebGPU/WebGPU/TextureView.h
M Source/WebGPU/WebGPU/TextureView.mm
Log Message:
-----------
[WebGPU] TextureView should hold a Ref<Texture> instead of a Texture&
https://bugs.webkit.org/show_bug.cgi?id=269745
<radar://123224537>
Reviewed by Dan Glastonbury.
We don't want the underlying Texture object to have its
lifetime end while any derived TextureView instances are still
alive.
Hold a strong reference to the Texture instead of a raw C++ reference.
* Source/WebGPU/WebGPU/TextureView.h:
* Source/WebGPU/WebGPU/TextureView.mm:
(WebGPU::TextureView::parentTexture const):
(WebGPU::TextureView::previouslyCleared const):
(WebGPU::TextureView::setPreviouslyCleared):
(WebGPU::TextureView::width const):
(WebGPU::TextureView::height const):
(WebGPU::TextureView::depthOrArrayLayers const):
(WebGPU::TextureView::usage const):
(WebGPU::TextureView::sampleCount const):
(WebGPU::TextureView::parentFormat const):
(WebGPU::TextureView::parentMipLevelCount const):
(WebGPU::TextureView::isDestroyed const):
Canonical link: https://commits.webkit.org/275028@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list