VirtualBox

Changeset 22189 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Aug 11, 2009 7:28:42 PM (15 years ago)
Author:
vboxsync
Message:

video hw accel: propper report supported functionality, some code cleaning

Location:
trunk/src/VBox/Frontends/VirtualBox
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/include/VBoxFrameBuffer.h

    r22136 r22189  
    13871387#ifdef VBOX_WITH_VIDEOHWACCEL
    13881388    STDMETHOD(ProcessVHWACommand)(BYTE *pCommand);
     1389
     1390
     1391    static bool isAcceleration2DVideoAvailable();
    13891392#endif
    13901393
  • trunk/src/VBox/Frontends/VirtualBox/include/VBoxGlobal.h

    r22173 r22189  
    749749
    750750#ifdef VBOX_WITH_VIDEOHWACCEL
    751     static bool isAcceleration2DVideoAvailable() { /* TODO: */ return true; }
     751    static bool isAcceleration2DVideoAvailable();
    752752    VBoxDefs::RenderMode vmAcceleration2DVideoRenderMode() { return VBoxDefs::QGLMode; }
    753753#endif
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxGlobal.cpp

    r22173 r22189  
    3636#endif
    3737#include "VBoxUpdateDlg.h"
     38
     39#ifdef VBOX_WITH_VIDEOHWACCEL
     40#include "VBoxFrameBuffer.h"
     41#endif
    3842
    3943/* Qt includes */
     
    40654069    }
    40664070}
     4071
     4072#ifdef VBOX_WITH_VIDEOHWACCEL
     4073/* static */
     4074bool VBoxGlobal::isAcceleration2DVideoAvailable()
     4075{
     4076    return VBoxQGLFrameBuffer::isAcceleration2DVideoAvailable();
     4077}
     4078#endif
    40674079
    40684080// Public slots
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