Makefile.am (gtk_awt_peer_sources): Add GtkVolatileImage.java.
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. From-SVN: r99336
This commit is contained in:
committed by
Thomas Fitzsimmons
parent
91a01f21ab
commit
2ed0018eb4
@@ -96,23 +96,22 @@ public abstract class BufferStrategy
|
||||
|
||||
/**
|
||||
* Returns whether or not the buffer's resources have been reclaimed
|
||||
* by the native graphics system since the last call to
|
||||
* getDrawGraphics. If the buffer resources have been lost then
|
||||
* you'll need to obtain new resources before drawing again. For
|
||||
* details, see the documentation for VolatileImage.
|
||||
* by the native graphics system. If the buffer resources have been
|
||||
* lost then you'll need to obtain new resources before drawing
|
||||
* again. For details, see the documentation for VolatileImage.
|
||||
*
|
||||
* @return true if the contents were lost since the last call to
|
||||
* getDrawGraphics, false otherwise
|
||||
* @return true if the contents were lost, false otherwise
|
||||
*/
|
||||
public abstract boolean contentsLost();
|
||||
|
||||
/**
|
||||
* Returns whether or not the buffer's resources were re-created and
|
||||
* cleared to the default background color since the last call to
|
||||
* getDrawGraphics. If the buffer's resources have recently been
|
||||
* re-created and initialized then the buffer's image may need to be
|
||||
* re-rendered. For details, see the documentation for
|
||||
* VolatileImage.
|
||||
* cleared to the default background color. If the buffer's
|
||||
* resources have recently been re-created and initialized then the
|
||||
* buffer's image may need to be re-rendered. For details, see the
|
||||
* documentation for VolatileImage.
|
||||
*
|
||||
* @return true if the contents were restored, false otherwise
|
||||
*/
|
||||
public abstract boolean contentsRestored();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user