VirtualBox

Ignore:
Timestamp:
Nov 9, 2009 11:23:35 AM (15 years ago)
Author:
vboxsync
Message:

Saved state screenshot API stubs (xTracker 4364).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/DisplayImpl.cpp

    r24464 r24490  
    405405        uint32_t cy = 0;
    406406
    407         /* @todo pfnTakeScreenshot is probably callable from any thread, because it uses the VGA device lock. */
    408         int rc = VMR3ReqCallWait(pVM, VMCPUID_ANY, (PFNRT)that->mpDrv->pUpPort->pfnTakeScreenshot, 5,
    409                                  that->mpDrv->pUpPort, &pu8Data, &cbData, &cx, &cy);
     407        /* SSM code is executed on EMT(0), therefore no need to use VMR3ReqCallWait. */
     408        int rc = that->mpDrv->pUpPort->pfnTakeScreenshot (that->mpDrv->pUpPort, &pu8Data, &cbData, &cx, &cy);
    410409
    411410        if (RT_SUCCESS(rc))
     
    668667
    669668#if 0
    670     rc = SSMR3RegisterExternal(pVM, "DisplayScreenshot", 0 /*uInstance*/, sSSMDisplayScreenshotVer, 0 /*cbGuess*/,
     669    /* uInstance is an arbitrary value greater than 1024. Such a value will ensure a quick seek in saved state file. */
     670    rc = SSMR3RegisterExternal(pVM, "DisplayScreenshot", 1100 /*uInstance*/, sSSMDisplayScreenshotVer, 0 /*cbGuess*/,
    671671                               NULL, NULL, NULL,
    672672                               NULL, displaySSMSaveScreenshot, NULL,
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