Skip to content

Commit

Permalink
GPUExternalTextureDescriptor: fix compilation without video support
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=262039

Reviewed by Mike Wyrzykowski.

Commit ac63088 accidentally readded
mediaIdentifier which was dropped in commit f9d7fea.

Signed-off-by: Thomas Devoogdt <thomas@devoogdt.com>
Canonical link: https://commits.webkit.org/268475@main
  • Loading branch information
ThomasDevoogdt authored and mcatanzaro committed Sep 26, 2023
1 parent 2c2789a commit e7b9f30
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Source/WebCore/Modules/WebGPU/GPUExternalTextureDescriptor.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,13 @@ struct GPUExternalTextureDescriptor : public GPUObjectDescriptorBase {

WebGPU::ExternalTextureDescriptor convertToBacking() const
{
#if ENABLE(VIDEO)
auto mediaIdentifier = mediaIdentifierForSource(source);
#else
auto mediaIdentifier = WebGPU::VideoSourceIdentifier { 0 };
#endif
return {
{ label },
#if ENABLE(VIDEO)
mediaIdentifierForSource(source),
#else
{ 0 },
#endif
WebCore::convertToBacking(colorSpace),
};
}
Expand Down

0 comments on commit e7b9f30

Please sign in to comment.