gtk2/gdk/x11
Owen Taylor d12c9702a4 Private function to tell if we have RENDER extension.
Thu Jan  3 22:18:15 2002  Owen Taylor  <otaylor@redhat.com>

	* gdk/x11/gdkdrawable-x11.c gdk/x11/gdkprivate-x11.h
	(_gdk_x11_have_render): Private function to tell if we have RENDER
	extension.

	* gdk/x11/gdkgc-x11.c (_gdk_x11_gc_get_fg_picture): Return
	None if we don't have RENDER extension.

	* gdk/x11/gdkpango-x11.c (gdk_pango_context_get): Don't
	use Xft unless we have render extension.

	* gdk/x11/gdkdrawable-x11.c (gdk_x11_drawable_get_picture):
	Handle missing render extension.

	* gdk/gdkdraw.c gdk/gdkdrawable.h gdk/gdkpixmap.c gdk/gdkwindow.c
	gdk/gdkinternals.h: Add a private copy_to_image() virtual function
	to the GdkDrawable vtable that extends get_image() to allow
	copying onto existing images.  Make the default implementation of
	get_image() use this so that backends don't have to implement
	both. Add private wrapper _gdk_drawable_copy_to_image().

	* gdk/x11/gdkimage-x11.c gdk/x11/gdkprivate-x11.c
	gdk/x11/gdkdrawable-x11.c (_gdk_x11_copy_to_image): Implement
	copy_to_image() semantics, speed up by using ShmPixmaps and
	XCopyArea when possible, XFlush() after ungrabbing the server,
	generally redo the logic once again.

	* gdk/gdkinternals.h gdk/x11/gdkimage-x11.c
	_gdk_windowing_bits_per_depth(): Function to convert from depth to
	bits-per-pixel. (We assume only one bpp per depth - X requires
	this.)

	* gdk/gdkinternals.h gdk/gdkrgb.c gdk/gdkimage.c: Move the GdkRGB
	scratch image code into a generic _gdk_image_get_scratch() chunk
	of code that we can use other places we need scratch images.

	* gdk/gdkimage.c gdk/x11/gdkimage.c gdk/gdkinternals.h:
	Add _gdk_image_new_for_depth() as the backend
	to _gdk_image_new() to allowing creating images with
	a depth and no visual.

	* gdk/gdkpixbuf-drawable.c: Fix so that getting
	parts of images not at 0,0 actually works.

	* gdk/gdkdrawable.h gdk/gdkinternals.h gdk/gdkdraw.c
	gdk/gdkwindow.c gdk/gdkpixmap.c gdk/gdkpixbuf-render.c:
	 - Add a new GdkDrawableClass vfunc _draw_pixbuf, and
	  _gdk_draw_pixbuf() [ will be made public later ], to allow
	  backends to accelerate drawing pixbufs.
	 - Move the implementation of gdk_pixbuf_render_to_drawable_alpha()
	   to be the default implementation.
	 - Update docs for gdk_pixbuf_render_to_drawable_alpha().
	 - Optimize the default implementation by using
	   _gdk_image_copy_to_pixmap() and scratch shared images, and
	   special casing the compositing.

	* gdk/x11/gdkdrawable-x11.c: Accelerate _gdk_draw_pixbuf()
	with alpha using the RENDER extension.

        * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_drawable):
	Optimize by _gdk_image_copy_to_pixmap() and scratch images.

	* tests/testrgb.c: Add test for speed of alpha composition,
	reduce the number of iterations since alpha composition
	can be a bit slow.

	* gdk/x11/gdkimage-x11.c gdk/gdkprivate-x11.h (_gdk_x11_image_get_shm_pixmap):
	Private function to get a ShmPixmap for an image, if possible.
2002-01-04 05:58:01 +00:00
..
.cvsignore Substitute gdkx.h => gdkprivate.h since we need to accesss only 1999-11-08 22:33:28 +00:00
gdkcolor-x11.c Implement gdk_color_parse() in terms of pango_color_parse(). 2001-11-05 00:23:45 +00:00
gdkcursor-x11.c fix up my list of "cursors that are actually useful" in gdk_cursor_new() 2001-12-07 05:27:17 +00:00
gdkdnd-x11.c Fix problem with g_return_if_fail return value. 2001-10-22 04:34:42 +00:00
gdkdrawable-x11.c Private function to tell if we have RENDER extension. 2002-01-04 05:58:01 +00:00
gdkdrawable-x11.h Redo Xft support to go directly to Picture objects instead of using 2001-11-05 17:48:58 +00:00
gdkevents-x11.c Update xsettings name. 2001-12-09 22:08:30 +00:00
gdkfont-x11.c Update to new Pango API. 2001-11-19 02:23:56 +00:00
gdkgc-x11.c Private function to tell if we have RENDER extension. 2002-01-04 05:58:01 +00:00
gdkgeometry-x11.c Add long, but horribly sketchy comment about what is going on in this 2001-11-26 02:20:06 +00:00
gdkglobals-x11.c Fix problem with g_return_if_fail return value. 2001-10-22 04:34:42 +00:00
gdkim-x11.c Rename ACTIVATE_MNEMONIC enum to MNEMONIC_ACTIVATE; signal was changed a 2001-10-16 23:28:45 +00:00
gdkimage-x11.c Private function to tell if we have RENDER extension. 2002-01-04 05:58:01 +00:00
gdkinput-gxi.c Make gdkx.h the only installed header from gdk/x11. All structures in 2001-09-07 21:50:20 +00:00
gdkinput-none.c Make gdkx.h the only installed header from gdk/x11. All structures in 2001-09-07 21:50:20 +00:00
gdkinput-x11.c Make gdkx.h the only installed header from gdk/x11. All structures in 2001-09-07 21:50:20 +00:00
gdkinput-xfree.c *** empty log message *** 2001-12-11 01:08:33 +00:00
gdkinput.c Typo fix. Updates. Document the special values <none> and <parent> for 2001-10-27 20:41:05 +00:00
gdkinputprivate.h Make gdkx.h the only installed header from gdk/x11. All structures in 2001-09-07 21:50:20 +00:00
gdkkeys-x11.c Remove G_DISABLE_CONST_RETURNS. 2001-10-23 16:02:23 +00:00
gdkmain-x11.c *** empty log message *** 2001-12-11 01:08:33 +00:00
gdkpango-x11.c Private function to tell if we have RENDER extension. 2002-01-04 05:58:01 +00:00
gdkpixmap-x11.c Redo Xft support to go directly to Picture objects instead of using 2001-11-05 17:48:58 +00:00
gdkpixmap-x11.h Make gdkx.h the only installed header from gdk/x11. All structures in 2001-09-07 21:50:20 +00:00
gdkprivate-x11.h Private function to tell if we have RENDER extension. 2002-01-04 05:58:01 +00:00
gdkproperty-x11.c Fix problem where retrieved atoms weren't properly returned. 2002-01-04 00:38:15 +00:00
gdkselection-x11.c GDK instead of Gdk. 2001-12-29 00:24:25 +00:00
gdkvisual-x11.c Throughout: assorted docs 2001-10-03 18:19:48 +00:00
gdkwindow-x11.c Fix some warnings. 2001-12-15 17:17:56 +00:00
gdkwindow-x11.h Introduce an extra child of toplevel windows that serves to hold the focus 2001-04-18 17:57:36 +00:00
gdkx.h Fix problem with g_return_if_fail return value. 2001-10-22 04:34:42 +00:00
gdkxid.c GCompareFunc -> GEqualFunc where applicable. 2000-11-13 13:15:41 +00:00
gxid_lib.c Removed DEFS "+=" mess that breaks recent automakes. INCLUDES is the 1998-11-24 05:58:53 +00:00
gxid_lib.h Initial revision 1997-11-24 22:37:52 +00:00
gxid_proto.h Initial revision 1997-11-24 22:37:52 +00:00
gxid.c Merges from gtk-1-2 2000-03-14 19:57:25 +00:00
Makefile.am Make gdkx.h the only installed header from gdk/x11. All structures in 2001-09-07 21:50:20 +00:00
MwmUtil.h Account for the fact that Xlib expects format == 32 to be a long, even on 1999-02-21 20:55:04 +00:00
xsettings-client.c Add GdkEventSetting event for notification of changes to system settings, 2001-04-02 23:33:47 +00:00
xsettings-client.h Add GdkEventSetting event for notification of changes to system settings, 2001-04-02 23:33:47 +00:00
xsettings-common.c Add GdkEventSetting event for notification of changes to system settings, 2001-04-02 23:33:47 +00:00
xsettings-common.h Make gdkx.h the only installed header from gdk/x11. All structures in 2001-09-07 21:50:20 +00:00