haikuwebkit/Source/WebCore/platform/graphics/cv
Kimmo Kinnunen 54c5461324 WebGL video to texture upload spends time clearing the uploaded-to texture
https://bugs.webkit.org/show_bug.cgi?id=227582
<rdar://problem/80020335>

Patch by Kimmo Kinnunen <kkinnunen@apple.com> on 2021-07-06
Reviewed by Kenneth Russell.

Disable robust resource initiaization for the shared ANGLE context that is used
to copy video frames to WebGL textures. Otherwise ANGLE would spend time
initializing the texture in `gl::DrawArrays`.

No new tests, we currently do not have WebGL perf tests.

* platform/graphics/angle/GraphicsContextGLANGLE.cpp:
(WebCore::GraphicsContextGLOpenGL::texImage2DDirect):
Add the direct texImage2D call so that the texture seed can be
somehow updated. This will be removed once the texture image version
management is fixed to be a bit more robust.

* platform/graphics/cocoa/GraphicsContextGLOpenGLCocoa.mm:
(WebCore::GraphicsContextGLOpenGL::GraphicsContextGLOpenGL):
* platform/graphics/cv/GraphicsContextGLCVANGLE.cpp:
(WebCore::GraphicsContextGLCVANGLE::copyPixelBufferToTexture):
* platform/graphics/opengl/GraphicsContextGLOpenGL.h:

Canonical link: https://commits.webkit.org/239442@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@279624 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-07-06 22:33:57 +00:00
..
GraphicsContextGLCV.h
GraphicsContextGLCVANGLE.cpp WebGL video to texture upload spends time clearing the uploaded-to texture 2021-07-06 22:33:57 +00:00
GraphicsContextGLCVANGLE.h
ImageRotationSessionVT.h Remove WTF::Optional synonym for std::optional, using that class template directly instead 2021-05-30 16:11:40 +00:00
ImageRotationSessionVT.mm
ImageTransferSessionVT.h
ImageTransferSessionVT.mm Not all uses of AudioToolbox framework use soft linking 2021-06-28 12:29:37 +00:00
PixelBufferConformerCV.cpp
PixelBufferConformerCV.h