[patch] buffer strategy framework

Thomas Fitzsimmons fitzsim@redhat.com
Fri May 6 23:20:00 GMT 2005


Hi,

This patch implements the AWT buffer strategy framework.  All the
documentation is in place, so it should be clear how to add more
backends.  Currently there is one stub backend, GtkVolatileImage.

We can add accelerated backends when we do the Cairo/AWT1.2 imaging and
graphics migration.  At that point we can start really testing this
framework.

For now, this skeleton gives us the createBufferStrategy methods on
Canvas and Window which are required by OpenOffice.org and were
previously missing.

I committed this to mainline.  Ideally I'd like it on gcc-4_0-branch
too.  Can it go in there, even though it adds new methods to Window and
Canvas?

Tom

2005-05-06  Thomas Fitzsimmons  <fitzsim@redhat.com>

	* Makefile.am (gtk_awt_peer_sources): Add GtkVolatileImage.java.
	* Makefile.in: Regenerate.
	* gnu/java/awt/peer/gtk/GdkGraphicsConfiguration.java
	(createCompatibleVolatileImage(int,int)): Implement.
	(createCompatibleVolatileImage(int,int,ImageCapabilities)):
	Likewise.
	* gnu/java/awt/peer/gtk/GtkComponentPeer.java (backBuffer, caps):
	New fields.
	(createVolatileImage): Implement.
	(createBuffers): Likewise.
	(getBackBuffer): Likewise.
	(flip): Likewise.
	(destroyBuffers): Likewise.
	* gnu/java/awt/peer/gtk/GtkVolatileImage.java: New file.
	* java/awt/Canvas.java (CanvasBltBufferStrategy): New class.
	(CanvasFlipBufferStrategy): Likewise.
	(createBufferStrategy(int)): New method.
	(createBufferStrategy(int,BufferCapabilities)): Likewise.
	* java/awt/Component.java (BltBufferStrategy): Implement and
	document class.
	(FlipBufferStrategy): Likewise.
	* java/awt/Window.java (WindowBltBufferStrategy): New class.
	(WindowFlipBufferStrategy): Likewise.
	(createBufferStrategy(int)): New method.
	(createBufferStrategy(int,BufferCapabilities)): Likewise.
	(getBufferStrategy): Likewise.
	* java/awt/BufferCapabilities.java (BufferCapabilities): Rename
	front to frontCaps and back to backCaps.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: awt-buffer-strategy.patch
Type: text/x-patch
Size: 39601 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20050506/c41b2d0b/attachment.bin>


More information about the Java-patches mailing list