Christopher Michael
a3559d4c88
Add code for engine redraws push.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 83261
2013-01-24 09:17:51 +00:00
Christopher Michael
4c04c1bb54
Add engine output redraws clear code.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 83260
2013-01-24 09:17:47 +00:00
Christopher Michael
866576b89b
Add engine output redraws rectangle del code.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 83259
2013-01-24 09:17:40 +00:00
Christopher Michael
7de14722fe
Add engine output redraws rectangle add code.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 83258
2013-01-24 09:17:37 +00:00
Christopher Michael
25e5af9ae6
Add engine tile size set function code.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 83257
2013-01-24 09:17:34 +00:00
Christopher Michael
6eda15c183
Add eng_output_resize code.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 83256
2013-01-24 09:17:30 +00:00
Christopher Michael
3dcaec35b5
Add code to the eng_output_free function to do any cleanup.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 83255
2013-01-24 09:17:26 +00:00
Christopher Michael
ae0076c929
Create engine context if missing and return success.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 83254
2013-01-24 09:17:23 +00:00
Christopher Michael
a2e3bfc356
Reassign engine data output
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 83253
2013-01-24 09:17:19 +00:00
Christopher Michael
8fa451f2db
If we have an existing render engine already, then free the existing
...
output buffer, create a new one, and assign render engine functions.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 83252
2013-01-24 09:17:15 +00:00
Christopher Michael
f72dfd4c31
Try to create the new Render_Engine on initial engine setup.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 83251
2013-01-24 09:17:11 +00:00
Christopher Michael
034721bcd8
Add check to make sure output buffer creation worked.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 83250
2013-01-24 09:17:00 +00:00
Christopher Michael
8a7ba73169
Add code to create the output buffer of the render engine and set the
...
render_engine functions.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 83249
2013-01-24 09:16:55 +00:00
Christopher Michael
0fdbf94c23
Add initial swapper code.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 83248
2013-01-24 09:16:52 +00:00
Christopher Michael
7e13dc5459
Add initial header file for swapper.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 83247
2013-01-24 09:16:49 +00:00
Christopher Michael
1d3cfce8a7
Remove include for evas_outbuf.h
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 83246
2013-01-24 09:16:46 +00:00
Christopher Michael
f76eb06874
Add initial swap buffer code.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 83245
2013-01-24 09:16:42 +00:00
Christopher Michael
82e807115f
Add initial swap buffer header file.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 83244
2013-01-24 09:16:39 +00:00
Christopher Michael
9b9fdf840b
Set tilebuffer tile size in engine setup.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 83243
2013-01-24 09:16:36 +00:00
Christopher Michael
fe75b1bf24
Try to create new tilebuffer in engine setup.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 83242
2013-01-24 09:16:22 +00:00
Christopher Michael
f0a6c5ca26
During engine setup, try to allocate a new Render_Engine structure.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 83241
2013-01-24 09:16:19 +00:00
Christopher Michael
753aa3d487
Add base function for engine output setup.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 83240
2013-01-24 09:16:15 +00:00
Christopher Michael
b1cadea6c5
Add local function prototype for engine output setup.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 83239
2013-01-24 09:16:12 +00:00
Christopher Michael
b17b417b73
Add test for 'swapping' (ie: buffering).
...
NB: This env variable is going to change for the wayland engine(s).
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 83238
2013-01-24 09:16:09 +00:00
Christopher Michael
5296f0c2cd
Add some evas_common init functions if we have not previously
...
initialized this engine before.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 83237
2013-01-24 09:16:06 +00:00
Christopher Michael
7cd113ea47
Test for valid engine output to see if we need to create it.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 83236
2013-01-24 09:16:03 +00:00
Christopher Michael
1e41dcd37f
Try to get the Evas public data from eo.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 83235
2013-01-24 09:15:59 +00:00
Christopher Michael
98e58d34a1
Try to cast the passed in info to our engine info.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 83234
2013-01-24 09:15:56 +00:00
Christopher Michael
57bb76834d
Try to free the allocated engine info structure.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 83233
2013-01-24 09:15:53 +00:00
Christopher Michael
80f8fcfeeb
Return our allocated engine info structure.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 83232
2013-01-24 09:15:49 +00:00
Christopher Michael
f3d29d891b
Fill in some default properties for our engine info.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 83231
2013-01-24 09:15:15 +00:00
Christopher Michael
c13e0e7b5f
Try to allocate our engine info structure.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 83230
2013-01-24 09:15:12 +00:00
Christopher Michael
3cdf6d6a50
Tell the Evas_Module about our functions and return success.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 83229
2013-01-24 09:15:08 +00:00
Christopher Michael
77a205eac8
Define which functions this engine will override from the
...
software_generic functions.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 83228
2013-01-24 09:15:05 +00:00
Christopher Michael
aa1bd96e2d
Copy the inherited functions into our local variable so we can
...
override some functions.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 83227
2013-01-24 09:15:00 +00:00
Christopher Michael
1dbfd6c541
Try to inherit functions from the software_generic engine.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 83226
2013-01-24 09:14:57 +00:00
Christopher Michael
145e8f8ced
On module open, create our log domain
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 83225
2013-01-24 09:14:54 +00:00
Christopher Michael
6340706c3f
Unregister the module log domain on shutdown of the engine.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 83224
2013-01-24 09:14:50 +00:00
Christopher Michael
e91f12c8e9
Add skeleton code for evas module open/close, etc.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 83223
2013-01-24 09:14:46 +00:00
Christopher Michael
bc8f383098
Add skeleton code for evas engine functions.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 83222
2013-01-24 09:14:31 +00:00
Christopher Michael
318eb79973
Add variable(s) for engine function overrides.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 83221
2013-01-24 09:14:27 +00:00
Christopher Michael
440c4b72e0
Add prototypes for evas engine functions.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 83220
2013-01-24 09:14:22 +00:00
Christopher Michael
12320fcb5e
Add variable for log domain.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 83219
2013-01-24 09:14:19 +00:00
Christopher Michael
0579a8b82c
Add Render_Engine structure.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 83218
2013-01-24 09:14:16 +00:00
Christopher Michael
a76b0245b9
Add initial evas_engine C file.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 83217
2013-01-24 09:14:13 +00:00
Christopher Michael
fd10050f53
Add intial Outbuf structure.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 83216
2013-01-24 09:14:10 +00:00
Christopher Michael
158fe19edb
Add enum for render mode (double, triple, etc).
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 83215
2013-01-24 09:14:07 +00:00
Christopher Michael
7e85b84098
Add Outbuf Depth enum.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 83214
2013-01-24 09:14:04 +00:00
Christopher Michael
9d1d8f4c63
Add initial evas_engine header file.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 83213
2013-01-24 09:14:00 +00:00
Christopher Michael
1577c5913e
Add initial Evas_Engine_Wayland_Shm header file and remove legacy
...
'dest' field from engine info structure.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 83212
2013-01-24 09:13:57 +00:00
Christopher Michael
0b5e371bc7
Remove old wayland shm engine code.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 83211
2013-01-24 09:13:54 +00:00
Sung Park
0c7425a0aa
Add EVAS_GL_DIRECT_MEM_OPT to enable on-demand fallback memory
...
allocation policy for EvasGL direct rendering.
Also made some variable name changes and some other minor fixes.
SVN revision: 83199
2013-01-24 04:51:51 +00:00
Christopher Michael
8ce1afd62f
leak--
...
If we do not have a private palette here, we free the buffer and
return NULL, However we never free'd the xob that was allocated
previously.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 83163
2013-01-23 11:12:52 +00:00
Christopher Michael
8aead73fe5
Free the previously allocated rectangle is we do not need it.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 83162
2013-01-23 11:07:59 +00:00
Christopher Michael
c4b536e500
Do not allocate Outbuf_Region if we do not need it (leak--).
...
- If the output buffer has a 'onebuf' and we are going to return
that, then we do not need to allocate an Outbuf_Region.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 83161
2013-01-23 11:07:55 +00:00
Christopher Michael
b07683009a
leak--. If we are returning NULL on buffer_new, then free any allocated xob
...
structure.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 83158
2013-01-23 10:55:04 +00:00
Carsten Haitzler
5e8f9c0689
oops - minor "never wil happen" leak - free rect.
...
SVN revision: 83110
2013-01-22 23:31:43 +00:00
Daniel Willmann
fecf68a886
efl: Unbreak evas gif-loader animation support
...
Always returning -1 for the frame duration does not have the desired
effect. Fix the logic checking whether eina_file_open has succeeded.
Animated GIFs play way too fast without this.
Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
SVN revision: 83100
2013-01-22 19:00:08 +00:00
Sung Park
d606adf10d
Applied on-demand memory allocation policy for Evas GL Surface
...
for direct rendering optimization. For direct rendering in EvasGL,
it falls back to FBO rendering if the conditions are not met. Before,
the fallback resources were created in the beginning but now they are
created and destroyed on need base.
SVN revision: 83057
2013-01-22 07:00:12 +00:00
Carsten Haitzler
01739d4cc1
oops - forgot to force 24bpp to 32bpp in drm swapper.
...
SVN revision: 83027
2013-01-21 03:37:46 +00:00
Gustavo Sverzut Barbieri
df701d8ca2
some clang warning cleanups i forgot to commit
...
SVN revision: 83024
2013-01-21 00:22:35 +00:00
Gustavo Sverzut Barbieri
1486f40f9b
fix bug spotted by clang.
...
SVN revision: 83015
2013-01-20 14:24:39 +00:00
Leandro Pereira
7d9edad225
evas/engines/gl_sdl: Build and warning fixes.
...
SVN revision: 82937
2013-01-17 14:32:05 +00:00
Ulisses Furquim
09f342fdeb
evas/async_render: use image scalecache
...
SVN revision: 82890
2013-01-16 16:07:46 +00:00
Carsten Haitzler
73b2f09b74
fix some core swapper logic isue with rect updates... nasty nasty
...
nasty to catch! :(
SVN revision: 82859
2013-01-16 06:41:02 +00:00
Paulo Alcantara
b557bd9e0d
efl/engines: Introduce multi_font_draw() function
...
This new engine function will only be used in software generic for
now - since it's the only engine used with the async render.
This function has been introduced in order to avoid growing thread
command queue too much to draw a text_props at a time on render calls
from textgrid objects.
Patch by: Paulo Alcantara <pcacjr@profusion.mobi>
SVN revision: 82832
2013-01-15 17:35:11 +00:00
Ulisses Furquim
48c15aaa74
evas/async_render: only get a ref if a thread cmd was issued
...
This patch should make us get a reference on images, maps and glyphs
which are sent in a command to the render thread. Before we were doing
some useless ref and unref operations.
SVN revision: 82666
2013-01-11 19:57:09 +00:00
Ulisses Furquim
b9f05341c3
evas/async_render: skip early if text_props with no glyphs
...
This is intended to preserve old behavior now that we have
evas_common_font_draw_cb() to handle both sync and async callbacks.
However, we need to check where why we end up with no glyphs in a
text_props even after calling evas_common_font_draw_prepare().
SVN revision: 82664
2013-01-11 19:56:32 +00:00
Ulisses Furquim
d45a54a0aa
evas/async_render: do not use async event to unref image maps
...
SVN revision: 82663
2013-01-11 19:56:17 +00:00
Leandro Pereira
d5f91fd5c2
evas/async_render: do not use async event to unref glyphs
...
Patch by: Leandro Pereira <leandro@profusion.mobi>
SVN revision: 82662
2013-01-11 19:55:40 +00:00
Leandro Pereira
ed79c2182e
evas/async_render: do not use async event to unref images
...
Patch by: Leandro Pereira <leandro@profusion.mobi>
SVN revision: 82661
2013-01-11 19:54:12 +00:00
Leandro Pereira
468b44c444
evas: Do not use an Eina_Lock for glyph array
...
Patch by: Leandro Pereira <leandro@profusion.mobi>
SVN revision: 82659
2013-01-11 19:48:28 +00:00
Lucas De Marchi
06ff74834f
efl: remove checks for socket.h, net/*, arpa/*
...
SVN revision: 82585
2013-01-10 20:26:02 +00:00
Lucas De Marchi
db395ef7eb
efl: Remove check for unistd.h
...
* unistd.h: is very useful, very old and very standard.
SVN revision: 82577
2013-01-10 20:25:26 +00:00
Carsten Haitzler
aed8f91ab6
add dri2 minor check for swap stuff.
...
SVN revision: 82562
2013-01-10 12:23:27 +00:00
Jiyoun Park
aad1b1ed4e
Fix evas bmp loader code which deal with image size.
...
if image file's image size not apply padding size, decoding cannot work correctly
SVN revision: 82532
2013-01-10 08:53:11 +00:00
Paulo Alcantara
e8cc9680d0
efl/software_generic: Fix map/image drawing with Cserve2
...
We must check whether source image has been loaded or not before
enqueueing draw commands. Otherwise, cserve2 may not have a specific
loader and then it does not load the source image and the enqueued draw
commands dereference the NULL pointer "data" from source image.
Patch by: Paulo Alcantara <pcacjr@profusion.mobi>
SVN revision: 82483
2013-01-09 21:39:06 +00:00
Gustavo Sverzut Barbieri
ceaab9d37f
efl/evas/gl_x11: fix warning due type change.
...
SVN revision: 82425
2013-01-08 22:47:40 +00:00
Carsten Haitzler
478de3ec76
small change - not worth chglogging... make evas gl x11 header not
...
need xlib.h anymore... :)
SVN revision: 82378
2013-01-08 03:49:49 +00:00
Sung Park
edcb4cf295
Pulled out evas gl backend binary shader file caching code from
...
evas_gl_shader.c file and made an internal generic caching api in
evas_gl_common.h for use in other places ie. evas_gl.
Then implemented evas_gl surface cap. caching code in gl backend to
accelerate the engine creation.
SVN revision: 82321
2013-01-07 06:16:18 +00:00
Cedric BAIL
fb1225caa7
efl: fix build of Evas XCB backend.
...
Patch by Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
SVN revision: 82310
2013-01-07 01:07:21 +00:00
Gustavo Sverzut Barbieri
de7dc1c2cc
efl/evas: proper glShaderSource() definition as glext.h
...
it is "const char * const *", not "const char **", and it was triggering a warning in our code.
it's just constness and will not trigger an error in our user's code, just an warning that he should fix.
SVN revision: 82278
2013-01-05 15:55:58 +00:00
Gustavo Sverzut Barbieri
5c7967827b
efl: easy warning fixes.
...
SVN revision: 82277
2013-01-05 15:42:26 +00:00
Mike McCormack
53fda2cc48
efl: Fix uninitialized variable
...
Signed-off-by: Mike McCormack <mikem@atratus.org>
SVN revision: 82245
2013-01-05 00:06:23 +00:00
Paulo Alcantara
a33afe35f9
efl/wayland_egl: Fix invalid argument being passed
...
evas_common_font_draw() should be called with glyphs array for now,
instead of intl_props.
This patch should fix ticket #2149 .
Signed-off-by: Paulo Alcantara <pcacjr@profusion.mobi>
Patch by: Paulo Alcantara <pcacjr@profusion.mobi>
SVN revision: 82229
2013-01-04 19:37:22 +00:00
Rafael Antognolli
f8dbdafae6
evas/wayland_egl: Force EGL_PLATFORM to wayland to skip autodetection.
...
Since we are already inside wayland_egl code, force this env var to
avoid the EGLNativeDisplayType autodetection (done by EGL code), which
seems to be incorrect.
This commit should fix ticket #1972 .
Note: revert this as soon as EGL autodetection gets fixed.
SVN revision: 82183
2013-01-04 16:00:43 +00:00
Rafael Antognolli
68d21e2e73
evas/loaders: Use png function to access private pointer.
...
SVN revision: 82065
2013-01-03 12:04:37 +00:00
Cedric BAIL
59ebafcb85
efl: rename eet_map to eet_mmap.
...
SVN revision: 82051
2013-01-03 09:18:05 +00:00
Cedric BAIL
1e8b9a90bf
efl: use Eina_File for PNG to.
...
SVN revision: 82047
2013-01-03 07:57:18 +00:00
Carsten Haitzler
83574d3ec3
oops - this one got moved byt not changed. fix.
...
SVN revision: 82022
2013-01-03 00:00:21 +00:00
Carsten Haitzler
a34941c17f
fix mask write line stuff.
...
SVN revision: 81998
2013-01-02 15:01:27 +00:00
Cedric BAIL
49b2bfea5a
efl: and now tiff also use Eina_File.
...
SVN revision: 81973
2013-01-02 06:44:26 +00:00
Cedric BAIL
23e6e67ac8
efl: evas gif loader now use Eina_File.
...
SVN revision: 81971
2013-01-02 05:30:06 +00:00
Cedric BAIL
663d56e498
efl: add eet_map and use it.
...
SVN revision: 81970
2013-01-02 02:46:05 +00:00
Cedric BAIL
311fe62f75
efl: use Eina_File for evas webp loader.
...
SVN revision: 81969
2013-01-02 01:50:50 +00:00
Cedric BAIL
51f8fe26fc
efl: forgotten evas commit.
...
SVN revision: 81914
2012-12-31 00:24:40 +00:00
Paulo Alcantara
0809c7de3f
efl/cserve2: Fix ref/unef of image entries for threads
...
Signed-off-by: Paulo Alcantara <pcacjr@profusion.mobi>
SVN revision: 81584
2012-12-21 21:13:06 +00:00
Mike McCormack
4680279070
efl: Fix signed comparison warning
...
Signed-off-by: Mike McCormack <mikem@atratus.org>
SVN revision: 81522
2012-12-21 09:01:29 +00:00
Leandro Pereira
b3c76a8bc2
evas/software_generic: Remove invalid EINA_UNUSED and other cleanups
...
SVN revision: 81473
2012-12-20 18:02:33 +00:00
Paulo Alcantara
76932dcc9f
evas/engines: Introduce render mode
...
The render mode should be useful for engines other than software one.
Signed-off-by: Paulo Alcantara <pcacjr@profusion.mobi>
SVN revision: 81384
2012-12-19 16:15:58 +00:00