Skip to content

Commit

Permalink
Fixed Playstation build break after 279154@main
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=274559

Reviewed by Don Olmstead.

Fix linking error on undefined symbol `WebCore::GLFence::~GLFence()

* Source/WebCore/platform/graphics/nicosia/NicosiaImageBufferPipe.cpp:

Canonical link: https://commits.webkit.org/279166@main
  • Loading branch information
jigenzhou authored and donny-dont committed May 23, 2024
1 parent cc61ebc commit 3216dc5
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ void NicosiaImageBufferPipeSource::handle(ImageBuffer& buffer)

Locker locker { m_imageLock };
if (!m_image) {
#if PLATFORM(GTK) || PLATFORM(WPE)
std::unique_ptr<GLFence> fence;
#endif // PLATFORM(GTK) || PLATFORM(WPE)
unsigned textureID = 0;
#if USE(SKIA)
auto image = nativeImage->platformImage();
Expand All @@ -98,7 +100,9 @@ void NicosiaImageBufferPipeSource::handle(ImageBuffer& buffer)
if (!textureID)
return;

#if PLATFORM(GTK) || PLATFORM(WPE)
fence = GLFence::create();
#endif // PLATFORM(GTK) || PLATFORM(WPE)
}
#endif

Expand Down Expand Up @@ -129,9 +133,13 @@ void NicosiaImageBufferPipeSource::handle(ImageBuffer& buffer)
#elif USE(SKIA)
auto image = nativeImage->platformImage();
if (image->isTextureBacked()) {
#if PLATFORM(GTK) || PLATFORM(WPE)
fence->wait(WebCore::GLFence::FlushCommands::No);
#endif // PLATFORM(GTK) || PLATFORM(WPE)
texture->copyFromExternalTexture(textureID);
#if PLATFORM(GTK) || PLATFORM(WPE)
fence = GLFence::create();
#endif // PLATFORM(GTK) || PLATFORM(WPE)
} else {
SkPixmap pixmap;
if (image->peekPixels(&pixmap))
Expand Down

0 comments on commit 3216dc5

Please sign in to comment.