VirtualBox

Ignore:
Timestamp:
May 12, 2023 12:21:58 PM (2 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
157370
Message:

*: Mark functions as static if not used outside of a given compilation unit. Enables the compiler to optimize inlining, reduces the symbol tables, exposes unused functions and in some rare cases exposes mismtaches between function declarations and definitions, but most importantly reduces the number of parfait reports for the extern-function-no-forward-declaration category. This should not result in any functional changes, bugref:3409

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-ogl.cpp

    r99688 r99775  
    32253225 * @param   pvUser          pointer to pState structure
    32263226 */
    3227 DECLCALLBACK(int) vmsvga3dXEventThread(RTTHREAD hThreadSelf, void *pvUser)
     3227static DECLCALLBACK(int) vmsvga3dXEventThread(RTTHREAD hThreadSelf, void *pvUser)
    32283228{
    32293229    RT_NOREF(hThreadSelf);
     
    55975597}
    55985598
    5599 uint32_t vmsvga3dSVGA3dColor2RGBA(SVGA3dColor value)
     5599#if 0 /* unused */
     5600static uint32_t vmsvga3dSVGA3dColor2RGBA(SVGA3dColor value)
    56005601{
    56015602    /* flip the red and blue bytes */
     
    56045605    return (value & 0xff00ff00) | red | (blue << 16);
    56055606}
     5607#endif
    56065608
    56075609static DECLCALLBACK(int) vmsvga3dBackSetTextureState(PVGASTATECC pThisCC, uint32_t cid, uint32_t cTextureStates, SVGA3dTextureState *pTextureState)
     
    64266428
    64276429/* Convert VMWare vertex declaration to its OpenGL equivalent. */
    6428 int vmsvga3dVertexDecl2OGL(SVGA3dVertexArrayIdentity &identity, GLint &size, GLenum &type, GLboolean &normalized, uint32_t &cbAttrib)
     6430static int vmsvga3dVertexDecl2OGL(SVGA3dVertexArrayIdentity &identity, GLint &size, GLenum &type, GLboolean &normalized, uint32_t &cbAttrib)
    64296431{
    64306432    normalized = GL_FALSE;
     
    66916693/* Convert VMWare primitive type to its OpenGL equivalent. */
    66926694/* Calculate the vertex count based on the primitive type and nr of primitives. */
    6693 int vmsvga3dPrimitiveType2OGL(SVGA3dPrimitiveType PrimitiveType, GLenum *pMode, uint32_t cPrimitiveCount, uint32_t *pcVertices)
     6695static int vmsvga3dPrimitiveType2OGL(SVGA3dPrimitiveType PrimitiveType, GLenum *pMode, uint32_t cPrimitiveCount, uint32_t *pcVertices)
    66946696{
    66956697    switch (PrimitiveType)
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette