VirtualBox

Changeset 69963 in vbox


Ignore:
Timestamp:
Dec 6, 2017 9:30:46 PM (7 years ago)
Author:
vboxsync
Message:

Devices/Graphics: VMSVGA: renamed helpers for initialization and destruction of VMSVGAR3STATE structure.

File:
1 edited

Legend:

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

    r69940 r69963  
    49484948
    49494949/**
    4950  * Destructs PVMSVGAR3STATE structure.
     4950 * Destructor for PVMSVGAR3STATE structure.
    49514951 *
    49524952 * @param   pThis          The VGA instance.
    49534953 * @param   pSVGAState     Pointer to the structure. It is not deallocated.
    49544954 */
    4955 static void vmsvgaR3StateDestruct(PVGASTATE pThis, PVMSVGAR3STATE pSVGAState)
     4955static void vmsvgaR3StateTerm(PVGASTATE pThis, PVMSVGAR3STATE pSVGAState)
    49564956{
    49574957#ifndef VMSVGA_USE_EMT_HALT_CODE
     
    49824982
    49834983/**
    4984  * Constructs PVMSVGAR3STATE structure.
     4984 * Constructor for PVMSVGAR3STATE structure.
    49854985 *
    49864986 * @returns VBox status code.
     
    49884988 * @param   pSVGAState     Pointer to the structure. It is already allocated.
    49894989 */
    4990 static int vmsvgaR3StateConstruct(PVGASTATE pThis, PVMSVGAR3STATE pSVGAState)
     4990static int vmsvgaR3StateInit(PVGASTATE pThis, PVMSVGAR3STATE pSVGAState)
    49914991{
    49924992    int rc = VINF_SUCCESS;
     
    50305030    RT_ZERO(pThis->svga.au32ScratchRegion);
    50315031
    5032     vmsvgaR3StateDestruct(pThis, pThis->svga.pSvgaR3State);
    5033     vmsvgaR3StateConstruct(pThis, pThis->svga.pSvgaR3State);
     5032    vmsvgaR3StateTerm(pThis, pThis->svga.pSvgaR3State);
     5033    vmsvgaR3StateInit(pThis, pThis->svga.pSvgaR3State);
    50345034
    50355035    RT_BZERO(pThis->svga.pbVgaFrameBufferR3, VMSVGA_VGA_FB_BACKUP_SIZE);
     
    50885088    if (pThis->svga.pSvgaR3State)
    50895089    {
    5090         vmsvgaR3StateDestruct(pThis, pThis->svga.pSvgaR3State);
     5090        vmsvgaR3StateTerm(pThis, pThis->svga.pSvgaR3State);
    50915091
    50925092        RTMemFree(pThis->svga.pSvgaR3State);
     
    51595159    AssertReturn(pThis->svga.pSvgaR3State, VERR_NO_MEMORY);
    51605160
    5161     rc = vmsvgaR3StateConstruct(pThis, pThis->svga.pSvgaR3State);
     5161    rc = vmsvgaR3StateInit(pThis, pThis->svga.pSvgaR3State);
    51625162    AssertMsgRCReturn(rc, ("Failed to create pSvgaR3State.\n"), rc);
    51635163
Note: See TracChangeset for help on using the changeset viewer.

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