[cairo-commit] CairoJava/src/org/cairographics/cairo
CairoSurface.java, 1.6, 1.7
Soorya Kuloor
commit at pdx.freedesktop.org
Mon May 10 16:03:55 PDT 2004
- Previous message: [cairo-commit] glitz/src glitz.h, 1.5, 1.6 glitz_surface.c, 1.7,
1.8 glitz_trap.c, 1.3, 1.4 glitz_tri.c, 1.3, 1.4 glitzint.h,
1.9, 1.10
- Next message: [cairo-commit] packaging/debian/glitz - New directory
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Committed by: skuloor
Update of /cvs/cairo/CairoJava/src/org/cairographics/cairo
In directory pdx:/tmp/cvs-serv7446/src/org/cairographics/cairo
Modified Files:
CairoSurface.java
Log Message:
1. Removed the extra surface parameter for the createSimilar method.
2. Added javadoc to ref() method.
Index: CairoSurface.java
===================================================================
RCS file: /cvs/cairo/CairoJava/src/org/cairographics/cairo/CairoSurface.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** a/CairoSurface.java 30 Apr 2004 17:53:02 -0000 1.6
--- b/CairoSurface.java 10 May 2004 23:03:53 -0000 1.7
***************
*** 58,66 ****
/**
! * Creates a new surface similar to one given, but with slightly different
! * specs.
*
- * @param neighbor
- * The surface to use as a template
* @param format
* The RGB format (one of Cairo.FORMAT_xxx constants)
--- 58,65 ----
/**
! * Creates a new surface similar to this surface, but with slightly different
! * specs. Generally, this method can be used to create off-screen surfaces from
! * on screen surfaces.
*
* @param format
* The RGB format (one of Cairo.FORMAT_xxx constants)
***************
*** 70,77 ****
* Height of the new surface
*/
! public CairoSurface createSimilar(CairoSurface neighbor, short format, int width, int height) {
! return new CairoSurface(cairo_surface_create_similar(neighbor.handle, format, width, height));
}
public void ref() {
cairo_surface_reference(handle);
--- 69,80 ----
* Height of the new surface
*/
! public CairoSurface createSimilar(short format, int width, int height) {
! return new CairoSurface(cairo_surface_create_similar(this.handle, format, width, height));
}
+ /**
+ * Add a reference count to this surface, so that it does not get pre-maturely destroyed.
+ *
+ */
public void ref() {
cairo_surface_reference(handle);
- Previous message: [cairo-commit] glitz/src glitz.h, 1.5, 1.6 glitz_surface.c, 1.7,
1.8 glitz_trap.c, 1.3, 1.4 glitz_tri.c, 1.3, 1.4 glitzint.h,
1.9, 1.10
- Next message: [cairo-commit] packaging/debian/glitz - New directory
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the cairo-commit
mailing list