VirtualBox

Ignore:
Timestamp:
Sep 8, 2009 12:03:54 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
52065
Message:

video hw accel: bugfixes & perf improvements

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

Legend:

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

    r22816 r22834  
    138138    void requestToResize (const QSize &aSize);
    139139
     140#ifdef VBOX_WITH_VIDEOHWACCEL
     141    void scrollContentsBy (int dx, int dy);
     142#endif
     143
    140144#if defined(Q_WS_MAC)
    141145    void updateDockIcon();
  • trunk/src/VBox/Frontends/VirtualBox/include/VBoxFBOverlay.h

    r22826 r22834  
    572572    void setHandle(uint32_t h) {mHGHandle = h;}
    573573
     574    const VBoxVHWADirtyRect & getDirtyRect() { return mUpdateMem2TexRect; }
     575
    574576private:
    575577    void doSetRectValuesInternal(const QRect & aTargRect, const QRect & aSrcRect, const QRect & aVisTargRect);
     
    11871189    void onResizeEventPostprocess (const class VBoxResizeEvent *re);
    11881190
     1191    void viewportResized(QResizeEvent * re)
     1192    {
     1193        vboxDoCheckUpdateViewport();
     1194        mGlCurrent = false;
     1195    }
     1196
     1197    void viewportScrolled(int dx, int dy)
     1198    {
     1199        vboxDoCheckUpdateViewport();
     1200        mGlCurrent = false;
     1201    }
     1202
    11891203    static bool isAcceleration2DVideoAvailable();
    11901204
     
    11931207    void vhwaSaveExec(struct SSMHANDLE * pSSM);
    11941208private:
     1209    int vhwaSurfaceUnlock(struct _VBOXVHWACMD_SURF_UNLOCK *pCmd);
     1210
     1211    void repaintMain();
     1212    void repaintOverlay()
     1213    {
     1214        if(mNeedOverlayRepaint)
     1215        {
     1216            mNeedOverlayRepaint = false;
     1217            performDisplayOverlay();
     1218        }
     1219    }
     1220    void repaint()
     1221    {
     1222        repaintOverlay();
     1223        repaintMain();
     1224    }
    11951225
    11961226    void makeCurrent()
     
    12171247    }
    12181248
    1219     void vboxOpExit()
    1220     {
    1221         performDisplayOverlay();
    1222         mGlCurrent = false;
    1223     }
     1249//    void vboxOpExit()
     1250//    {
     1251//        performDisplayOverlay();
     1252//        mGlCurrent = false;
     1253//    }
    12241254
    12251255
    12261256    void vboxSetGlOn(bool on);
    12271257    bool vboxGetGlOn() { return mGlOn; }
    1228     void vboxSynchGl();
     1258    bool vboxSynchGl();
    12291259    void vboxDoVHWACmdExec(void *cmd);
    12301260    void vboxShowOverlay(bool show);
    12311261    void vboxDoCheckUpdateViewport();
    12321262    void vboxDoVHWACmd(void *cmd);
    1233     void vboxDoUpdateRect(const QRect * pRect);
     1263    void addMainDirtyRect(const QRect & aRect);
    12341264//    void vboxUpdateOverlayPosition(const QPoint & pos);
    12351265    void vboxCheckUpdateOverlay(const QRect & rect);
     
    12461276    bool mGlCurrent;
    12471277    bool mProcessingCommands;
     1278    bool mNeedOverlayRepaint;
    12481279    QRect mOverlayViewport;
    12491280    VBoxVHWADirtyRect mMainDirtyRect;
     
    13101341        mOverlay.onResizeEventPostprocess(re);
    13111342    }
     1343
     1344    void viewportResized(QResizeEvent * re)
     1345    {
     1346        mOverlay.viewportResized(re);
     1347        T::viewportResized(re);
     1348    }
     1349
     1350    void viewportScrolled(int dx, int dy)
     1351    {
     1352        mOverlay.viewportScrolled(dx, dy);
     1353        T::viewportScrolled(dx, dy);
     1354    }
    13121355private:
    13131356    VBoxQGLOverlay mOverlay;
  • trunk/src/VBox/Frontends/VirtualBox/include/VBoxFrameBuffer.h

    r22822 r22834  
    243243     * the event is framebuffer implementation specific */
    244244    virtual void doProcessVHWACommand(QEvent * pEvent);
     245
     246    virtual void viewportResized(QResizeEvent * re){}
     247
     248    virtual void viewportScrolled(int dx, int dy){}
    245249#endif
    246250
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