VirtualBox

Changeset 19798 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
May 18, 2009 3:50:20 PM (16 years ago)
Author:
vboxsync
Message:

removed long obsolete methods IFramebuffer::solidFill() and IFramebuffer::copyScreenBits()

Location:
trunk/src/VBox/Main
Files:
5 edited

Legend:

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

    r19588 r19798  
    19901990    that->mInternalFramebuffer = aInternal;
    19911991    that->mSupportedAccelOps = 0;
    1992 
    1993     /* determine which acceleration functions are supported by this framebuffer */
    1994     if (aFB && !aInternal)
    1995     {
    1996         HRESULT rc;
    1997         BOOL accelSupported = FALSE;
    1998         rc = aFB->OperationSupported (
    1999             FramebufferAccelerationOperation_SolidFillAcceleration, &accelSupported);
    2000         AssertComRC (rc);
    2001         if (accelSupported)
    2002             that->mSupportedAccelOps |=
    2003                 FramebufferAccelerationOperation_SolidFillAcceleration;
    2004         accelSupported = FALSE;
    2005         rc = aFB->OperationSupported (
    2006             FramebufferAccelerationOperation_ScreenCopyAcceleration, &accelSupported);
    2007         AssertComRC (rc);
    2008         if (accelSupported)
    2009             that->mSupportedAccelOps |=
    2010                 FramebufferAccelerationOperation_ScreenCopyAcceleration;
    2011     }
    20121992
    20131993    that->mParent->consoleVRDPServer()->SendResize ();
  • trunk/src/VBox/Main/FramebufferImpl.cpp

    r14972 r19798  
    177177}
    178178
    179 STDMETHODIMP InternalFramebuffer::OperationSupported(FramebufferAccelerationOperation_T operation,
    180                                                      BOOL *supported)
    181 {
    182     CheckComArgOutPointerValid(supported);
    183     /* no acceleration please, we're a slow fallback implementation! */
    184     *supported = false;
    185     return S_OK;
    186 }
    187 
    188179STDMETHODIMP InternalFramebuffer::VideoModeSupported(ULONG width, ULONG height, ULONG bpp,
    189180                                                     BOOL *supported)
     
    195186}
    196187
    197 STDMETHODIMP InternalFramebuffer::SolidFill(ULONG x, ULONG y, ULONG width, ULONG height,
    198                                              ULONG color, BOOL *handled)
    199 {
    200     CheckComArgOutPointerValid(handled);
    201     /* eek, what do you expect from us?! */
    202     *handled = false;
    203     return S_OK;
    204 }
    205 
    206 STDMETHODIMP InternalFramebuffer::CopyScreenBits(ULONG xDst, ULONG yDst, ULONG xSrc, ULONG ySrc,
    207                                                  ULONG width, ULONG height, BOOL *handled)
    208 {
    209     CheckComArgOutPointerValid(handled);
    210     /* eek, what do you expect from us?! */
    211     *handled = false;
    212     return S_OK;
    213 }
    214 
    215188STDMETHODIMP InternalFramebuffer::GetVisibleRegion(BYTE *aRectangles, ULONG aCount,
    216189                                                   ULONG *aCountCopied)
  • trunk/src/VBox/Main/cbinding/VBoxCAPI_v2_2.h

    r18896 r19798  
    11811181
    11821182
    1183 /* Start of enum FramebufferAccelerationOperation Declaration */
    1184 #define FRAMEBUFFERACCELERATIONOPERATION_IID_STR "f0e5ebbe-dc8e-4e2d-916e-53baa3844df8"
    1185 #define FRAMEBUFFERACCELERATIONOPERATION_IID { \
    1186     0xf0e5ebbe, 0xdc8e, 0x4e2d, \
    1187     { 0x91, 0x6e, 0x53, 0xba, 0xa3, 0x84, 0x4d, 0xf8 } \
    1188 }
    1189 enum FramebufferAccelerationOperation
    1190 {
    1191     FramebufferAccelerationOperation_SolidFillAcceleration = 1,
    1192     FramebufferAccelerationOperation_ScreenCopyAcceleration = 2
    1193 };
    1194 /* End of enum FramebufferAccelerationOperation Declaration */
    1195 
    1196 
    11971183/* Start of enum FramebufferPixelFormat Declaration */
    11981184#define FRAMEBUFFERPIXELFORMAT_IID_STR "7acfd5ed-29e3-45e3-8136-73c9224f3d2d"
     
    37573743    );
    37583744
    3759     nsresult (*OperationSupported)(
    3760         IFramebuffer *pThis,
    3761         PRUint32 operation,
    3762         PRBool * supported
    3763     );
    3764 
    37653745    nsresult (*VideoModeSupported)(
    37663746        IFramebuffer *pThis,
     
    37693749        PRUint32 bpp,
    37703750        PRBool * supported
    3771     );
    3772 
    3773     nsresult (*SolidFill)(
    3774         IFramebuffer *pThis,
    3775         PRUint32 x,
    3776         PRUint32 y,
    3777         PRUint32 width,
    3778         PRUint32 height,
    3779         PRUint32 color,
    3780         PRBool * handled
    3781     );
    3782 
    3783     nsresult (*CopyScreenBits)(
    3784         IFramebuffer *pThis,
    3785         PRUint32 xDst,
    3786         PRUint32 yDst,
    3787         PRUint32 xSrc,
    3788         PRUint32 ySrc,
    3789         PRUint32 width,
    3790         PRUint32 height,
    3791         PRBool * handled
    37923751    );
    37933752
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r19695 r19798  
    1024810248
    1024910249  <enum
    10250     name="FramebufferAccelerationOperation"
    10251     uuid="f0e5ebbe-dc8e-4e2d-916e-53baa3844df8"
    10252   >
    10253     <desc>
    10254       Frame buffer acceleration operation.
    10255     </desc>
    10256 
    10257     <const name="SolidFillAcceleration"   value="1"/>
    10258     <const name="ScreenCopyAcceleration"  value="2"/>
    10259   </enum>
    10260 
    10261   <enum
    1026210250    name="FramebufferPixelFormat"
    1026310251    uuid="7acfd5ed-29e3-45e3-8136-73c9224f3d2d"
     
    1028810276  <interface
    1028910277     name="IFramebuffer" extends="$unknown"
    10290      uuid="af431304-5b09-40e2-94da-3c3cb03822c1"
     10278     uuid="3ce29e6d-835a-4283-8ee0-eb9971b81d81"
    1029110279     wsmap="suppress"
    1029210280     >
     
    1051910507    </method>
    1052010508
    10521     <method name="operationSupported">
    10522       <desc>
    10523         Returns whether the given acceleration operation is supported
    10524         by the IFramebuffer implementation. If not, the display object
    10525         will not attempt to call the corresponding IFramebuffer entry
    10526         point. Even if an operation is indicated as supported, the
    10527         IFramebuffer implementation always has the option to return non
    10528         supported from the corresponding acceleration method in which
    10529         case the operation will be performed by the display engine. This
    10530         allows for reduced IFramebuffer implementation complexity where
    10531         only common cases are handled.
    10532       </desc>
    10533       <param name="operation" type="FramebufferAccelerationOperation" dir="in"/>
    10534       <param name="supported" type="boolean" dir="return"/>
    10535     </method>
    10536 
    1053710509    <method name="videoModeSupported">
    1053810510      <desc>
     
    1054910521      <param name="bpp" type="unsigned long" dir="in"/>
    1055010522      <param name="supported" type="boolean" dir="return"/>
    10551     </method>
    10552 
    10553     <method name="solidFill">
    10554       <desc>
    10555         Fills the specified rectangle on screen with a solid color.
    10556       </desc>
    10557       <param name="x" type="unsigned long" dir="in"/>
    10558       <param name="y" type="unsigned long" dir="in"/>
    10559       <param name="width" type="unsigned long" dir="in"/>
    10560       <param name="height" type="unsigned long" dir="in"/>
    10561       <param name="color" type="unsigned long" dir="in"/>
    10562       <param name="handled" type="boolean" dir="return"/>
    10563     </method>
    10564 
    10565     <method name="copyScreenBits">
    10566       <desc>
    10567         Copies specified rectangle on the screen.
    10568       </desc>
    10569       <param name="xDst" type="unsigned long" dir="in"/>
    10570       <param name="yDst" type="unsigned long" dir="in"/>
    10571       <param name="xSrc" type="unsigned long" dir="in"/>
    10572       <param name="ySrc" type="unsigned long" dir="in"/>
    10573       <param name="width" type="unsigned long" dir="in"/>
    10574       <param name="height" type="unsigned long" dir="in"/>
    10575       <param name="handled" type="boolean" dir="return"/>
    1057610523    </method>
    1057710524
  • trunk/src/VBox/Main/include/FramebufferImpl.h

    r19239 r19798  
    6969                             ULONG bpp, ULONG bpl, ULONG w, ULONG h,
    7070                             BOOL *finished);
    71     STDMETHOD(OperationSupported)(FramebufferAccelerationOperation_T operation,
    72                                   BOOL *supported);
    7371    STDMETHOD(VideoModeSupported)(ULONG width, ULONG height, ULONG bpp, BOOL *supported);
    74     STDMETHOD(SolidFill)(ULONG x, ULONG y, ULONG width, ULONG height,
    75                          ULONG color, BOOL *handled);
    76     STDMETHOD(CopyScreenBits)(ULONG xDst, ULONG yDst, ULONG xSrc, ULONG ySrc,
    77                               ULONG width, ULONG height, BOOL *handled);
    7872
    7973    STDMETHOD(GetVisibleRegion)(BYTE *aRectangles, ULONG aCount, ULONG *aCountCopied);
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