Skip to content

Commit

Permalink
WebGL: Removed unused GraphicsContextGLANGLE::readCompositedResultsFo…
Browse files Browse the repository at this point in the history
…rPainting

https://bugs.webkit.org/show_bug.cgi?id=255647

Reviewed by Said Abou-Hallawa.

It's called nowhere after 262518@main.

* Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp:
(WebCore::GraphicsContextGLANGLE::readCompositedResultsForPainting): Deleted.
* Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.h:

Canonical link: https://commits.webkit.org/263146@main
  • Loading branch information
fujii committed Apr 19, 2023
1 parent d68e298 commit 305affe
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
Expand Up @@ -3258,15 +3258,6 @@ RefPtr<PixelBuffer> GraphicsContextGLANGLE::readRenderingResultsForPainting()
return readRenderingResults();
}

RefPtr<PixelBuffer> GraphicsContextGLANGLE::readCompositedResultsForPainting()
{
if (!makeContextCurrent())
return nullptr;
if (getInternalFramebufferSize().isEmpty())
return nullptr;
return readCompositedResults();
}

void GraphicsContextGLANGLE::addError(GCGLErrorCode errorCode)
{
m_errors.add(errorCode);
Expand Down
Expand Up @@ -346,7 +346,6 @@ class WEBCORE_EXPORT GraphicsContextGLANGLE : public GraphicsContextGL {
void paintCompositedResultsToCanvas(ImageBuffer&) override;

RefPtr<PixelBuffer> readRenderingResultsForPainting();
RefPtr<PixelBuffer> readCompositedResultsForPainting();

virtual void withDrawingBufferAsNativeImage(Function<void(NativeImage&)>);
virtual void withDisplayBufferAsNativeImage(Function<void(NativeImage&)>);
Expand Down

0 comments on commit 305affe

Please sign in to comment.