Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use variable template declarations for GCGLSpanTuple, ArrayReferenceT…
…uple https://bugs.webkit.org/show_bug.cgi?id=246923 Reviewed by Kimmo Kinnunen. Provide a generic variable template for GCGLSpanTuple, dropping specializations for a specific number of contained elements. The data pointers are now held in a std::tuple<> object, and the getter data() method template expects an index value to perform access into the tuple. ArrayReferenceTuple is similarly adjusted, the variable template now handling any number of elements instead of relying on specializations. In RemoteGraphicsContextGLProxy implementation file, the helper toArrayReferenceTuple() function is generalized into a variable template, constructing an ArrayReferenceTuple from a given GCGLSpanTuple object according to the span tuple's size. ArgumentCoder specializations for the ArrayReferenceTuple type are whittled down to a single generic specialization that can cover any number of ArrayReferenceTuple elements. * Source/WebCore/platform/graphics/GraphicsTypesGL.h: (GCGLSpanTuple::GCGLSpanTuple): (GCGLSpanTuple::data const): * Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp: (WebCore::GraphicsContextGLANGLE::multiDrawArraysANGLE): (WebCore::GraphicsContextGLANGLE::multiDrawArraysInstancedANGLE): (WebCore::GraphicsContextGLANGLE::multiDrawElementsANGLE): (WebCore::GraphicsContextGLANGLE::multiDrawElementsInstancedANGLE): (WebCore::GraphicsContextGLANGLE::multiDrawArraysInstancedBaseInstanceANGLE): (WebCore::GraphicsContextGLANGLE::multiDrawElementsInstancedBaseVertexBaseInstanceANGLE): * Source/WebKit/Platform/IPC/ArgumentCoders.h: * Source/WebKit/Platform/IPC/ArrayReferenceTuple.h: (IPC::ArrayReferenceTuple::ArrayReferenceTuple): (IPC::ArrayReferenceTuple::size const): (IPC::ArrayReferenceTuple::data const): * Source/WebKit/WebProcess/GPU/graphics/RemoteGraphicsContextGLProxy.cpp: Canonical link: https://commits.webkit.org/255911@main
- Loading branch information
Showing
5 changed files
with
91 additions
and
368 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.