diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:35:29 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:35:29 +0000 |
commit | 59203c63bb777a3bacec32fb8830fba33540e809 (patch) | |
tree | 58298e711c0ff0575818c30485b44a2f21bf28a0 /gfx/gl/GLBlitHelperD3D.cpp | |
parent | Adding upstream version 126.0.1. (diff) | |
download | firefox-59203c63bb777a3bacec32fb8830fba33540e809.tar.xz firefox-59203c63bb777a3bacec32fb8830fba33540e809.zip |
Adding upstream version 127.0.upstream/127.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'gfx/gl/GLBlitHelperD3D.cpp')
-rw-r--r-- | gfx/gl/GLBlitHelperD3D.cpp | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/gfx/gl/GLBlitHelperD3D.cpp b/gfx/gl/GLBlitHelperD3D.cpp index ae6362e278..1c101d8980 100644 --- a/gfx/gl/GLBlitHelperD3D.cpp +++ b/gfx/gl/GLBlitHelperD3D.cpp @@ -95,16 +95,7 @@ class BindAnglePlanes final { const EGLAttrib* const* postAttribsList = nullptr) : mParent(*parent), mNumPlanes(numPlanes), - mMultiTex( - mParent.mGL, - [&]() { - std::vector<uint8_t> ret; - for (int i = 0; i < numPlanes; i++) { - ret.push_back(i); - } - return ret; - }(), - LOCAL_GL_TEXTURE_EXTERNAL), + mMultiTex(mParent.mGL, mNumPlanes, LOCAL_GL_TEXTURE_EXTERNAL), mTempTexs{0}, mStreams{0}, mSuccess(true) { @@ -336,7 +327,7 @@ bool GLBlitHelper::BlitDescriptor(const layers::SurfaceDescriptorD3D10& desc, const auto& prog = GetDrawBlitProg( {kFragHeader_TexExt, {kFragSample_TwoPlane, kFragConvert_ColorMatrix}}); - prog->Draw(baseArgs, &yuvArgs); + prog.Draw(baseArgs, &yuvArgs); return true; } @@ -391,7 +382,7 @@ bool GLBlitHelper::BlitAngleYCbCr(const WindowsHandle (&handleList)[3], const auto& prog = GetDrawBlitProg( {kFragHeader_TexExt, {kFragSample_ThreePlane, kFragConvert_ColorMatrix}}); - prog->Draw(baseArgs, &yuvArgs); + prog.Draw(baseArgs, &yuvArgs); return true; } |