VirtualBox

Changeset 99775 in vbox for trunk/src/VBox/Devices/Graphics


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

Location:
trunk/src/VBox/Devices/Graphics
Files:
4 edited

Legend:

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

    r99740 r99775  
    899899 * @param   pThisCC     The VGA/VMSVGA state for ring-3.
    900900 */
    901 void vmsvgaR3VBVAResize(PVGASTATE pThis, PVGASTATECC pThisCC)
     901static void vmsvgaR3VBVAResize(PVGASTATE pThis, PVGASTATECC pThisCC)
    902902{
    903903    int rc;
     
    45634563 * @param   pThisCC     The VGA/VMSVGA state for ring-3.
    45644564 */
    4565 void vmsvgaR3FifoPendingActions(PPDMDEVINS pDevIns, PVGASTATE pThis, PVGASTATECC pThisCC)
     4565static void vmsvgaR3FifoPendingActions(PPDMDEVINS pDevIns, PVGASTATE pThis, PVGASTATECC pThisCC)
    45664566{
    45674567    RT_NOREF(pDevIns);
     
    53935393 * @callback_method_impl{FNDBGFHANDLERDEV, "vmsvga3dsfc"}
    53945394 */
    5395 DECLCALLBACK(void) vmsvgaR3Info3dSurface(PPDMDEVINS pDevIns, PCDBGFINFOHLP pHlp, const char *pszArgs)
     5395static DECLCALLBACK(void) vmsvgaR3Info3dSurface(PPDMDEVINS pDevIns, PCDBGFINFOHLP pHlp, const char *pszArgs)
    53965396{
    53975397    /* There might be a specific surface ID at the start of the
     
    54385438 * @callback_method_impl{FNDBGFHANDLERDEV, "vmsvga3dsurf"}
    54395439 */
    5440 DECLCALLBACK(void) vmsvgaR3Info3dSurfaceBmp(PPDMDEVINS pDevIns, PCDBGFINFOHLP pHlp, const char *pszArgs)
     5440static DECLCALLBACK(void) vmsvgaR3Info3dSurfaceBmp(PPDMDEVINS pDevIns, PCDBGFINFOHLP pHlp, const char *pszArgs)
    54415441{
    54425442    /* pszArg = "sid[>dir]"
     
    54635463 * @callback_method_impl{FNDBGFHANDLERDEV, "vmsvga3dctx"}
    54645464 */
    5465 DECLCALLBACK(void) vmsvgaR3Info3dContext(PPDMDEVINS pDevIns, PCDBGFINFOHLP pHlp, const char *pszArgs)
     5465static DECLCALLBACK(void) vmsvgaR3Info3dContext(PPDMDEVINS pDevIns, PCDBGFINFOHLP pHlp, const char *pszArgs)
    54665466{
    54675467    /* There might be a specific surface ID at the start of the
  • 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)
  • trunk/src/VBox/Devices/Graphics/DevVGA.cpp

    r99739 r99775  
    576576}
    577577
    578 int vga_ioport_invalid(PVGASTATE pThis, uint32_t addr)
     578static int vga_ioport_invalid(PVGASTATE pThis, uint32_t addr)
    579579{
    580580    if (pThis->msr & MSR_COLOR_EMULATION) {
  • trunk/src/VBox/Devices/Graphics/HGSMI/HGSMIHost.cpp

    r98103 r99775  
    16671667}
    16681668
    1669 int hgsmiCompleteGuestCommand(PHGSMIINSTANCE pIns, HGSMIOFFSET offBuffer, bool fDoIrq)
     1669static int hgsmiCompleteGuestCommand(PHGSMIINSTANCE pIns, HGSMIOFFSET offBuffer, bool fDoIrq)
    16701670{
    16711671    int rc = hgsmiGuestCommandComplete(pIns, offBuffer);
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