diff options
Diffstat (limited to 'libraries/evas/src/modules/engines/software_8_x11')
6 files changed, 0 insertions, 1912 deletions
diff --git a/libraries/evas/src/modules/engines/software_8_x11/Evas_Engine_Software_8_X11.h b/libraries/evas/src/modules/engines/software_8_x11/Evas_Engine_Software_8_X11.h deleted file mode 100644 index fac3d8e..0000000 --- a/libraries/evas/src/modules/engines/software_8_x11/Evas_Engine_Software_8_X11.h +++ /dev/null | |||
@@ -1,38 +0,0 @@ | |||
1 | #ifndef _EVAS_ENGINE_SOFTWARE_8_X11_H | ||
2 | #define _EVAS_ENGINE_SOFTWARE_8_X11_H | ||
3 | |||
4 | #include <xcb/xcb.h> | ||
5 | |||
6 | typedef struct _Evas_Engine_Info_Software_8_X11 Evas_Engine_Info_Software_8_X11; | ||
7 | |||
8 | struct _Evas_Engine_Info_Software_8_X11 | ||
9 | { | ||
10 | /* PRIVATE - don't mess with this baby or evas will poke its tongue out */ | ||
11 | /* at you and make nasty noises */ | ||
12 | Evas_Engine_Info magic; | ||
13 | |||
14 | /* engine specific data & parameters it needs to set up */ | ||
15 | struct { | ||
16 | xcb_connection_t *connection; | ||
17 | xcb_drawable_t drawable; | ||
18 | xcb_gcontext_t gc; | ||
19 | xcb_screen_t *screen; | ||
20 | |||
21 | unsigned int mask; | ||
22 | void *visual; | ||
23 | unsigned int colormap; | ||
24 | int depth; | ||
25 | int rotation; | ||
26 | |||
27 | int alloc_grayscale : 1; | ||
28 | int debug : 1; | ||
29 | int shape_dither : 1; | ||
30 | int destination_alpha : 1; | ||
31 | int track_mask_changes : 1; | ||
32 | } info; | ||
33 | |||
34 | /* non-blocking or blocking mode */ | ||
35 | Evas_Engine_Render_Mode render_mode; | ||
36 | }; | ||
37 | |||
38 | #endif | ||
diff --git a/libraries/evas/src/modules/engines/software_8_x11/Makefile.am b/libraries/evas/src/modules/engines/software_8_x11/Makefile.am deleted file mode 100644 index 3689577..0000000 --- a/libraries/evas/src/modules/engines/software_8_x11/Makefile.am +++ /dev/null | |||
@@ -1,49 +0,0 @@ | |||
1 | |||
2 | MAINTAINERCLEANFILES = Makefile.in | ||
3 | |||
4 | AM_CPPFLAGS = \ | ||
5 | -I. \ | ||
6 | -I$(top_srcdir)/src/lib \ | ||
7 | -I$(top_srcdir)/src/lib/include \ | ||
8 | -I$(top_srcdir)/src/modules/engines \ | ||
9 | -I$(top_srcdir)/src/modules/engines/software_8 \ | ||
10 | @FREETYPE_CFLAGS@ \ | ||
11 | @PIXMAN_CFLAGS@ \ | ||
12 | @EINA_CFLAGS@ \ | ||
13 | @evas_engine_software_8_x11_cflags@ \ | ||
14 | -I/usr/include/pixman-1 | ||
15 | |||
16 | if BUILD_ENGINE_SOFTWARE_8_X11 | ||
17 | |||
18 | SOFTWARE_8_X11_SOURCES = \ | ||
19 | evas_engine.c \ | ||
20 | evas_x_buffer.c | ||
21 | |||
22 | SOFTWARE_8_X11_LIBADD = @evas_engine_software_8_x11_libs@ | ||
23 | |||
24 | |||
25 | includes_HEADERS = Evas_Engine_Software_8_X11.h | ||
26 | includesdir = $(includedir)/evas-@VMAJ@ | ||
27 | |||
28 | if !EVAS_STATIC_BUILD_SOFTWARE_8_X11 | ||
29 | |||
30 | pkgdir = $(libdir)/evas/modules/engines/software_8_x11/$(MODULE_ARCH) | ||
31 | pkg_LTLIBRARIES = module.la | ||
32 | |||
33 | module_la_SOURCES = $(SOFTWARE_8_X11_SOURCES) | ||
34 | module_la_LIBADD = @EINA_LIBS@ $(SOFTWARE_8_X11_LIBADD) $(top_builddir)/src/lib/libevas.la | ||
35 | #-lxcb-image -lxcb-shm -lxcb -lpixman-1 | ||
36 | module_la_LDFLAGS = -no-undefined -module -avoid-version | ||
37 | module_la_LIBTOOLFLAGS = --tag=disable-static | ||
38 | |||
39 | else | ||
40 | |||
41 | noinst_LTLIBRARIES = libevas_engine_software_8_x11.la | ||
42 | |||
43 | libevas_engine_software_8_x11_la_SOURCES = $(SOFTWARE_8_X11_SOURCES) | ||
44 | libevas_engine_software_8_x11_la_LIBADD = $(SOFTWARE_8_X11_LIBADD) | ||
45 | |||
46 | endif | ||
47 | endif | ||
48 | |||
49 | EXTRA_DIST = evas_engine.h | ||
diff --git a/libraries/evas/src/modules/engines/software_8_x11/Makefile.in b/libraries/evas/src/modules/engines/software_8_x11/Makefile.in deleted file mode 100644 index 3231fd1..0000000 --- a/libraries/evas/src/modules/engines/software_8_x11/Makefile.in +++ /dev/null | |||
@@ -1,818 +0,0 @@ | |||
1 | # Makefile.in generated by automake 1.11.1 from Makefile.am. | ||
2 | # @configure_input@ | ||
3 | |||
4 | # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, | ||
5 | # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, | ||
6 | # Inc. | ||
7 | # This Makefile.in is free software; the Free Software Foundation | ||
8 | # gives unlimited permission to copy and/or distribute it, | ||
9 | # with or without modifications, as long as this notice is preserved. | ||
10 | |||
11 | # This program is distributed in the hope that it will be useful, | ||
12 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without | ||
13 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | ||
14 | # PARTICULAR PURPOSE. | ||
15 | |||
16 | @SET_MAKE@ | ||
17 | |||
18 | |||
19 | VPATH = @srcdir@ | ||
20 | pkgdatadir = $(datadir)/@PACKAGE@ | ||
21 | pkgincludedir = $(includedir)/@PACKAGE@ | ||
22 | pkglibdir = $(libdir)/@PACKAGE@ | ||
23 | pkglibexecdir = $(libexecdir)/@PACKAGE@ | ||
24 | am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd | ||
25 | install_sh_DATA = $(install_sh) -c -m 644 | ||
26 | install_sh_PROGRAM = $(install_sh) -c | ||
27 | install_sh_SCRIPT = $(install_sh) -c | ||
28 | INSTALL_HEADER = $(INSTALL_DATA) | ||
29 | transform = $(program_transform_name) | ||
30 | NORMAL_INSTALL = : | ||
31 | PRE_INSTALL = : | ||
32 | POST_INSTALL = : | ||
33 | NORMAL_UNINSTALL = : | ||
34 | PRE_UNINSTALL = : | ||
35 | POST_UNINSTALL = : | ||
36 | build_triplet = @build@ | ||
37 | host_triplet = @host@ | ||
38 | subdir = src/modules/engines/software_8_x11 | ||
39 | DIST_COMMON = $(am__includes_HEADERS_DIST) $(srcdir)/Makefile.am \ | ||
40 | $(srcdir)/Makefile.in | ||
41 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | ||
42 | am__aclocal_m4_deps = $(top_srcdir)/m4/efl_attribute.m4 \ | ||
43 | $(top_srcdir)/m4/efl_coverage.m4 \ | ||
44 | $(top_srcdir)/m4/efl_doxygen.m4 \ | ||
45 | $(top_srcdir)/m4/efl_fnmatch.m4 \ | ||
46 | $(top_srcdir)/m4/efl_path_max.m4 $(top_srcdir)/m4/efl_tests.m4 \ | ||
47 | $(top_srcdir)/m4/evas_check_engine.m4 \ | ||
48 | $(top_srcdir)/m4/evas_check_loader.m4 \ | ||
49 | $(top_srcdir)/m4/evas_converter.m4 \ | ||
50 | $(top_srcdir)/m4/evas_dither.m4 \ | ||
51 | $(top_srcdir)/m4/evas_scaler.m4 $(top_srcdir)/m4/libtool.m4 \ | ||
52 | $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ | ||
53 | $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ | ||
54 | $(top_srcdir)/configure.ac | ||
55 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ | ||
56 | $(ACLOCAL_M4) | ||
57 | mkinstalldirs = $(install_sh) -d | ||
58 | CONFIG_HEADER = $(top_builddir)/config.h | ||
59 | CONFIG_CLEAN_FILES = | ||
60 | CONFIG_CLEAN_VPATH_FILES = | ||
61 | am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; | ||
62 | am__vpath_adj = case $$p in \ | ||
63 | $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ | ||
64 | *) f=$$p;; \ | ||
65 | esac; | ||
66 | am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; | ||
67 | am__install_max = 40 | ||
68 | am__nobase_strip_setup = \ | ||
69 | srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` | ||
70 | am__nobase_strip = \ | ||
71 | for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" | ||
72 | am__nobase_list = $(am__nobase_strip_setup); \ | ||
73 | for p in $$list; do echo "$$p $$p"; done | \ | ||
74 | sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ | ||
75 | $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ | ||
76 | if (++n[$$2] == $(am__install_max)) \ | ||
77 | { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ | ||
78 | END { for (dir in files) print dir, files[dir] }' | ||
79 | am__base_list = \ | ||
80 | sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ | ||
81 | sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | ||
82 | am__installdirs = "$(DESTDIR)$(pkgdir)" "$(DESTDIR)$(includesdir)" | ||
83 | LTLIBRARIES = $(noinst_LTLIBRARIES) $(pkg_LTLIBRARIES) | ||
84 | am__DEPENDENCIES_1 = | ||
85 | @BUILD_ENGINE_SOFTWARE_8_X11_TRUE@@EVAS_STATIC_BUILD_SOFTWARE_8_X11_TRUE@libevas_engine_software_8_x11_la_DEPENDENCIES = $(am__DEPENDENCIES_1) | ||
86 | am__libevas_engine_software_8_x11_la_SOURCES_DIST = evas_engine.c \ | ||
87 | evas_x_buffer.c | ||
88 | @BUILD_ENGINE_SOFTWARE_8_X11_TRUE@am__objects_1 = evas_engine.lo \ | ||
89 | @BUILD_ENGINE_SOFTWARE_8_X11_TRUE@ evas_x_buffer.lo | ||
90 | @BUILD_ENGINE_SOFTWARE_8_X11_TRUE@@EVAS_STATIC_BUILD_SOFTWARE_8_X11_TRUE@am_libevas_engine_software_8_x11_la_OBJECTS = $(am__objects_1) | ||
91 | libevas_engine_software_8_x11_la_OBJECTS = \ | ||
92 | $(am_libevas_engine_software_8_x11_la_OBJECTS) | ||
93 | AM_V_lt = $(am__v_lt_$(V)) | ||
94 | am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY)) | ||
95 | am__v_lt_0 = --silent | ||
96 | @BUILD_ENGINE_SOFTWARE_8_X11_TRUE@@EVAS_STATIC_BUILD_SOFTWARE_8_X11_TRUE@am_libevas_engine_software_8_x11_la_rpath = | ||
97 | @BUILD_ENGINE_SOFTWARE_8_X11_TRUE@@EVAS_STATIC_BUILD_SOFTWARE_8_X11_FALSE@module_la_DEPENDENCIES = $(am__DEPENDENCIES_1) \ | ||
98 | @BUILD_ENGINE_SOFTWARE_8_X11_TRUE@@EVAS_STATIC_BUILD_SOFTWARE_8_X11_FALSE@ $(top_builddir)/src/lib/libevas.la | ||
99 | am__module_la_SOURCES_DIST = evas_engine.c evas_x_buffer.c | ||
100 | @BUILD_ENGINE_SOFTWARE_8_X11_TRUE@am__objects_2 = \ | ||
101 | @BUILD_ENGINE_SOFTWARE_8_X11_TRUE@ module_la-evas_engine.lo \ | ||
102 | @BUILD_ENGINE_SOFTWARE_8_X11_TRUE@ module_la-evas_x_buffer.lo | ||
103 | @BUILD_ENGINE_SOFTWARE_8_X11_TRUE@@EVAS_STATIC_BUILD_SOFTWARE_8_X11_FALSE@am_module_la_OBJECTS = $(am__objects_2) | ||
104 | module_la_OBJECTS = $(am_module_la_OBJECTS) | ||
105 | module_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ | ||
106 | $(module_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ | ||
107 | $(AM_CFLAGS) $(CFLAGS) $(module_la_LDFLAGS) $(LDFLAGS) -o $@ | ||
108 | @BUILD_ENGINE_SOFTWARE_8_X11_TRUE@@EVAS_STATIC_BUILD_SOFTWARE_8_X11_FALSE@am_module_la_rpath = -rpath \ | ||
109 | @BUILD_ENGINE_SOFTWARE_8_X11_TRUE@@EVAS_STATIC_BUILD_SOFTWARE_8_X11_FALSE@ $(pkgdir) | ||
110 | DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) | ||
111 | depcomp = $(SHELL) $(top_srcdir)/depcomp | ||
112 | am__depfiles_maybe = depfiles | ||
113 | am__mv = mv -f | ||
114 | COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ | ||
115 | $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | ||
116 | LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ | ||
117 | $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ | ||
118 | $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ | ||
119 | $(AM_CFLAGS) $(CFLAGS) | ||
120 | AM_V_CC = $(am__v_CC_$(V)) | ||
121 | am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY)) | ||
122 | am__v_CC_0 = @echo " CC " $@; | ||
123 | AM_V_at = $(am__v_at_$(V)) | ||
124 | am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) | ||
125 | am__v_at_0 = @ | ||
126 | CCLD = $(CC) | ||
127 | LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ | ||
128 | $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ | ||
129 | $(AM_LDFLAGS) $(LDFLAGS) -o $@ | ||
130 | AM_V_CCLD = $(am__v_CCLD_$(V)) | ||
131 | am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY)) | ||
132 | am__v_CCLD_0 = @echo " CCLD " $@; | ||
133 | AM_V_GEN = $(am__v_GEN_$(V)) | ||
134 | am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) | ||
135 | am__v_GEN_0 = @echo " GEN " $@; | ||
136 | SOURCES = $(libevas_engine_software_8_x11_la_SOURCES) \ | ||
137 | $(module_la_SOURCES) | ||
138 | DIST_SOURCES = $(am__libevas_engine_software_8_x11_la_SOURCES_DIST) \ | ||
139 | $(am__module_la_SOURCES_DIST) | ||
140 | am__includes_HEADERS_DIST = Evas_Engine_Software_8_X11.h | ||
141 | HEADERS = $(includes_HEADERS) | ||
142 | ETAGS = etags | ||
143 | CTAGS = ctags | ||
144 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | ||
145 | ACLOCAL = @ACLOCAL@ | ||
146 | ALLOCA = @ALLOCA@ | ||
147 | AMTAR = @AMTAR@ | ||
148 | AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ | ||
149 | AR = @AR@ | ||
150 | AS = @AS@ | ||
151 | AUTOCONF = @AUTOCONF@ | ||
152 | AUTOHEADER = @AUTOHEADER@ | ||
153 | AUTOMAKE = @AUTOMAKE@ | ||
154 | AWK = @AWK@ | ||
155 | CC = @CC@ | ||
156 | CCDEPMODE = @CCDEPMODE@ | ||
157 | CFLAGS = @CFLAGS@ | ||
158 | CHECK_CFLAGS = @CHECK_CFLAGS@ | ||
159 | CHECK_LIBS = @CHECK_LIBS@ | ||
160 | CPP = @CPP@ | ||
161 | CPPFLAGS = @CPPFLAGS@ | ||
162 | CXX = @CXX@ | ||
163 | CXXCPP = @CXXCPP@ | ||
164 | CXXDEPMODE = @CXXDEPMODE@ | ||
165 | CXXFLAGS = @CXXFLAGS@ | ||
166 | CYGPATH_W = @CYGPATH_W@ | ||
167 | DEFS = @DEFS@ | ||
168 | DEPDIR = @DEPDIR@ | ||
169 | DIRECTFB_CFLAGS = @DIRECTFB_CFLAGS@ | ||
170 | DIRECTFB_LIBS = @DIRECTFB_LIBS@ | ||
171 | DLLTOOL = @DLLTOOL@ | ||
172 | DSYMUTIL = @DSYMUTIL@ | ||
173 | DUMPBIN = @DUMPBIN@ | ||
174 | ECHO_C = @ECHO_C@ | ||
175 | ECHO_N = @ECHO_N@ | ||
176 | ECHO_T = @ECHO_T@ | ||
177 | ECORE_EVAS_CFLAGS = @ECORE_EVAS_CFLAGS@ | ||
178 | ECORE_EVAS_LIBS = @ECORE_EVAS_LIBS@ | ||
179 | EDB_CFLAGS = @EDB_CFLAGS@ | ||
180 | EDB_LIBS = @EDB_LIBS@ | ||
181 | EDJE_CFLAGS = @EDJE_CFLAGS@ | ||
182 | EDJE_LIBS = @EDJE_LIBS@ | ||
183 | EET_CFLAGS = @EET_CFLAGS@ | ||
184 | EET_LIBS = @EET_LIBS@ | ||
185 | EFL_COVERAGE_CFLAGS = @EFL_COVERAGE_CFLAGS@ | ||
186 | EFL_COVERAGE_LIBS = @EFL_COVERAGE_LIBS@ | ||
187 | EFL_FNMATCH_LIBS = @EFL_FNMATCH_LIBS@ | ||
188 | EGREP = @EGREP@ | ||
189 | EINA_CFLAGS = @EINA_CFLAGS@ | ||
190 | EINA_LIBS = @EINA_LIBS@ | ||
191 | EVAS_CFLAGS = @EVAS_CFLAGS@ | ||
192 | EVAS_LIBS = @EVAS_LIBS@ | ||
193 | EVAS_SSE3_CFLAGS = @EVAS_SSE3_CFLAGS@ | ||
194 | EVIL_CFLAGS = @EVIL_CFLAGS@ | ||
195 | EVIL_LIBS = @EVIL_LIBS@ | ||
196 | EXEEXT = @EXEEXT@ | ||
197 | EXOTIC_CFLAGS = @EXOTIC_CFLAGS@ | ||
198 | EXOTIC_LIBS = @EXOTIC_LIBS@ | ||
199 | FGREP = @FGREP@ | ||
200 | FONTCONFIG_CFLAGS = @FONTCONFIG_CFLAGS@ | ||
201 | FONTCONFIG_LIBS = @FONTCONFIG_LIBS@ | ||
202 | FREETYPE_CFLAGS = @FREETYPE_CFLAGS@ | ||
203 | FREETYPE_LIBS = @FREETYPE_LIBS@ | ||
204 | FRIBIDI_CFLAGS = @FRIBIDI_CFLAGS@ | ||
205 | FRIBIDI_LIBS = @FRIBIDI_LIBS@ | ||
206 | GL_EET_CFLAGS = @GL_EET_CFLAGS@ | ||
207 | GL_EET_LIBS = @GL_EET_LIBS@ | ||
208 | GREP = @GREP@ | ||
209 | HARFBUZZ_CFLAGS = @HARFBUZZ_CFLAGS@ | ||
210 | HARFBUZZ_LIBS = @HARFBUZZ_LIBS@ | ||
211 | INSTALL = @INSTALL@ | ||
212 | INSTALL_DATA = @INSTALL_DATA@ | ||
213 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | ||
214 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | ||
215 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | ||
216 | LD = @LD@ | ||
217 | LDFLAGS = @LDFLAGS@ | ||
218 | LIBOBJS = @LIBOBJS@ | ||
219 | LIBS = @LIBS@ | ||
220 | LIBTOOL = @LIBTOOL@ | ||
221 | LINEBREAK_CFLAGS = @LINEBREAK_CFLAGS@ | ||
222 | LINEBREAK_LIBS = @LINEBREAK_LIBS@ | ||
223 | LIPO = @LIPO@ | ||
224 | LN_S = @LN_S@ | ||
225 | LTLIBOBJS = @LTLIBOBJS@ | ||
226 | MAKEINFO = @MAKEINFO@ | ||
227 | MKDIR_P = @MKDIR_P@ | ||
228 | MODULE_ARCH = @MODULE_ARCH@ | ||
229 | NM = @NM@ | ||
230 | NMEDIT = @NMEDIT@ | ||
231 | OBJC = @OBJC@ | ||
232 | OBJCDEPMODE = @OBJCDEPMODE@ | ||
233 | OBJCFLAGS = @OBJCFLAGS@ | ||
234 | OBJDUMP = @OBJDUMP@ | ||
235 | OBJEXT = @OBJEXT@ | ||
236 | OTOOL = @OTOOL@ | ||
237 | OTOOL64 = @OTOOL64@ | ||
238 | PACKAGE = @PACKAGE@ | ||
239 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | ||
240 | PACKAGE_NAME = @PACKAGE_NAME@ | ||
241 | PACKAGE_STRING = @PACKAGE_STRING@ | ||
242 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ | ||
243 | PACKAGE_URL = @PACKAGE_URL@ | ||
244 | PACKAGE_VERSION = @PACKAGE_VERSION@ | ||
245 | PATH_SEPARATOR = @PATH_SEPARATOR@ | ||
246 | PIXMAN_CFLAGS = @PIXMAN_CFLAGS@ | ||
247 | PIXMAN_LIBS = @PIXMAN_LIBS@ | ||
248 | PKG_CONFIG = @PKG_CONFIG@ | ||
249 | PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ | ||
250 | PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ | ||
251 | PNG_CFLAGS = @PNG_CFLAGS@ | ||
252 | PNG_LIBS = @PNG_LIBS@ | ||
253 | RANLIB = @RANLIB@ | ||
254 | SDL_CFLAGS = @SDL_CFLAGS@ | ||
255 | SDL_LIBS = @SDL_LIBS@ | ||
256 | SED = @SED@ | ||
257 | SET_MAKE = @SET_MAKE@ | ||
258 | SHELL = @SHELL@ | ||
259 | SHM_OPEN_LINK = @SHM_OPEN_LINK@ | ||
260 | STRIP = @STRIP@ | ||
261 | SVG_CFLAGS = @SVG_CFLAGS@ | ||
262 | SVG_LIBS = @SVG_LIBS@ | ||
263 | VALGRIND_CFLAGS = @VALGRIND_CFLAGS@ | ||
264 | VALGRIND_LIBS = @VALGRIND_LIBS@ | ||
265 | VERSION = @VERSION@ | ||
266 | VMAJ = @VMAJ@ | ||
267 | WAYLAND_EGL_CFLAGS = @WAYLAND_EGL_CFLAGS@ | ||
268 | WAYLAND_EGL_LIBS = @WAYLAND_EGL_LIBS@ | ||
269 | XCB_CFLAGS = @XCB_CFLAGS@ | ||
270 | XCB_GL_CFLAGS = @XCB_GL_CFLAGS@ | ||
271 | XCB_GL_LIBS = @XCB_GL_LIBS@ | ||
272 | XCB_LIBS = @XCB_LIBS@ | ||
273 | XEXT_CFLAGS = @XEXT_CFLAGS@ | ||
274 | XEXT_LIBS = @XEXT_LIBS@ | ||
275 | XMKMF = @XMKMF@ | ||
276 | X_CFLAGS = @X_CFLAGS@ | ||
277 | X_EXTRA_LIBS = @X_EXTRA_LIBS@ | ||
278 | X_LIBS = @X_LIBS@ | ||
279 | X_PRE_LIBS = @X_PRE_LIBS@ | ||
280 | abs_builddir = @abs_builddir@ | ||
281 | abs_srcdir = @abs_srcdir@ | ||
282 | abs_top_builddir = @abs_top_builddir@ | ||
283 | abs_top_srcdir = @abs_top_srcdir@ | ||
284 | ac_ct_CC = @ac_ct_CC@ | ||
285 | ac_ct_CXX = @ac_ct_CXX@ | ||
286 | ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ | ||
287 | ac_ct_OBJC = @ac_ct_OBJC@ | ||
288 | altivec_cflags = @altivec_cflags@ | ||
289 | am__include = @am__include@ | ||
290 | am__leading_dot = @am__leading_dot@ | ||
291 | am__quote = @am__quote@ | ||
292 | am__tar = @am__tar@ | ||
293 | am__untar = @am__untar@ | ||
294 | bindir = @bindir@ | ||
295 | build = @build@ | ||
296 | build_alias = @build_alias@ | ||
297 | build_cpu = @build_cpu@ | ||
298 | build_os = @build_os@ | ||
299 | build_vendor = @build_vendor@ | ||
300 | builddir = @builddir@ | ||
301 | datadir = @datadir@ | ||
302 | datarootdir = @datarootdir@ | ||
303 | dlopen_libs = @dlopen_libs@ | ||
304 | docdir = @docdir@ | ||
305 | dvidir = @dvidir@ | ||
306 | edje_cc = @edje_cc@ | ||
307 | efl_doxygen = @efl_doxygen@ | ||
308 | efl_have_doxygen = @efl_have_doxygen@ | ||
309 | evas_engine_buffer_cflags = @evas_engine_buffer_cflags@ | ||
310 | evas_engine_buffer_libs = @evas_engine_buffer_libs@ | ||
311 | evas_engine_direct3d_cflags = @evas_engine_direct3d_cflags@ | ||
312 | evas_engine_direct3d_libs = @evas_engine_direct3d_libs@ | ||
313 | evas_engine_directfb_cflags = @evas_engine_directfb_cflags@ | ||
314 | evas_engine_directfb_libs = @evas_engine_directfb_libs@ | ||
315 | evas_engine_fb_cflags = @evas_engine_fb_cflags@ | ||
316 | evas_engine_fb_libs = @evas_engine_fb_libs@ | ||
317 | evas_engine_gl_cocoa_cflags = @evas_engine_gl_cocoa_cflags@ | ||
318 | evas_engine_gl_cocoa_libs = @evas_engine_gl_cocoa_libs@ | ||
319 | evas_engine_gl_common_libs = @evas_engine_gl_common_libs@ | ||
320 | evas_engine_gl_sdl_cflags = @evas_engine_gl_sdl_cflags@ | ||
321 | evas_engine_gl_sdl_libs = @evas_engine_gl_sdl_libs@ | ||
322 | evas_engine_gl_xcb_cflags = @evas_engine_gl_xcb_cflags@ | ||
323 | evas_engine_gl_xcb_libs = @evas_engine_gl_xcb_libs@ | ||
324 | evas_engine_gl_xlib_cflags = @evas_engine_gl_xlib_cflags@ | ||
325 | evas_engine_gl_xlib_libs = @evas_engine_gl_xlib_libs@ | ||
326 | evas_engine_psl1ght_cflags = @evas_engine_psl1ght_cflags@ | ||
327 | evas_engine_psl1ght_libs = @evas_engine_psl1ght_libs@ | ||
328 | evas_engine_software_16_ddraw_cflags = @evas_engine_software_16_ddraw_cflags@ | ||
329 | evas_engine_software_16_ddraw_libs = @evas_engine_software_16_ddraw_libs@ | ||
330 | evas_engine_software_16_sdl_cflags = @evas_engine_software_16_sdl_cflags@ | ||
331 | evas_engine_software_16_sdl_libs = @evas_engine_software_16_sdl_libs@ | ||
332 | evas_engine_software_16_wince_cflags = @evas_engine_software_16_wince_cflags@ | ||
333 | evas_engine_software_16_wince_libs = @evas_engine_software_16_wince_libs@ | ||
334 | evas_engine_software_16_x11_cflags = @evas_engine_software_16_x11_cflags@ | ||
335 | evas_engine_software_16_x11_libs = @evas_engine_software_16_x11_libs@ | ||
336 | evas_engine_software_8_x11_cflags = @evas_engine_software_8_x11_cflags@ | ||
337 | evas_engine_software_8_x11_libs = @evas_engine_software_8_x11_libs@ | ||
338 | evas_engine_software_ddraw_cflags = @evas_engine_software_ddraw_cflags@ | ||
339 | evas_engine_software_ddraw_libs = @evas_engine_software_ddraw_libs@ | ||
340 | evas_engine_software_gdi_cflags = @evas_engine_software_gdi_cflags@ | ||
341 | evas_engine_software_gdi_libs = @evas_engine_software_gdi_libs@ | ||
342 | evas_engine_software_xcb_cflags = @evas_engine_software_xcb_cflags@ | ||
343 | evas_engine_software_xcb_libs = @evas_engine_software_xcb_libs@ | ||
344 | evas_engine_software_xlib_cflags = @evas_engine_software_xlib_cflags@ | ||
345 | evas_engine_software_xlib_libs = @evas_engine_software_xlib_libs@ | ||
346 | evas_engine_wayland_egl_cflags = @evas_engine_wayland_egl_cflags@ | ||
347 | evas_engine_wayland_egl_libs = @evas_engine_wayland_egl_libs@ | ||
348 | evas_engine_wayland_shm_cflags = @evas_engine_wayland_shm_cflags@ | ||
349 | evas_engine_wayland_shm_libs = @evas_engine_wayland_shm_libs@ | ||
350 | evas_image_loader_bmp_cflags = @evas_image_loader_bmp_cflags@ | ||
351 | evas_image_loader_bmp_libs = @evas_image_loader_bmp_libs@ | ||
352 | evas_image_loader_edb_cflags = @evas_image_loader_edb_cflags@ | ||
353 | evas_image_loader_edb_libs = @evas_image_loader_edb_libs@ | ||
354 | evas_image_loader_eet_cflags = @evas_image_loader_eet_cflags@ | ||
355 | evas_image_loader_eet_libs = @evas_image_loader_eet_libs@ | ||
356 | evas_image_loader_generic_cflags = @evas_image_loader_generic_cflags@ | ||
357 | evas_image_loader_generic_libs = @evas_image_loader_generic_libs@ | ||
358 | evas_image_loader_gif_cflags = @evas_image_loader_gif_cflags@ | ||
359 | evas_image_loader_gif_libs = @evas_image_loader_gif_libs@ | ||
360 | evas_image_loader_ico_cflags = @evas_image_loader_ico_cflags@ | ||
361 | evas_image_loader_ico_libs = @evas_image_loader_ico_libs@ | ||
362 | evas_image_loader_jpeg_cflags = @evas_image_loader_jpeg_cflags@ | ||
363 | evas_image_loader_jpeg_libs = @evas_image_loader_jpeg_libs@ | ||
364 | evas_image_loader_pmaps_cflags = @evas_image_loader_pmaps_cflags@ | ||
365 | evas_image_loader_pmaps_libs = @evas_image_loader_pmaps_libs@ | ||
366 | evas_image_loader_png_cflags = @evas_image_loader_png_cflags@ | ||
367 | evas_image_loader_png_libs = @evas_image_loader_png_libs@ | ||
368 | evas_image_loader_psd_cflags = @evas_image_loader_psd_cflags@ | ||
369 | evas_image_loader_psd_libs = @evas_image_loader_psd_libs@ | ||
370 | evas_image_loader_svg_cflags = @evas_image_loader_svg_cflags@ | ||
371 | evas_image_loader_svg_libs = @evas_image_loader_svg_libs@ | ||
372 | evas_image_loader_tga_cflags = @evas_image_loader_tga_cflags@ | ||
373 | evas_image_loader_tga_libs = @evas_image_loader_tga_libs@ | ||
374 | evas_image_loader_tiff_cflags = @evas_image_loader_tiff_cflags@ | ||
375 | evas_image_loader_tiff_libs = @evas_image_loader_tiff_libs@ | ||
376 | evas_image_loader_wbmp_cflags = @evas_image_loader_wbmp_cflags@ | ||
377 | evas_image_loader_wbmp_libs = @evas_image_loader_wbmp_libs@ | ||
378 | evas_image_loader_xpm_cflags = @evas_image_loader_xpm_cflags@ | ||
379 | evas_image_loader_xpm_libs = @evas_image_loader_xpm_libs@ | ||
380 | exec_prefix = @exec_prefix@ | ||
381 | have_evas_engine_gl_x11 = @have_evas_engine_gl_x11@ | ||
382 | have_evas_engine_gl_xcb = @have_evas_engine_gl_xcb@ | ||
383 | have_evas_engine_gl_xlib = @have_evas_engine_gl_xlib@ | ||
384 | have_evas_engine_software_x11 = @have_evas_engine_software_x11@ | ||
385 | have_evas_engine_software_xcb = @have_evas_engine_software_xcb@ | ||
386 | have_evas_engine_software_xlib = @have_evas_engine_software_xlib@ | ||
387 | have_lcov = @have_lcov@ | ||
388 | host = @host@ | ||
389 | host_alias = @host_alias@ | ||
390 | host_cpu = @host_cpu@ | ||
391 | host_os = @host_os@ | ||
392 | host_vendor = @host_vendor@ | ||
393 | htmldir = @htmldir@ | ||
394 | includedir = @includedir@ | ||
395 | infodir = @infodir@ | ||
396 | install_sh = @install_sh@ | ||
397 | libdir = @libdir@ | ||
398 | libexecdir = @libexecdir@ | ||
399 | localedir = @localedir@ | ||
400 | localstatedir = @localstatedir@ | ||
401 | lt_ECHO = @lt_ECHO@ | ||
402 | lt_enable_auto_import = @lt_enable_auto_import@ | ||
403 | mandir = @mandir@ | ||
404 | mkdir_p = @mkdir_p@ | ||
405 | oldincludedir = @oldincludedir@ | ||
406 | pdfdir = @pdfdir@ | ||
407 | pkgconfig_requires_private = @pkgconfig_requires_private@ | ||
408 | prefix = @prefix@ | ||
409 | program_transform_name = @program_transform_name@ | ||
410 | psdir = @psdir@ | ||
411 | pthread_cflags = @pthread_cflags@ | ||
412 | pthread_libs = @pthread_libs@ | ||
413 | release_info = @release_info@ | ||
414 | requirement_evas = @requirement_evas@ | ||
415 | sbindir = @sbindir@ | ||
416 | sharedstatedir = @sharedstatedir@ | ||
417 | srcdir = @srcdir@ | ||
418 | sysconfdir = @sysconfdir@ | ||
419 | target_alias = @target_alias@ | ||
420 | top_build_prefix = @top_build_prefix@ | ||
421 | top_builddir = @top_builddir@ | ||
422 | top_srcdir = @top_srcdir@ | ||
423 | version_info = @version_info@ | ||
424 | MAINTAINERCLEANFILES = Makefile.in | ||
425 | AM_CPPFLAGS = \ | ||
426 | -I. \ | ||
427 | -I$(top_srcdir)/src/lib \ | ||
428 | -I$(top_srcdir)/src/lib/include \ | ||
429 | -I$(top_srcdir)/src/modules/engines \ | ||
430 | -I$(top_srcdir)/src/modules/engines/software_8 \ | ||
431 | @FREETYPE_CFLAGS@ \ | ||
432 | @PIXMAN_CFLAGS@ \ | ||
433 | @EINA_CFLAGS@ \ | ||
434 | @evas_engine_software_8_x11_cflags@ \ | ||
435 | -I/usr/include/pixman-1 | ||
436 | |||
437 | @BUILD_ENGINE_SOFTWARE_8_X11_TRUE@SOFTWARE_8_X11_SOURCES = \ | ||
438 | @BUILD_ENGINE_SOFTWARE_8_X11_TRUE@evas_engine.c \ | ||
439 | @BUILD_ENGINE_SOFTWARE_8_X11_TRUE@evas_x_buffer.c | ||
440 | |||
441 | @BUILD_ENGINE_SOFTWARE_8_X11_TRUE@SOFTWARE_8_X11_LIBADD = @evas_engine_software_8_x11_libs@ | ||
442 | @BUILD_ENGINE_SOFTWARE_8_X11_TRUE@includes_HEADERS = Evas_Engine_Software_8_X11.h | ||
443 | @BUILD_ENGINE_SOFTWARE_8_X11_TRUE@includesdir = $(includedir)/evas-@VMAJ@ | ||
444 | @BUILD_ENGINE_SOFTWARE_8_X11_TRUE@@EVAS_STATIC_BUILD_SOFTWARE_8_X11_FALSE@pkgdir = $(libdir)/evas/modules/engines/software_8_x11/$(MODULE_ARCH) | ||
445 | @BUILD_ENGINE_SOFTWARE_8_X11_TRUE@@EVAS_STATIC_BUILD_SOFTWARE_8_X11_FALSE@pkg_LTLIBRARIES = module.la | ||
446 | @BUILD_ENGINE_SOFTWARE_8_X11_TRUE@@EVAS_STATIC_BUILD_SOFTWARE_8_X11_FALSE@module_la_SOURCES = $(SOFTWARE_8_X11_SOURCES) | ||
447 | @BUILD_ENGINE_SOFTWARE_8_X11_TRUE@@EVAS_STATIC_BUILD_SOFTWARE_8_X11_FALSE@module_la_LIBADD = @EINA_LIBS@ $(SOFTWARE_8_X11_LIBADD) $(top_builddir)/src/lib/libevas.la | ||
448 | #-lxcb-image -lxcb-shm -lxcb -lpixman-1 | ||
449 | @BUILD_ENGINE_SOFTWARE_8_X11_TRUE@@EVAS_STATIC_BUILD_SOFTWARE_8_X11_FALSE@module_la_LDFLAGS = -no-undefined -module -avoid-version | ||
450 | @BUILD_ENGINE_SOFTWARE_8_X11_TRUE@@EVAS_STATIC_BUILD_SOFTWARE_8_X11_FALSE@module_la_LIBTOOLFLAGS = --tag=disable-static | ||
451 | @BUILD_ENGINE_SOFTWARE_8_X11_TRUE@@EVAS_STATIC_BUILD_SOFTWARE_8_X11_TRUE@noinst_LTLIBRARIES = libevas_engine_software_8_x11.la | ||
452 | @BUILD_ENGINE_SOFTWARE_8_X11_TRUE@@EVAS_STATIC_BUILD_SOFTWARE_8_X11_TRUE@libevas_engine_software_8_x11_la_SOURCES = $(SOFTWARE_8_X11_SOURCES) | ||
453 | @BUILD_ENGINE_SOFTWARE_8_X11_TRUE@@EVAS_STATIC_BUILD_SOFTWARE_8_X11_TRUE@libevas_engine_software_8_x11_la_LIBADD = $(SOFTWARE_8_X11_LIBADD) | ||
454 | EXTRA_DIST = evas_engine.h | ||
455 | all: all-am | ||
456 | |||
457 | .SUFFIXES: | ||
458 | .SUFFIXES: .c .lo .o .obj | ||
459 | $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) | ||
460 | @for dep in $?; do \ | ||
461 | case '$(am__configure_deps)' in \ | ||
462 | *$$dep*) \ | ||
463 | ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ | ||
464 | && { if test -f $@; then exit 0; else break; fi; }; \ | ||
465 | exit 1;; \ | ||
466 | esac; \ | ||
467 | done; \ | ||
468 | echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/modules/engines/software_8_x11/Makefile'; \ | ||
469 | $(am__cd) $(top_srcdir) && \ | ||
470 | $(AUTOMAKE) --gnu src/modules/engines/software_8_x11/Makefile | ||
471 | .PRECIOUS: Makefile | ||
472 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | ||
473 | @case '$?' in \ | ||
474 | *config.status*) \ | ||
475 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ | ||
476 | *) \ | ||
477 | echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ | ||
478 | cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ | ||
479 | esac; | ||
480 | |||
481 | $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) | ||
482 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
483 | |||
484 | $(top_srcdir)/configure: $(am__configure_deps) | ||
485 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
486 | $(ACLOCAL_M4): $(am__aclocal_m4_deps) | ||
487 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
488 | $(am__aclocal_m4_deps): | ||
489 | |||
490 | clean-noinstLTLIBRARIES: | ||
491 | -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) | ||
492 | @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \ | ||
493 | dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ | ||
494 | test "$$dir" != "$$p" || dir=.; \ | ||
495 | echo "rm -f \"$${dir}/so_locations\""; \ | ||
496 | rm -f "$${dir}/so_locations"; \ | ||
497 | done | ||
498 | install-pkgLTLIBRARIES: $(pkg_LTLIBRARIES) | ||
499 | @$(NORMAL_INSTALL) | ||
500 | test -z "$(pkgdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgdir)" | ||
501 | @list='$(pkg_LTLIBRARIES)'; test -n "$(pkgdir)" || list=; \ | ||
502 | list2=; for p in $$list; do \ | ||
503 | if test -f $$p; then \ | ||
504 | list2="$$list2 $$p"; \ | ||
505 | else :; fi; \ | ||
506 | done; \ | ||
507 | test -z "$$list2" || { \ | ||
508 | echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(pkgdir)'"; \ | ||
509 | $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(pkgdir)"; \ | ||
510 | } | ||
511 | |||
512 | uninstall-pkgLTLIBRARIES: | ||
513 | @$(NORMAL_UNINSTALL) | ||
514 | @list='$(pkg_LTLIBRARIES)'; test -n "$(pkgdir)" || list=; \ | ||
515 | for p in $$list; do \ | ||
516 | $(am__strip_dir) \ | ||
517 | echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pkgdir)/$$f'"; \ | ||
518 | $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pkgdir)/$$f"; \ | ||
519 | done | ||
520 | |||
521 | clean-pkgLTLIBRARIES: | ||
522 | -test -z "$(pkg_LTLIBRARIES)" || rm -f $(pkg_LTLIBRARIES) | ||
523 | @list='$(pkg_LTLIBRARIES)'; for p in $$list; do \ | ||
524 | dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ | ||
525 | test "$$dir" != "$$p" || dir=.; \ | ||
526 | echo "rm -f \"$${dir}/so_locations\""; \ | ||
527 | rm -f "$${dir}/so_locations"; \ | ||
528 | done | ||
529 | libevas_engine_software_8_x11.la: $(libevas_engine_software_8_x11_la_OBJECTS) $(libevas_engine_software_8_x11_la_DEPENDENCIES) | ||
530 | $(AM_V_CCLD)$(LINK) $(am_libevas_engine_software_8_x11_la_rpath) $(libevas_engine_software_8_x11_la_OBJECTS) $(libevas_engine_software_8_x11_la_LIBADD) $(LIBS) | ||
531 | module.la: $(module_la_OBJECTS) $(module_la_DEPENDENCIES) | ||
532 | $(AM_V_CCLD)$(module_la_LINK) $(am_module_la_rpath) $(module_la_OBJECTS) $(module_la_LIBADD) $(LIBS) | ||
533 | |||
534 | mostlyclean-compile: | ||
535 | -rm -f *.$(OBJEXT) | ||
536 | |||
537 | distclean-compile: | ||
538 | -rm -f *.tab.c | ||
539 | |||
540 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/evas_engine.Plo@am__quote@ | ||
541 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/evas_x_buffer.Plo@am__quote@ | ||
542 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/module_la-evas_engine.Plo@am__quote@ | ||
543 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/module_la-evas_x_buffer.Plo@am__quote@ | ||
544 | |||
545 | .c.o: | ||
546 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< | ||
547 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | ||
548 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
549 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | ||
550 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
551 | @am__fastdepCC_FALSE@ $(COMPILE) -c $< | ||
552 | |||
553 | .c.obj: | ||
554 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` | ||
555 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | ||
556 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
557 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | ||
558 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
559 | @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` | ||
560 | |||
561 | .c.lo: | ||
562 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< | ||
563 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo | ||
564 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
565 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ | ||
566 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
567 | @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< | ||
568 | |||
569 | module_la-evas_engine.lo: evas_engine.c | ||
570 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(module_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT module_la-evas_engine.lo -MD -MP -MF $(DEPDIR)/module_la-evas_engine.Tpo -c -o module_la-evas_engine.lo `test -f 'evas_engine.c' || echo '$(srcdir)/'`evas_engine.c | ||
571 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/module_la-evas_engine.Tpo $(DEPDIR)/module_la-evas_engine.Plo | ||
572 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
573 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='evas_engine.c' object='module_la-evas_engine.lo' libtool=yes @AMDEPBACKSLASH@ | ||
574 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
575 | @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(module_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o module_la-evas_engine.lo `test -f 'evas_engine.c' || echo '$(srcdir)/'`evas_engine.c | ||
576 | |||
577 | module_la-evas_x_buffer.lo: evas_x_buffer.c | ||
578 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(module_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT module_la-evas_x_buffer.lo -MD -MP -MF $(DEPDIR)/module_la-evas_x_buffer.Tpo -c -o module_la-evas_x_buffer.lo `test -f 'evas_x_buffer.c' || echo '$(srcdir)/'`evas_x_buffer.c | ||
579 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/module_la-evas_x_buffer.Tpo $(DEPDIR)/module_la-evas_x_buffer.Plo | ||
580 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
581 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='evas_x_buffer.c' object='module_la-evas_x_buffer.lo' libtool=yes @AMDEPBACKSLASH@ | ||
582 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
583 | @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(module_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o module_la-evas_x_buffer.lo `test -f 'evas_x_buffer.c' || echo '$(srcdir)/'`evas_x_buffer.c | ||
584 | |||
585 | mostlyclean-libtool: | ||
586 | -rm -f *.lo | ||
587 | |||
588 | clean-libtool: | ||
589 | -rm -rf .libs _libs | ||
590 | install-includesHEADERS: $(includes_HEADERS) | ||
591 | @$(NORMAL_INSTALL) | ||
592 | test -z "$(includesdir)" || $(MKDIR_P) "$(DESTDIR)$(includesdir)" | ||
593 | @list='$(includes_HEADERS)'; test -n "$(includesdir)" || list=; \ | ||
594 | for p in $$list; do \ | ||
595 | if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ | ||
596 | echo "$$d$$p"; \ | ||
597 | done | $(am__base_list) | \ | ||
598 | while read files; do \ | ||
599 | echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(includesdir)'"; \ | ||
600 | $(INSTALL_HEADER) $$files "$(DESTDIR)$(includesdir)" || exit $$?; \ | ||
601 | done | ||
602 | |||
603 | uninstall-includesHEADERS: | ||
604 | @$(NORMAL_UNINSTALL) | ||
605 | @list='$(includes_HEADERS)'; test -n "$(includesdir)" || list=; \ | ||
606 | files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ | ||
607 | test -n "$$files" || exit 0; \ | ||
608 | echo " ( cd '$(DESTDIR)$(includesdir)' && rm -f" $$files ")"; \ | ||
609 | cd "$(DESTDIR)$(includesdir)" && rm -f $$files | ||
610 | |||
611 | ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) | ||
612 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
613 | unique=`for i in $$list; do \ | ||
614 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
615 | done | \ | ||
616 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | ||
617 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
618 | mkid -fID $$unique | ||
619 | tags: TAGS | ||
620 | |||
621 | TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | ||
622 | $(TAGS_FILES) $(LISP) | ||
623 | set x; \ | ||
624 | here=`pwd`; \ | ||
625 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
626 | unique=`for i in $$list; do \ | ||
627 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
628 | done | \ | ||
629 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | ||
630 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
631 | shift; \ | ||
632 | if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ | ||
633 | test -n "$$unique" || unique=$$empty_fix; \ | ||
634 | if test $$# -gt 0; then \ | ||
635 | $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | ||
636 | "$$@" $$unique; \ | ||
637 | else \ | ||
638 | $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | ||
639 | $$unique; \ | ||
640 | fi; \ | ||
641 | fi | ||
642 | ctags: CTAGS | ||
643 | CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | ||
644 | $(TAGS_FILES) $(LISP) | ||
645 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
646 | unique=`for i in $$list; do \ | ||
647 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
648 | done | \ | ||
649 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | ||
650 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
651 | test -z "$(CTAGS_ARGS)$$unique" \ | ||
652 | || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ | ||
653 | $$unique | ||
654 | |||
655 | GTAGS: | ||
656 | here=`$(am__cd) $(top_builddir) && pwd` \ | ||
657 | && $(am__cd) $(top_srcdir) \ | ||
658 | && gtags -i $(GTAGS_ARGS) "$$here" | ||
659 | |||
660 | distclean-tags: | ||
661 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags | ||
662 | |||
663 | distdir: $(DISTFILES) | ||
664 | @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | ||
665 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | ||
666 | list='$(DISTFILES)'; \ | ||
667 | dist_files=`for file in $$list; do echo $$file; done | \ | ||
668 | sed -e "s|^$$srcdirstrip/||;t" \ | ||
669 | -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ | ||
670 | case $$dist_files in \ | ||
671 | */*) $(MKDIR_P) `echo "$$dist_files" | \ | ||
672 | sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ | ||
673 | sort -u` ;; \ | ||
674 | esac; \ | ||
675 | for file in $$dist_files; do \ | ||
676 | if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ | ||
677 | if test -d $$d/$$file; then \ | ||
678 | dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ | ||
679 | if test -d "$(distdir)/$$file"; then \ | ||
680 | find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | ||
681 | fi; \ | ||
682 | if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ | ||
683 | cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ | ||
684 | find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | ||
685 | fi; \ | ||
686 | cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ | ||
687 | else \ | ||
688 | test -f "$(distdir)/$$file" \ | ||
689 | || cp -p $$d/$$file "$(distdir)/$$file" \ | ||
690 | || exit 1; \ | ||
691 | fi; \ | ||
692 | done | ||
693 | check-am: all-am | ||
694 | check: check-am | ||
695 | all-am: Makefile $(LTLIBRARIES) $(HEADERS) | ||
696 | installdirs: | ||
697 | for dir in "$(DESTDIR)$(pkgdir)" "$(DESTDIR)$(includesdir)"; do \ | ||
698 | test -z "$$dir" || $(MKDIR_P) "$$dir"; \ | ||
699 | done | ||
700 | install: install-am | ||
701 | install-exec: install-exec-am | ||
702 | install-data: install-data-am | ||
703 | uninstall: uninstall-am | ||
704 | |||
705 | install-am: all-am | ||
706 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | ||
707 | |||
708 | installcheck: installcheck-am | ||
709 | install-strip: | ||
710 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | ||
711 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | ||
712 | `test -z '$(STRIP)' || \ | ||
713 | echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install | ||
714 | mostlyclean-generic: | ||
715 | |||
716 | clean-generic: | ||
717 | |||
718 | distclean-generic: | ||
719 | -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) | ||
720 | -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) | ||
721 | |||
722 | maintainer-clean-generic: | ||
723 | @echo "This command is intended for maintainers to use" | ||
724 | @echo "it deletes files that may require special tools to rebuild." | ||
725 | -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) | ||
726 | clean: clean-am | ||
727 | |||
728 | clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ | ||
729 | clean-pkgLTLIBRARIES mostlyclean-am | ||
730 | |||
731 | distclean: distclean-am | ||
732 | -rm -rf ./$(DEPDIR) | ||
733 | -rm -f Makefile | ||
734 | distclean-am: clean-am distclean-compile distclean-generic \ | ||
735 | distclean-tags | ||
736 | |||
737 | dvi: dvi-am | ||
738 | |||
739 | dvi-am: | ||
740 | |||
741 | html: html-am | ||
742 | |||
743 | html-am: | ||
744 | |||
745 | info: info-am | ||
746 | |||
747 | info-am: | ||
748 | |||
749 | install-data-am: install-includesHEADERS install-pkgLTLIBRARIES | ||
750 | |||
751 | install-dvi: install-dvi-am | ||
752 | |||
753 | install-dvi-am: | ||
754 | |||
755 | install-exec-am: | ||
756 | |||
757 | install-html: install-html-am | ||
758 | |||
759 | install-html-am: | ||
760 | |||
761 | install-info: install-info-am | ||
762 | |||
763 | install-info-am: | ||
764 | |||
765 | install-man: | ||
766 | |||
767 | install-pdf: install-pdf-am | ||
768 | |||
769 | install-pdf-am: | ||
770 | |||
771 | install-ps: install-ps-am | ||
772 | |||
773 | install-ps-am: | ||
774 | |||
775 | installcheck-am: | ||
776 | |||
777 | maintainer-clean: maintainer-clean-am | ||
778 | -rm -rf ./$(DEPDIR) | ||
779 | -rm -f Makefile | ||
780 | maintainer-clean-am: distclean-am maintainer-clean-generic | ||
781 | |||
782 | mostlyclean: mostlyclean-am | ||
783 | |||
784 | mostlyclean-am: mostlyclean-compile mostlyclean-generic \ | ||
785 | mostlyclean-libtool | ||
786 | |||
787 | pdf: pdf-am | ||
788 | |||
789 | pdf-am: | ||
790 | |||
791 | ps: ps-am | ||
792 | |||
793 | ps-am: | ||
794 | |||
795 | uninstall-am: uninstall-includesHEADERS uninstall-pkgLTLIBRARIES | ||
796 | |||
797 | .MAKE: install-am install-strip | ||
798 | |||
799 | .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ | ||
800 | clean-libtool clean-noinstLTLIBRARIES clean-pkgLTLIBRARIES \ | ||
801 | ctags distclean distclean-compile distclean-generic \ | ||
802 | distclean-libtool distclean-tags distdir dvi dvi-am html \ | ||
803 | html-am info info-am install install-am install-data \ | ||
804 | install-data-am install-dvi install-dvi-am install-exec \ | ||
805 | install-exec-am install-html install-html-am \ | ||
806 | install-includesHEADERS install-info install-info-am \ | ||
807 | install-man install-pdf install-pdf-am install-pkgLTLIBRARIES \ | ||
808 | install-ps install-ps-am install-strip installcheck \ | ||
809 | installcheck-am installdirs maintainer-clean \ | ||
810 | maintainer-clean-generic mostlyclean mostlyclean-compile \ | ||
811 | mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ | ||
812 | tags uninstall uninstall-am uninstall-includesHEADERS \ | ||
813 | uninstall-pkgLTLIBRARIES | ||
814 | |||
815 | |||
816 | # Tell versions [3.59,3.63) of GNU make to not export all variables. | ||
817 | # Otherwise a system limit (for SysV at least) may be exceeded. | ||
818 | .NOEXPORT: | ||
diff --git a/libraries/evas/src/modules/engines/software_8_x11/evas_engine.c b/libraries/evas/src/modules/engines/software_8_x11/evas_engine.c deleted file mode 100644 index c8efb24..0000000 --- a/libraries/evas/src/modules/engines/software_8_x11/evas_engine.c +++ /dev/null | |||
@@ -1,699 +0,0 @@ | |||
1 | #include "evas_common.h" | ||
2 | #include "evas_private.h" | ||
3 | #include "evas_engine.h" | ||
4 | #include "Evas_Engine_Software_8_X11.h" | ||
5 | #include "evas_common_soft8.h" | ||
6 | #include <pixman.h> | ||
7 | |||
8 | int _evas_engine_soft8_x11_log_dom = -1; | ||
9 | /* function tables - filled in later (func and parent func) */ | ||
10 | static Evas_Func func, pfunc; | ||
11 | |||
12 | /* engine struct data */ | ||
13 | typedef struct _Render_Engine Render_Engine; | ||
14 | |||
15 | struct _Render_Engine { | ||
16 | xcb_connection_t *connection; | ||
17 | xcb_drawable_t drawable; | ||
18 | xcb_screen_t *screen; | ||
19 | unsigned char pal[256]; | ||
20 | int depth; | ||
21 | |||
22 | int w, h, rot; | ||
23 | Tilebuf *tb; | ||
24 | Tilebuf_Rect *rects; | ||
25 | Tilebuf_Rect *cur_rect; | ||
26 | |||
27 | X_Output_Buffer *shbuf; | ||
28 | Soft8_Image *tmp_out; /* used by indirect render, like rotation */ | ||
29 | |||
30 | pixman_region16_t *clip_rects; | ||
31 | unsigned char end:1; | ||
32 | unsigned char shm:1; | ||
33 | }; | ||
34 | |||
35 | /* prototypes we will use here */ | ||
36 | |||
37 | static void *eng_info(Evas * e); | ||
38 | static void eng_info_free(Evas * e, void *info); | ||
39 | static int eng_setup(Evas * e, void *info); | ||
40 | static void eng_output_free(void *data); | ||
41 | static void eng_output_resize(void *data, int w, int h); | ||
42 | static void eng_output_tile_size_set(void *data, int w, int h); | ||
43 | static void eng_output_redraws_rect_add(void *data, int x, int y, int w, int h); | ||
44 | static void eng_output_redraws_rect_del(void *data, int x, int y, int w, int h); | ||
45 | static void eng_output_redraws_clear(void *data); | ||
46 | static void *eng_output_redraws_next_update_get(void *data, int *x, int *y, | ||
47 | int *w, int *h, int *cx, | ||
48 | int *cy, int *cw, int *ch); | ||
49 | static void eng_output_redraws_next_update_push(void *data, void *surface, | ||
50 | int x, int y, int w, int h); | ||
51 | static void eng_output_flush(void *data); | ||
52 | static void eng_output_idle_flush(void *data); | ||
53 | |||
54 | /* engine api this module provides */ | ||
55 | static void * | ||
56 | eng_info(Evas * e) | ||
57 | { | ||
58 | Evas_Engine_Info_Software_8_X11 *info; | ||
59 | |||
60 | info = calloc(1, sizeof(Evas_Engine_Info_Software_8_X11)); | ||
61 | if (!info) | ||
62 | return NULL; | ||
63 | info->magic.magic = rand(); | ||
64 | info->render_mode = EVAS_RENDER_MODE_BLOCKING; | ||
65 | return info; | ||
66 | e = NULL; | ||
67 | } | ||
68 | |||
69 | static void | ||
70 | eng_info_free(Evas * e __UNUSED__, void *info) | ||
71 | { | ||
72 | Evas_Engine_Info_Software_8_X11 *in; | ||
73 | in = (Evas_Engine_Info_Software_8_X11 *) info; | ||
74 | free(in); | ||
75 | } | ||
76 | |||
77 | static void | ||
78 | _tmp_out_alloc(Render_Engine * re) | ||
79 | { | ||
80 | Tilebuf_Rect *r; | ||
81 | unsigned int w = 0, h = 0; | ||
82 | |||
83 | EINA_INLIST_FOREACH(re->rects, r) | ||
84 | { | ||
85 | if (r->w > (int)w) | ||
86 | w = r->w; | ||
87 | if (r->h > (int)h) | ||
88 | h = r->h; | ||
89 | } | ||
90 | |||
91 | if (re->tmp_out) | ||
92 | { | ||
93 | if ((re->tmp_out->cache_entry.w < w) | ||
94 | || (re->tmp_out->cache_entry.h < h)) | ||
95 | { | ||
96 | evas_cache_image_drop(&re->tmp_out->cache_entry); | ||
97 | re->tmp_out = NULL; | ||
98 | } | ||
99 | } | ||
100 | |||
101 | if (!re->tmp_out) | ||
102 | { | ||
103 | Soft8_Image *im; | ||
104 | |||
105 | im = (Soft8_Image *) | ||
106 | evas_cache_image_empty(evas_common_soft8_image_cache_get()); | ||
107 | im->cache_entry.flags.alpha = 0; | ||
108 | evas_cache_image_surface_alloc(&im->cache_entry, w, h); | ||
109 | |||
110 | re->tmp_out = im; | ||
111 | } | ||
112 | } | ||
113 | |||
114 | static void | ||
115 | alloc_colors(Render_Engine * re) | ||
116 | { | ||
117 | xcb_alloc_color_cookie_t color_rq[256]; | ||
118 | xcb_alloc_color_reply_t *rep; | ||
119 | xcb_colormap_t colormap = re->screen->default_colormap; | ||
120 | |||
121 | int i; | ||
122 | for (i = 0; i < 256; i++) | ||
123 | color_rq[i] = | ||
124 | xcb_alloc_color(re->connection, colormap, i << 8, i << 8, i << 8); | ||
125 | |||
126 | for (i = 0; i < 256; i++) | ||
127 | { | ||
128 | rep = xcb_alloc_color_reply(re->connection, color_rq[i], NULL); | ||
129 | re->pal[i] = rep->pixel; | ||
130 | free(rep); | ||
131 | } | ||
132 | } | ||
133 | |||
134 | static int | ||
135 | eng_setup(Evas * e, void *in) | ||
136 | { | ||
137 | Render_Engine *re; | ||
138 | Evas_Engine_Info_Software_8_X11 *info; | ||
139 | /* X_Output_Buffer *xob; */ | ||
140 | |||
141 | info = (Evas_Engine_Info_Software_8_X11 *) in; | ||
142 | if (!e->engine.data.output) | ||
143 | { | ||
144 | /* the only check - simplistic, i know, but enough for this | ||
145 | * "special purpose" engine. Remember it is meant to be used | ||
146 | * for limited power devices that have a 8bit display mode | ||
147 | * and no real other acceleration, and high resolution so we | ||
148 | * can pre-dither into 8bpp. */ | ||
149 | // if (DefaultDepth(info->info.display, | ||
150 | // DefaultScreen(info->info.display)) != 8) | ||
151 | // return; | ||
152 | /* do common routine init - we wil at least use it for core | ||
153 | * image loading and font loading/glyph rendering & placement */ | ||
154 | evas_common_cpu_init(); | ||
155 | |||
156 | evas_common_blend_init(); | ||
157 | evas_common_image_init(); | ||
158 | evas_common_convert_init(); | ||
159 | evas_common_scale_init(); | ||
160 | evas_common_rectangle_init(); | ||
161 | evas_common_polygon_init(); | ||
162 | evas_common_line_init(); | ||
163 | evas_common_font_init(); | ||
164 | evas_common_draw_init(); | ||
165 | evas_common_tilebuf_init(); | ||
166 | evas_common_soft8_image_init(); | ||
167 | |||
168 | /* render engine specific data */ | ||
169 | re = calloc(1, sizeof(Render_Engine)); | ||
170 | if (!re) | ||
171 | return 0; | ||
172 | e->engine.data.output = re; | ||
173 | re->connection = info->info.connection; | ||
174 | re->screen = info->info.screen; | ||
175 | re->drawable = info->info.drawable; | ||
176 | re->depth = info->info.depth; | ||
177 | re->w = e->output.w; | ||
178 | re->h = e->output.h; | ||
179 | re->rot = info->info.rotation; | ||
180 | re->tb = evas_common_tilebuf_new(e->output.w, e->output.h); | ||
181 | if (re->tb) | ||
182 | evas_common_tilebuf_set_tile_size(re->tb, TILESIZE, TILESIZE); | ||
183 | alloc_colors(re); | ||
184 | } | ||
185 | else | ||
186 | { | ||
187 | /* we changed the info after first init - do a re-eval where | ||
188 | * appropriate */ | ||
189 | re = e->engine.data.output; | ||
190 | if (re->tb) | ||
191 | evas_common_tilebuf_free(re->tb); | ||
192 | re->connection = info->info.connection; | ||
193 | re->screen = info->info.screen; | ||
194 | re->drawable = info->info.drawable; | ||
195 | re->w = e->output.w; | ||
196 | re->h = e->output.h; | ||
197 | re->rot = info->info.rotation; | ||
198 | re->tb = evas_common_tilebuf_new(e->output.w, e->output.h); | ||
199 | if (re->tb) | ||
200 | evas_common_tilebuf_set_tile_size(re->tb, TILESIZE, TILESIZE); | ||
201 | if (re->tmp_out) | ||
202 | { | ||
203 | evas_cache_image_drop(&re->tmp_out->cache_entry); | ||
204 | re->tmp_out = NULL; | ||
205 | } | ||
206 | alloc_colors(re); | ||
207 | } | ||
208 | if (!e->engine.data.output) | ||
209 | return 0; | ||
210 | |||
211 | /* add a draw context if we dont have one */ | ||
212 | if (!e->engine.data.context) | ||
213 | e->engine.data.context = | ||
214 | e->engine.func->context_new(e->engine.data.output); | ||
215 | /* check if the display can do shm */ | ||
216 | re->shm = evas_software_8_x11_x_can_do_shm(re->connection, re->screen); | ||
217 | |||
218 | return 1; | ||
219 | } | ||
220 | |||
221 | static void | ||
222 | eng_output_free(void *data) | ||
223 | { | ||
224 | Render_Engine *re; | ||
225 | |||
226 | re = (Render_Engine *) data; | ||
227 | if (re->shbuf) | ||
228 | evas_software_8_x11_x_output_buffer_free(re->shbuf, 0); | ||
229 | if (re->clip_rects) | ||
230 | { | ||
231 | pixman_region_fini(re->clip_rects); | ||
232 | free(re->clip_rects); | ||
233 | re->clip_rects = NULL; | ||
234 | } | ||
235 | if (re->tb) | ||
236 | evas_common_tilebuf_free(re->tb); | ||
237 | if (re->rects) | ||
238 | evas_common_tilebuf_free_render_rects(re->rects); | ||
239 | if (re->tmp_out) | ||
240 | evas_cache_image_drop(&re->tmp_out->cache_entry); | ||
241 | free(re); | ||
242 | |||
243 | evas_common_font_shutdown(); | ||
244 | evas_common_image_shutdown(); | ||
245 | evas_common_soft8_image_shutdown(); | ||
246 | } | ||
247 | |||
248 | static void | ||
249 | eng_output_resize(void *data, int w, int h) | ||
250 | { | ||
251 | Render_Engine *re; | ||
252 | |||
253 | re = (Render_Engine *) data; | ||
254 | |||
255 | if ((re->w == w) && (re->h == h)) | ||
256 | return; | ||
257 | |||
258 | evas_common_tilebuf_free(re->tb); | ||
259 | re->w = w; | ||
260 | re->h = h; | ||
261 | re->tb = evas_common_tilebuf_new(w, h); | ||
262 | if (re->tb) | ||
263 | evas_common_tilebuf_set_tile_size(re->tb, TILESIZE, TILESIZE); | ||
264 | if (re->shbuf) | ||
265 | { | ||
266 | evas_software_8_x11_x_output_buffer_free(re->shbuf, 0); | ||
267 | re->shbuf = NULL; | ||
268 | } | ||
269 | if (re->clip_rects) | ||
270 | { | ||
271 | pixman_region_fini(re->clip_rects); | ||
272 | free(re->clip_rects); | ||
273 | re->clip_rects = NULL; | ||
274 | } | ||
275 | |||
276 | if (re->tmp_out) | ||
277 | { | ||
278 | evas_cache_image_drop(&re->tmp_out->cache_entry); | ||
279 | re->tmp_out = NULL; | ||
280 | } | ||
281 | } | ||
282 | |||
283 | static void | ||
284 | eng_output_tile_size_set(void *data, int w, int h) | ||
285 | { | ||
286 | Render_Engine *re; | ||
287 | |||
288 | re = (Render_Engine *) data; | ||
289 | evas_common_tilebuf_set_tile_size(re->tb, w, h); | ||
290 | } | ||
291 | |||
292 | static void | ||
293 | eng_output_redraws_rect_add(void *data, int x, int y, int w, int h) | ||
294 | { | ||
295 | Render_Engine *re; | ||
296 | |||
297 | re = (Render_Engine *) data; | ||
298 | evas_common_tilebuf_add_redraw(re->tb, x, y, w, h); | ||
299 | } | ||
300 | |||
301 | static void | ||
302 | eng_output_redraws_rect_del(void *data, int x, int y, int w, int h) | ||
303 | { | ||
304 | Render_Engine *re; | ||
305 | |||
306 | re = (Render_Engine *) data; | ||
307 | evas_common_tilebuf_del_redraw(re->tb, x, y, w, h); | ||
308 | } | ||
309 | |||
310 | static void | ||
311 | eng_output_redraws_clear(void *data) | ||
312 | { | ||
313 | Render_Engine *re; | ||
314 | |||
315 | re = (Render_Engine *) data; | ||
316 | evas_common_tilebuf_clear(re->tb); | ||
317 | } | ||
318 | |||
319 | static inline void | ||
320 | _output_buffer_alloc(Render_Engine * re) | ||
321 | { | ||
322 | int w, h; | ||
323 | if (re->shbuf) | ||
324 | return; | ||
325 | |||
326 | if ((re->rot == 0) || (re->rot == 180)) | ||
327 | { | ||
328 | w = re->w; | ||
329 | h = re->h; | ||
330 | } | ||
331 | else | ||
332 | { | ||
333 | w = re->h; | ||
334 | h = re->w; | ||
335 | } | ||
336 | |||
337 | re->shbuf = evas_software_8_x11_x_output_buffer_new | ||
338 | (re->connection, re->screen, re->depth, re->pal, w, h, 1, NULL); | ||
339 | |||
340 | re->shbuf->drawable = re->drawable; | ||
341 | re->shbuf->screen = re->screen; | ||
342 | if (re->shbuf->gc) | ||
343 | { | ||
344 | xcb_free_gc(re->shbuf->connection, re->shbuf->gc); | ||
345 | re->shbuf->gc = 0; | ||
346 | } | ||
347 | |||
348 | re->shbuf->gc = xcb_generate_id(re->shbuf->connection); | ||
349 | xcb_create_gc(re->shbuf->connection, re->shbuf->gc, re->shbuf->drawable, 0, | ||
350 | NULL); | ||
351 | } | ||
352 | |||
353 | static void * | ||
354 | eng_output_redraws_next_update_get(void *data, int *x, int *y, int *w, int *h, | ||
355 | int *cx, int *cy, int *cw, int *ch) | ||
356 | { | ||
357 | Render_Engine *re; | ||
358 | Tilebuf_Rect *rect; | ||
359 | int ux, uy, uw, uh; | ||
360 | |||
361 | re = (Render_Engine *) data; | ||
362 | if (re->end) | ||
363 | { | ||
364 | re->end = 0; | ||
365 | return NULL; | ||
366 | } | ||
367 | if (!re->rects) | ||
368 | { | ||
369 | re->rects = evas_common_tilebuf_get_render_rects(re->tb); | ||
370 | if (!re->rects) | ||
371 | return NULL; | ||
372 | |||
373 | re->cur_rect = re->rects; | ||
374 | _output_buffer_alloc(re); | ||
375 | if (re->rot != 0) | ||
376 | _tmp_out_alloc(re); /* grows if required */ | ||
377 | } | ||
378 | if (!re->cur_rect) | ||
379 | { | ||
380 | if (re->rects) | ||
381 | evas_common_tilebuf_free_render_rects(re->rects); | ||
382 | re->rects = NULL; | ||
383 | return NULL; | ||
384 | } | ||
385 | rect = re->cur_rect; | ||
386 | ux = rect->x; | ||
387 | uy = rect->y; | ||
388 | uw = rect->w; | ||
389 | uh = rect->h; | ||
390 | re->cur_rect = (Tilebuf_Rect *) ((EINA_INLIST_GET(re->cur_rect))->next); | ||
391 | if (!re->cur_rect) | ||
392 | { | ||
393 | evas_common_tilebuf_free_render_rects(re->rects); | ||
394 | re->rects = NULL; | ||
395 | re->end = 1; | ||
396 | } | ||
397 | |||
398 | *x = ux; | ||
399 | *y = uy; | ||
400 | *w = uw; | ||
401 | *h = uh; | ||
402 | if (re->rot == 0) | ||
403 | { | ||
404 | *cx = ux; | ||
405 | *cy = uy; | ||
406 | *cw = uw; | ||
407 | *ch = uh; | ||
408 | return re->shbuf->im; | ||
409 | } | ||
410 | else | ||
411 | { | ||
412 | *cx = 0; | ||
413 | *cy = 0; | ||
414 | *cw = uw; | ||
415 | *ch = uh; | ||
416 | return re->tmp_out; | ||
417 | } | ||
418 | } | ||
419 | |||
420 | static void | ||
421 | _blit_rot_90(Soft8_Image * dst, const Soft8_Image * src, | ||
422 | int out_x, int out_y, int w, int h) | ||
423 | { | ||
424 | DATA8 *dp, *sp; | ||
425 | int x, y; | ||
426 | |||
427 | sp = src->pixels; | ||
428 | dp = dst->pixels + (out_x + (w + out_y - 1) * dst->stride); | ||
429 | |||
430 | for (y = 0; y < h; y++) | ||
431 | { | ||
432 | DATA8 *dp_itr, *sp_itr; | ||
433 | |||
434 | sp_itr = sp; | ||
435 | dp_itr = dp; | ||
436 | |||
437 | for (x = 0; x < w; x++) | ||
438 | { | ||
439 | *dp_itr = *sp_itr; | ||
440 | |||
441 | sp_itr++; | ||
442 | dp_itr -= dst->stride; | ||
443 | } | ||
444 | sp += src->stride; | ||
445 | dp++; | ||
446 | } | ||
447 | } | ||
448 | |||
449 | static void | ||
450 | _blit_rot_180(Soft8_Image * dst, const Soft8_Image * src, | ||
451 | int out_x, int out_y, int w, int h) | ||
452 | { | ||
453 | DATA8 *dp, *sp; | ||
454 | int x, y; | ||
455 | |||
456 | sp = src->pixels; | ||
457 | dp = dst->pixels + ((w + out_x - 1) + (h + out_y - 1) * dst->stride); | ||
458 | |||
459 | for (y = 0; y < h; y++) | ||
460 | { | ||
461 | DATA8 *dp_itr, *sp_itr; | ||
462 | |||
463 | sp_itr = sp; | ||
464 | dp_itr = dp; | ||
465 | |||
466 | for (x = 0; x < w; x++) | ||
467 | { | ||
468 | *dp_itr = *sp_itr; | ||
469 | |||
470 | sp_itr++; | ||
471 | dp_itr--; | ||
472 | } | ||
473 | sp += src->stride; | ||
474 | dp -= dst->stride; | ||
475 | } | ||
476 | } | ||
477 | |||
478 | static void | ||
479 | _blit_rot_270(Soft8_Image * dst, const Soft8_Image * src, | ||
480 | int out_x, int out_y, int w, int h) | ||
481 | { | ||
482 | DATA8 *dp, *sp; | ||
483 | int x, y; | ||
484 | |||
485 | sp = src->pixels; | ||
486 | dp = dst->pixels + ((h + out_x - 1) + out_y * dst->stride); | ||
487 | |||
488 | for (y = 0; y < h; y++) | ||
489 | { | ||
490 | DATA8 *dp_itr, *sp_itr; | ||
491 | |||
492 | sp_itr = sp; | ||
493 | dp_itr = dp; | ||
494 | |||
495 | for (x = 0; x < w; x++) | ||
496 | { | ||
497 | *dp_itr = *sp_itr; | ||
498 | |||
499 | sp_itr++; | ||
500 | dp_itr += dst->stride; | ||
501 | } | ||
502 | sp += src->stride; | ||
503 | dp--; | ||
504 | } | ||
505 | } | ||
506 | |||
507 | static void | ||
508 | _tmp_out_process(Render_Engine * re, int out_x, int out_y, int w, int h) | ||
509 | { | ||
510 | Soft8_Image *d, *s; | ||
511 | |||
512 | d = re->shbuf->im; | ||
513 | s = re->tmp_out; | ||
514 | |||
515 | if ((w < 1) || (h < 1) || | ||
516 | (out_x >= (int)d->cache_entry.w) || | ||
517 | (out_y >= (int)d->cache_entry.h)) | ||
518 | return; | ||
519 | |||
520 | if (re->rot == 90) | ||
521 | _blit_rot_90(d, s, out_x, out_y, w, h); | ||
522 | else if (re->rot == 180) | ||
523 | _blit_rot_180(d, s, out_x, out_y, w, h); | ||
524 | else if (re->rot == 270) | ||
525 | _blit_rot_270(d, s, out_x, out_y, w, h); | ||
526 | } | ||
527 | |||
528 | static void | ||
529 | eng_output_redraws_next_update_push(void *data, void *surface __UNUSED__, int x, | ||
530 | int y, int w, int h) | ||
531 | { | ||
532 | Render_Engine *re; | ||
533 | struct { | ||
534 | int x, y, width, height; | ||
535 | } r = | ||
536 | { | ||
537 | 0, 0, 0, 0}; | ||
538 | |||
539 | re = (Render_Engine *) data; | ||
540 | |||
541 | if (!re->clip_rects) | ||
542 | { | ||
543 | re->clip_rects = | ||
544 | (pixman_region16_t *) malloc(sizeof(pixman_region16_t)); | ||
545 | pixman_region_init(re->clip_rects); | ||
546 | } | ||
547 | |||
548 | if (re->rot == 0) | ||
549 | { | ||
550 | r.x = x; | ||
551 | r.y = y; | ||
552 | r.width = w; | ||
553 | r.height = h; | ||
554 | } | ||
555 | else if (re->rot == 90) | ||
556 | { | ||
557 | r.x = y; | ||
558 | r.y = re->w - w - x; | ||
559 | r.width = h; | ||
560 | r.height = w; | ||
561 | } | ||
562 | else if (re->rot == 180) | ||
563 | { | ||
564 | r.x = re->w - w - x; | ||
565 | r.y = re->h - h - y; | ||
566 | r.width = w; | ||
567 | r.height = h; | ||
568 | } | ||
569 | else if (re->rot == 270) | ||
570 | { | ||
571 | r.x = re->h - h - y; | ||
572 | r.y = x; | ||
573 | r.width = h; | ||
574 | r.height = w; | ||
575 | } | ||
576 | |||
577 | if (re->rot != 0) | ||
578 | _tmp_out_process(re, r.x, r.y, w, h); | ||
579 | |||
580 | pixman_region_union_rect(re->clip_rects, re->clip_rects, | ||
581 | r.x, r.y, r.width, r.height); | ||
582 | } | ||
583 | |||
584 | static void | ||
585 | eng_output_flush(void *data) | ||
586 | { | ||
587 | Render_Engine *re; | ||
588 | |||
589 | re = (Render_Engine *) data; | ||
590 | |||
591 | if (re->clip_rects) | ||
592 | { | ||
593 | re->shbuf->drawable = re->drawable; | ||
594 | { | ||
595 | int i; | ||
596 | pixman_box16_t *rects = | ||
597 | pixman_region_rectangles(re->clip_rects, NULL); | ||
598 | for (i = 0; i < pixman_region_n_rects(re->clip_rects); i++, rects++) | ||
599 | evas_software_8_x11_x_output_buffer_paste | ||
600 | (re->shbuf, re->drawable, re->shbuf->gc, rects->x1, rects->y1, | ||
601 | rects->x2 - rects->x1, rects->y2 - rects->y1, 1); | ||
602 | } | ||
603 | |||
604 | pixman_region_fini(re->clip_rects); | ||
605 | free(re->clip_rects); | ||
606 | re->clip_rects = NULL; | ||
607 | } | ||
608 | } | ||
609 | |||
610 | static void | ||
611 | eng_output_idle_flush(void *data) | ||
612 | { | ||
613 | Render_Engine *re; | ||
614 | |||
615 | re = (Render_Engine *) data; | ||
616 | if (re->shbuf) | ||
617 | { | ||
618 | evas_software_8_x11_x_output_buffer_free(re->shbuf, 0); | ||
619 | re->shbuf = NULL; | ||
620 | } | ||
621 | if (re->clip_rects) | ||
622 | { | ||
623 | pixman_region_fini(re->clip_rects); | ||
624 | free(re->clip_rects); | ||
625 | re->clip_rects = NULL; | ||
626 | } | ||
627 | if (re->tmp_out) | ||
628 | { | ||
629 | evas_cache_image_drop(&re->tmp_out->cache_entry); | ||
630 | re->tmp_out = NULL; | ||
631 | } | ||
632 | } | ||
633 | |||
634 | static Eina_Bool | ||
635 | eng_canvas_alpha_get(void *data __UNUSED__, void *context __UNUSED__) | ||
636 | { | ||
637 | return EINA_FALSE; | ||
638 | } | ||
639 | |||
640 | /* module advertising code */ | ||
641 | static int | ||
642 | module_open(Evas_Module * em) | ||
643 | { | ||
644 | if (!em) | ||
645 | return 0; | ||
646 | /* get whatever engine module we inherit from */ | ||
647 | if (!_evas_module_engine_inherit(&pfunc, "software_8")) | ||
648 | return 0; | ||
649 | _evas_engine_soft8_x11_log_dom = eina_log_domain_register | ||
650 | ("evas-software_8_x11", EVAS_DEFAULT_LOG_COLOR); | ||
651 | if (_evas_engine_soft8_x11_log_dom < 0) | ||
652 | { | ||
653 | EINA_LOG_ERR("Can not create a module log domain."); | ||
654 | return 0; | ||
655 | } | ||
656 | |||
657 | /* store it for later use */ | ||
658 | func = pfunc; | ||
659 | /* now to override methods */ | ||
660 | #define ORD(f) EVAS_API_OVERRIDE(f, &func, eng_) | ||
661 | ORD(info); | ||
662 | ORD(info_free); | ||
663 | ORD(setup); | ||
664 | ORD(canvas_alpha_get); | ||
665 | ORD(output_free); | ||
666 | ORD(output_resize); | ||
667 | ORD(output_tile_size_set); | ||
668 | ORD(output_redraws_rect_add); | ||
669 | ORD(output_redraws_rect_del); | ||
670 | ORD(output_redraws_clear); | ||
671 | ORD(output_redraws_next_update_get); | ||
672 | ORD(output_redraws_next_update_push); | ||
673 | ORD(output_flush); | ||
674 | ORD(output_idle_flush); | ||
675 | /* now advertise out own api */ | ||
676 | em->functions = (void *)(&func); | ||
677 | return 1; | ||
678 | } | ||
679 | |||
680 | static void | ||
681 | module_close(Evas_Module * em __UNUSED__) | ||
682 | { | ||
683 | eina_log_domain_unregister(_evas_engine_soft8_x11_log_dom); | ||
684 | } | ||
685 | |||
686 | static Evas_Module_Api evas_modapi = { | ||
687 | EVAS_MODULE_API_VERSION, | ||
688 | "software_8_x11", | ||
689 | "none", | ||
690 | { | ||
691 | module_open, | ||
692 | module_close} | ||
693 | }; | ||
694 | |||
695 | EVAS_MODULE_DEFINE(EVAS_MODULE_TYPE_ENGINE, engine, software_8_x11); | ||
696 | |||
697 | #ifndef EVAS_STATIC_BUILD_SOFTWARE_8_X11 | ||
698 | EVAS_EINA_MODULE_DEFINE(engine, software_8_x11); | ||
699 | #endif | ||
diff --git a/libraries/evas/src/modules/engines/software_8_x11/evas_engine.h b/libraries/evas/src/modules/engines/software_8_x11/evas_engine.h deleted file mode 100644 index 1fa12df..0000000 --- a/libraries/evas/src/modules/engines/software_8_x11/evas_engine.h +++ /dev/null | |||
@@ -1,65 +0,0 @@ | |||
1 | #ifndef EVAS_ENGINE_H | ||
2 | #define EVAS_ENGINE_H | ||
3 | |||
4 | #include <sys/ipc.h> | ||
5 | #include <sys/shm.h> | ||
6 | |||
7 | #include <xcb/xcb.h> | ||
8 | #include <xcb/shm.h> | ||
9 | #include <xcb/xcb_image.h> | ||
10 | |||
11 | #include "evas_common.h" | ||
12 | #include "evas_common_soft8.h" | ||
13 | |||
14 | extern int _evas_engine_soft8_x11_log_dom; | ||
15 | #ifdef ERR | ||
16 | # undef ERR | ||
17 | #endif | ||
18 | #define ERR(...) EINA_LOG_DOM_ERR(_evas_engine_soft8_x11_log_dom, __VA_ARGS__) | ||
19 | |||
20 | #ifdef DBG | ||
21 | # undef DBG | ||
22 | #endif | ||
23 | #define DBG(...) EINA_LOG_DOM_DBG(_evas_engine_soft8_x11_log_dom, __VA_ARGS__) | ||
24 | |||
25 | #ifdef INF | ||
26 | # undef INF | ||
27 | #endif | ||
28 | #define INF(...) EINA_LOG_DOM_INFO(_evas_engine_soft8_x11_log_dom, __VA_ARGS__) | ||
29 | |||
30 | #ifdef WRN | ||
31 | # undef WRN | ||
32 | #endif | ||
33 | #define WRN(...) EINA_LOG_DOM_WARN(_evas_engine_soft8_x11_log_dom, __VA_ARGS__) | ||
34 | |||
35 | #ifdef CRIT | ||
36 | # undef CRIT | ||
37 | #endif | ||
38 | #define CRIT(...) EINA_LOG_DOM_CRIT(_evas_engine_soft8_x11_log_dom, __VA_ARGS__) | ||
39 | |||
40 | typedef struct _X_Output_Buffer X_Output_Buffer; | ||
41 | |||
42 | struct _X_Output_Buffer | ||
43 | { | ||
44 | Soft8_Image *im; | ||
45 | xcb_connection_t *connection; | ||
46 | xcb_screen_t *screen; | ||
47 | xcb_image_t *xim; | ||
48 | xcb_drawable_t drawable; | ||
49 | xcb_gcontext_t gc; | ||
50 | xcb_shm_segment_info_t *shm_info; | ||
51 | unsigned char *pal; | ||
52 | void *data; | ||
53 | }; | ||
54 | |||
55 | /****/ | ||
56 | int evas_software_8_x11_x_can_do_shm (xcb_connection_t *c, xcb_screen_t *screen); | ||
57 | X_Output_Buffer *evas_software_8_x11_x_output_buffer_new (xcb_connection_t *, xcb_screen_t *screen, int depth, unsigned char *pal, int w, int h, int try_shm, void *data); | ||
58 | void evas_software_8_x11_x_output_buffer_free (X_Output_Buffer *xob, int sync); | ||
59 | void evas_software_8_x11_x_output_buffer_paste (X_Output_Buffer *xob, xcb_drawable_t d, xcb_gcontext_t gc, int x, int y, int w, int h, int sync); | ||
60 | DATA8 *evas_software_8_x11_x_output_buffer_data (X_Output_Buffer *xob, int *bytes_per_line_ret); | ||
61 | int evas_software_8_x11_x_output_buffer_depth (X_Output_Buffer *xob); | ||
62 | int evas_software_8_x11_x_output_buffer_byte_order (X_Output_Buffer *xob); | ||
63 | int evas_software_8_x11_x_output_buffer_bit_order (X_Output_Buffer *xob); | ||
64 | |||
65 | #endif | ||
diff --git a/libraries/evas/src/modules/engines/software_8_x11/evas_x_buffer.c b/libraries/evas/src/modules/engines/software_8_x11/evas_x_buffer.c deleted file mode 100644 index a2c40b1..0000000 --- a/libraries/evas/src/modules/engines/software_8_x11/evas_x_buffer.c +++ /dev/null | |||
@@ -1,243 +0,0 @@ | |||
1 | #include "evas_common.h" | ||
2 | #include "evas_engine.h" | ||
3 | |||
4 | static int _xcb_err = 0; | ||
5 | |||
6 | int | ||
7 | evas_software_8_x11_x_can_do_shm(xcb_connection_t * c, xcb_screen_t * screen) | ||
8 | { | ||
9 | static xcb_connection_t *cached_c = NULL; | ||
10 | static int cached_result = 0; | ||
11 | |||
12 | if (c == cached_c) | ||
13 | return cached_result; | ||
14 | cached_c = c; | ||
15 | |||
16 | if (xcb_get_extension_data(c, &xcb_shm_id)) | ||
17 | { | ||
18 | X_Output_Buffer *xob; | ||
19 | |||
20 | xob = evas_software_8_x11_x_output_buffer_new | ||
21 | (c, screen, screen->root_depth, (unsigned char *)NULL, | ||
22 | 16, 16, 2, NULL); | ||
23 | if (!xob) | ||
24 | { | ||
25 | cached_result = 0; | ||
26 | return 0; | ||
27 | } | ||
28 | evas_software_8_x11_x_output_buffer_free(xob, 1); | ||
29 | cached_result = 1; | ||
30 | return 1; | ||
31 | } | ||
32 | cached_result = 0; | ||
33 | return 0; | ||
34 | } | ||
35 | |||
36 | X_Output_Buffer * | ||
37 | evas_software_8_x11_x_output_buffer_new(xcb_connection_t * c, | ||
38 | xcb_screen_t * s, | ||
39 | int depth, | ||
40 | unsigned char *pal, | ||
41 | int w, int h, int try_shm, void *data) | ||
42 | { | ||
43 | X_Output_Buffer *xob; | ||
44 | |||
45 | xob = calloc(1, sizeof(X_Output_Buffer)); | ||
46 | if (!xob) | ||
47 | return NULL; | ||
48 | |||
49 | xob->connection = c; | ||
50 | xob->screen = s; | ||
51 | xob->xim = NULL; | ||
52 | xob->shm_info = NULL; | ||
53 | xob->pal = pal; | ||
54 | |||
55 | if (try_shm > 0) | ||
56 | { | ||
57 | xob->shm_info = malloc(sizeof(xcb_shm_segment_info_t)); | ||
58 | if (xob->shm_info) | ||
59 | { | ||
60 | xob->shm_info->shmseg = xcb_generate_id(c); | ||
61 | xob->xim = xcb_image_create_native(c, w, h, | ||
62 | XCB_IMAGE_FORMAT_Z_PIXMAP, | ||
63 | depth, NULL, ~0, NULL); | ||
64 | if (xob->xim) | ||
65 | { | ||
66 | int shmid = shmget | ||
67 | (IPC_PRIVATE, xob->xim->size, IPC_CREAT | 0777); | ||
68 | |||
69 | if (shmid >= 0) | ||
70 | { | ||
71 | xob->shm_info->shmid = shmid; | ||
72 | xob->shm_info->shmaddr = xob->xim->data = | ||
73 | shmat(xob->shm_info->shmid, 0, 0); | ||
74 | |||
75 | if (xob->shm_info->shmaddr) | ||
76 | { | ||
77 | /* | ||
78 | * FIXME: no error mechanism | ||
79 | */ | ||
80 | |||
81 | /* XErrorHandler ph; */ | ||
82 | /* EventHandlers eh; */ | ||
83 | |||
84 | free(xcb_get_input_focus_reply | ||
85 | (c, xcb_get_input_focus_unchecked(c), NULL)); | ||
86 | _xcb_err = 0; | ||
87 | /* ph = XSetErrorHandler((XErrorHandler) */ | ||
88 | /* x_output_tmp_x_err); */ | ||
89 | xcb_shm_attach(c, | ||
90 | xob->shm_info->shmseg, | ||
91 | xob->shm_info->shmid, 0); | ||
92 | free(xcb_get_input_focus_reply | ||
93 | (c, xcb_get_input_focus_unchecked(c), NULL)); | ||
94 | /* XSetErrorHandler((XErrorHandler)ph); */ | ||
95 | if (!_xcb_err) | ||
96 | { | ||
97 | xob->im = | ||
98 | (Soft8_Image *) | ||
99 | evas_cache_image_data | ||
100 | (evas_common_soft8_image_cache_get(), w, h, | ||
101 | (DATA32 *) xob->xim->data, 0, | ||
102 | EVAS_COLORSPACE_GRY8); | ||
103 | |||
104 | if (xob->im) | ||
105 | xob->im->stride = | ||
106 | xob->xim->stride / sizeof(DATA8); | ||
107 | return xob; | ||
108 | } | ||
109 | } | ||
110 | shmdt(xob->shm_info->shmaddr); | ||
111 | shmctl(xob->shm_info->shmid, IPC_RMID, 0); | ||
112 | } | ||
113 | if (xob->xim) | ||
114 | xcb_image_destroy(xob->xim); | ||
115 | xob->xim = NULL; | ||
116 | } | ||
117 | if (xob->shm_info) | ||
118 | free(xob->shm_info); | ||
119 | xob->shm_info = NULL; | ||
120 | } | ||
121 | } | ||
122 | |||
123 | if (try_shm > 1) | ||
124 | return NULL; | ||
125 | |||
126 | xob->xim = xcb_image_create_native(c, w, h, XCB_IMAGE_FORMAT_Z_PIXMAP, | ||
127 | depth, NULL, ~0, NULL); | ||
128 | if (!xob->xim) | ||
129 | { | ||
130 | free(xob); | ||
131 | return NULL; | ||
132 | } | ||
133 | |||
134 | xob->data = data; | ||
135 | |||
136 | if (!xob->xim->data) | ||
137 | { | ||
138 | xob->xim->data = malloc(xob->xim->stride * xob->xim->height); | ||
139 | if (!xob->xim->data) | ||
140 | { | ||
141 | xcb_image_destroy(xob->xim); | ||
142 | free(xob); | ||
143 | return NULL; | ||
144 | } | ||
145 | } | ||
146 | if (xob->im) | ||
147 | evas_cache_image_drop(&xob->im->cache_entry); | ||
148 | |||
149 | xob->im = | ||
150 | (Soft8_Image *) | ||
151 | evas_cache_image_data(evas_common_soft8_image_cache_get(), w, h, | ||
152 | (DATA32 *) xob->xim->data, 0, | ||
153 | EVAS_COLORSPACE_GRY8); | ||
154 | if (xob->im) | ||
155 | xob->im->stride = xob->xim->stride / sizeof(DATA8); | ||
156 | return xob; | ||
157 | } | ||
158 | |||
159 | void | ||
160 | evas_software_8_x11_x_output_buffer_free(X_Output_Buffer * xob, int sync) | ||
161 | { | ||
162 | if (xob->shm_info) | ||
163 | { | ||
164 | if (sync) | ||
165 | free(xcb_get_input_focus_reply(xob->connection, | ||
166 | xcb_get_input_focus_unchecked(xob-> | ||
167 | connection), | ||
168 | NULL)); | ||
169 | xcb_shm_detach(xob->connection, xob->shm_info->shmseg); | ||
170 | xcb_image_destroy(xob->xim); | ||
171 | shmdt(xob->shm_info->shmaddr); | ||
172 | shmctl(xob->shm_info->shmid, IPC_RMID, 0); | ||
173 | free(xob->shm_info); | ||
174 | } | ||
175 | else | ||
176 | { | ||
177 | if (xob->data) | ||
178 | xob->xim->data = NULL; | ||
179 | free(xob->xim->data); | ||
180 | xcb_image_destroy(xob->xim); | ||
181 | } | ||
182 | free(xob); | ||
183 | } | ||
184 | |||
185 | void | ||
186 | evas_software_8_x11_x_output_buffer_paste(X_Output_Buffer * xob, | ||
187 | xcb_drawable_t d, | ||
188 | xcb_gcontext_t gc, | ||
189 | int x, int y, int w, int h, int sync) | ||
190 | { | ||
191 | unsigned char *data; | ||
192 | int i, j; | ||
193 | |||
194 | if (xob->shm_info) | ||
195 | { | ||
196 | for (i = y; i < y + h; i++) | ||
197 | { | ||
198 | data = xob->xim->data + i * xob->xim->width + x; | ||
199 | for (j = x; j < x + w; j++, data++) | ||
200 | *data = xob->pal[*data]; | ||
201 | } | ||
202 | |||
203 | xcb_image_shm_put(xob->connection, d, gc, | ||
204 | xob->xim, *xob->shm_info, x, y, x, y, w, h, 0); | ||
205 | |||
206 | if (sync) | ||
207 | free(xcb_get_input_focus_reply(xob->connection, | ||
208 | xcb_get_input_focus_unchecked(xob-> | ||
209 | connection), | ||
210 | NULL)); | ||
211 | } | ||
212 | else | ||
213 | { | ||
214 | xcb_image_put(xob->connection, d, gc, xob->xim, x, y, 0); | ||
215 | } | ||
216 | } | ||
217 | |||
218 | DATA8 * | ||
219 | evas_software_8_x11_x_output_buffer_data(X_Output_Buffer * xob, | ||
220 | int *bytes_per_line_ret) | ||
221 | { | ||
222 | if (bytes_per_line_ret) | ||
223 | *bytes_per_line_ret = xob->xim->stride; | ||
224 | return (DATA8 *) xob->xim->data; | ||
225 | } | ||
226 | |||
227 | int | ||
228 | evas_software_8_x11_x_output_buffer_depth(X_Output_Buffer * xob) | ||
229 | { | ||
230 | return xob->xim->bpp; | ||
231 | } | ||
232 | |||
233 | int | ||
234 | evas_software_8_x11_x_output_buffer_byte_order(X_Output_Buffer * xob) | ||
235 | { | ||
236 | return xob->xim->byte_order; | ||
237 | } | ||
238 | |||
239 | int | ||
240 | evas_software_8_x11_x_output_buffer_bit_order(X_Output_Buffer * xob) | ||
241 | { | ||
242 | return xob->xim->bit_order; | ||
243 | } | ||