- Timestamp:
- Jul 8, 2009 9:59:19 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 49793
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/include/VBoxFrameBuffer.h
r21304 r21414 494 494 { 495 495 public: 496 VBoxVHWASurfaceBase(class VBoxVHWAGlContextState *aState, bool aIsYInverted, GLsizei aWidth, GLsizei aHeight,496 VBoxVHWASurfaceBase(class VBoxVHWAGlContextState *aState, bool aIsYInverted, const QSize * aSize, const QSize * aTargetSize, 497 497 VBoxVHWAColorFormat & aColorFormat, 498 498 VBoxVHWAColorKey * pSrcBltCKey, VBoxVHWAColorKey * pDstBltCKey, … … 516 516 517 517 void performDisplay(); 518 519 void setRects(const QRect * aTargRect, const QRect * aSrcRect); 520 void setTargetRectPosition(const QPoint * aPoint); 518 521 519 522 static ulong calcBytesPerPixel(GLenum format, GLenum type); … … 564 567 bool isFrontBuffer() {return !mIsYInverted; } 565 568 566 bool isOverlay() { return mIsOverlay; }569 // bool isOverlay() { return mIsOverlay; } 567 570 568 571 #ifdef VBOX_WITH_VIDEOHWACCEL … … 573 576 void initDisplay(); 574 577 void deleteDisplay(); 578 void initDisplay(bool bInverted); 579 void deleteDisplay(bool bInverted); 580 GLuint createDisplay(bool bInverted); 575 581 void synchTex(const QRect * aRect); 576 582 void synchTexMem(const QRect * aRect); … … 580 586 void synch(const QRect * aRect); 581 587 582 void doTex2FB(const QRect * aRect); 583 584 void doSetupModelView(bool bInverted); 585 586 QRect mRect; 587 588 GLuint mDisplay; 589 bool mDisplayInitialized; 588 // void doTex2FB(const QRect * aRect); 589 void doTex2FB(const QRect * pDstRect, const QRect * pSrcRect); 590 591 void doSetupMatrix(const QSize * pSize, bool bInverted); 592 593 QRect mRect; /* == Inv FB size */ 594 QRect mTexRect; /* texture size */ 595 596 QRect mSrcRect; 597 QRect mTargRect; /* == Vis FB size */ 598 QRect mTargSize; 599 600 GLuint mYInvertedDisplay; 601 GLuint mVisibleDisplay; 602 603 bool mYInvertedDisplayInitialized; 604 bool mVisibleDisplayInitialized; 590 605 591 606 uchar * mAddress; … … 626 641 bool mIsYInverted; 627 642 628 bool mIsOverlay;643 // bool mIsOverlay; 629 644 630 645 protected: … … 676 691 pCurr->invert(); 677 692 pTarg->invert(); 678 if(pTarg->isOverlay()) 693 if(pCurr == mSurfPrimary) /* flip of the primary surface */ 694 { 695 mSurfPrimary = pTarg; 696 } 697 else /* flip of the overlay */ 679 698 { 680 699 for (OverlayList::iterator it = mOverlays.begin(); … … 687 706 } 688 707 } 689 else690 {691 mSurfPrimary = pTarg;692 }693 708 } 694 709 … … 781 796 { 782 797 public: 783 VBoxVHWASurfaceQGL(class VBoxVHWAGlContextState *aState, GLsizei aWidth, GLsizei aHeight,798 VBoxVHWASurfaceQGL(class VBoxVHWAGlContextState *aState, const QSize * aSize, const QSize * aTargetSize, 784 799 VBoxVHWAColorFormat & aColorFormat, 785 800 VBoxVHWAColorKey * pSrcBltCKey, VBoxVHWAColorKey * pDstBltCKey, … … 787 802 class VBoxGLWidget *pWidget, 788 803 bool bInvisibleBuffer) : 789 VBoxVHWASurfaceBase(aState, bInvisibleBuffer, a Width, aHeight,804 VBoxVHWASurfaceBase(aState, bInvisibleBuffer, aSize, aTargetSize, 790 805 aColorFormat, 791 806 pSrcBltCKey, pDstBltCKey, pSrcOverlayCKey, pDstOverlayCKey),
Note:
See TracChangeset
for help on using the changeset viewer.