2006-12-07 Chris Toshok <toshok@ximian.com>
commit039ab8d30fe2e07da483feb69b210cb64242d1c7
authorChris Toshok <toshok@novell.com>
Thu, 7 Dec 2006 05:30:37 +0000 (7 05:30 -0000)
committerChris Toshok <toshok@novell.com>
Thu, 7 Dec 2006 05:30:37 +0000 (7 05:30 -0000)
tree21606fc5c1a3bce62ac8b02af2d53ecbde562e7d
parent697ed6519044706eaf7c692adf23b8756dbab1de
2006-12-07  Chris Toshok  <toshok@ximian.com>

* XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
all the behavior we need for double buffering.

* XplatUIDriver.cs: implement the 3 double buffer methods using a
client side Bitmap, just like the old Control-based double buffer
code did.  The methods are virtual, so each XplatUI driver
subclass can replace the implementation to use a faster, platform
specific approach.

* Control.cs: make use of the 3 Offscreen XplatUI calls in the
double buffer code, and clean things up a bit in the process.

svn path=/trunk/mcs/; revision=69155
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUI.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIDriver.cs