VirtualBox

Changeset 84740 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Jun 9, 2020 3:28:30 PM (5 years ago)
Author:
vboxsync
Message:

Main,include: provide a new method for the graphics device to pass notifications to a frontend

Location:
trunk/include/VBox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/Graphics/VBoxVideo3D.h

    r82968 r84740  
    143143
    144144/* host 3D->Fe[/Qt] notification mechanism defines */
    145 #define VBOX3D_NOTIFY_EVENT_TYPE_TEST_FUNCTIONAL 3
    146 #define VBOX3D_NOTIFY_EVENT_TYPE_3DDATA_VISIBLE  4
    147 #define VBOX3D_NOTIFY_EVENT_TYPE_3DDATA_HIDDEN   5
     145typedef enum
     146{
     147    VBOX3D_NOTIFY_TYPE_TEST_FUNCTIONAL = 3,
     148    VBOX3D_NOTIFY_TYPE_3DDATA_VISIBLE  = 4,
     149    VBOX3D_NOTIFY_TYPE_3DDATA_HIDDEN   = 5,
    148150
     151    VBOX3D_NOTIFY_TYPE_HW_SCREEN_IS_SUPPORTED = 100,
     152    VBOX3D_NOTIFY_TYPE_HW_SCREEN_CREATED      = 101,
     153    VBOX3D_NOTIFY_TYPE_HW_SCREEN_DESTROYED    = 102,
     154    VBOX3D_NOTIFY_TYPE_HW_SCREEN_UPDATE_BEGIN = 103,
     155    VBOX3D_NOTIFY_TYPE_HW_SCREEN_UPDATE_END   = 104,
     156
     157    VBOX3D_NOTIFY_TYPE_32BIT_HACK = 0x7fffffff
     158} VBOX3D_NOTIFY_TYPE;
     159
     160typedef struct VBOX3DNOTIFY
     161{
     162    VBOX3D_NOTIFY_TYPE enmNotification;
     163    int32_t  iDisplay;
     164    uint32_t u32Reserved;
     165    uint32_t cbData;
     166    uint8_t  au8Data[sizeof(uint64_t)];
     167} VBOX3DNOTIFY;
    149168
    150169#endif /* !VBOX_INCLUDED_Graphics_VBoxVideo3D_h */
  • trunk/include/VBox/vmm/pdmifs.h

    r83550 r84740  
    737737/** @} */
    738738
     739/** Pointer to a 3D graphics notification. */
     740typedef struct VBOX3DNOTIFY VBOX3DNOTIFY;
    739741/** Pointer to a 2D graphics acceleration command. */
    740742typedef struct VBOXVHWACMD VBOXVHWACMD;
     
    10261028     */
    10271029    DECLR3CALLBACKMEMBER(void, pfnVBVAReportCursorPosition,(PPDMIDISPLAYCONNECTOR pInterface, uint32_t fFlags, uint32_t uScreen, uint32_t x, uint32_t y));
     1030
     1031    /**
     1032     * Process the graphics device HW Acceleration command.
     1033     *
     1034     * @param   pInterface          Pointer to this interface.
     1035     * @param   p3DNotify           Acceleration Command to be processed.
     1036     * @thread  The graphics device thread: FIFO for the VMSVGA device.
     1037     */
     1038    DECLR3CALLBACKMEMBER(int, pfn3DNotifyProcess,(PPDMIDISPLAYCONNECTOR pInterface,
     1039                                                  VBOX3DNOTIFY *p3DNotify));
    10281040} PDMIDISPLAYCONNECTOR;
    10291041/** PDMIDISPLAYCONNECTOR interface ID. */
    1030 #define PDMIDISPLAYCONNECTOR_IID                "b71dc381-99cc-43de-b459-f1e812e73b65"
     1042#define PDMIDISPLAYCONNECTOR_IID                "cdd562e4-8030-11ea-8d40-bbc8e146c565"
    10311043
    10321044
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