Commit Graph

5607 Commits

Author SHA1 Message Date
Carsten Haitzler d91c5bc76f update README
SVN revision: 75299
2012-08-16 00:53:31 +00:00
Carsten Haitzler c27e15df0b update readme on svg change.
SVN revision: 75298
2012-08-16 00:40:17 +00:00
Carsten Haitzler 0f67b6e905 indeed spec file out of date.
SVN revision: 75297
2012-08-16 00:38:58 +00:00
Christopher Michael bdb2beb69a Evas (wayland): We should also check for framespace changes here and
adjust the clip size and position if something changed.

NB: Found this during final fullscreen testing where, when fullscreen,
the clip was not getting moved or resized.



SVN revision: 75291
2012-08-15 10:00:09 +00:00
Tom Hacohen fc94d7b168 Evas textblock: Fixed range geometry when the last item is a format.
SVN revision: 75257
2012-08-14 12:40:41 +00:00
Carsten Haitzler 54650e7e56 fix font glyph issue when gl enignes shut down leaving font glyph data
for textures in the font core.



SVN revision: 75243
2012-08-14 08:31:59 +00:00
Mike Blumenkrantz 4d56b9f19d add docs to some evas event structs
SVN revision: 75236
2012-08-14 07:06:30 +00:00
Christopher Michael 419c817815 Evas (wayland_egl): More bug fixes & cleanups ! :)
When we create the egl window we should take rotation into
consideration, so account for that. Add an 'edges' variable to the
engine info structure. This is needed so we can implement resizing
windows from the top also. Make sure to use
wl_egl_window_get_attached_size and determine the edge we are resizing
from, so we can calculate the difference in sizes to send to
wl_egl_window_resize.

Add __UNUSED__ to function paramaters where it was missing, and fix
some compiler warnings.



SVN revision: 75215
2012-08-13 14:36:25 +00:00
Carsten Haitzler b51f30b082 fix async event fd after fork. pipe re-create
SVN revision: 75193
2012-08-13 08:52:23 +00:00
Eduardo de Barros Lima a9b622c534 Fix documentation typos
SVN revision: 75179
2012-08-12 23:34:54 +00:00
Carsten Haitzler 42860b89ad cleaning formats.
SVN revision: 75160
2012-08-12 04:18:44 +00:00
Carsten Haitzler bd1860ffcc finally found evas_map weirdness bug. CEDRIC code...! commit #74180.
now here's the rub. from the glibc manual page:

...
       int memcmp(const void *s1, const void *s2, size_t n);

DESCRIPTION
       The  memcmp()  function compares the first n bytes (each interpreted as
       unsigned char) of the memory areas s1 and s2.  It  returns  an integer
       less than, equal to, or greater than zero if s1 is found, respectively,
       to be less than, to match, or be greater than s2.
       
RETURN VALUE
       The memcmp() function returns  an  integer  less  than, equal  to,  or
       greater than zero if the first n bytes of s1 is found, respectively, to
       be less than, to match, or be greater than the first n bytes of s2.

...

this explicitly says that s1 and s2 have their BYTES compared... and
then returns just some value < 0, 0 or > 0 based on the difference. what
that value is and means is not defined, as long as it is < 0, 0 or > 0.

so the C standard has this to say:

6.3.1.3 Signed and unsigned integers

2. Otherwise, if the new type is unsigned, the value is converted by
repeatedly adding or subtracting one more than the maximum value that
can be represented in the new type until the value is in the range of
the new type.

so a result of -255 (possible) is converted by REPEATEDLY adding the
max size of the new type (255) until within range... so ...
-255 + 255 = 0 ... within range.. BUT FALSE!

so why do we see this now? something changed in memcpy behavior.
before we ONLY saw values of -1, 0 or 1 - nothing else, NOW we see
thins like:

-12288
49152
4096
16384
61440
-53248

so memcpy changed behavior, though within specs of the manual page
anyway, but now the values can be ones that break the simple assignment.



SVN revision: 75159
2012-08-12 04:17:42 +00:00
Jihoon Kim 7d5113b09f evas: fix version in NEWS
SVN revision: 75105
2012-08-10 14:00:21 +00:00
Christopher Michael e64e0a4534 Evas: When we render using the wayland engine(s), if the object we are
rendering is in fact the framespace clip, then do not allow it to be
clipped to itself, just skip the clip set for it.



SVN revision: 75100
2012-08-10 13:08:22 +00:00
Carsten Haitzler aef32ed6d3 more updates for 1.7.0 alpha.
SVN revision: 75095
2012-08-10 10:51:17 +00:00
Carsten Haitzler 1e2cbe8e7d alpha release of 1.7 - let's roll. ALPHA!
SVN revision: 75091
2012-08-10 10:37:05 +00:00
Carsten Haitzler d101c4eddc theoretically this should fix alpha dest stuff in egl-x11... it
always worked oddly enough :)



SVN revision: 75086
2012-08-10 10:32:49 +00:00
Christopher Michael e2957462c8 Evas (wayland_egl): We don't have a visualinfo structure for the
window at this point, so we cannot use it for comparison. Instead,
check the requested depth. Also fix best_depth_get function to not
return a hard-coded depth if a depth has been set already.



SVN revision: 75082
2012-08-10 10:08:22 +00:00
Carsten Haitzler 27cd00c7f7 fix distcheck issue.
SVN revision: 75080
2012-08-10 10:05:48 +00:00
Daniel Juyung Seo ee1517b58a evas Evas.h: Added more documentation.
SVN revision: 75028
2012-08-09 05:54:22 +00:00
Youness Alaoui 60800876c3 Evas: Use proper variable (gc->shared is set later on)
SVN revision: 75022
2012-08-08 23:35:58 +00:00
Carsten Haitzler 6cfcf9ef49 can't reproduce but try avoid possible alloc bug in native surface
handling.



SVN revision: 74993
2012-08-08 06:25:59 +00:00
Carsten Haitzler 20f5fcaa3e move comment to right bit.
SVN revision: 74981
2012-08-07 11:17:35 +00:00
Cedric BAIL 49510f9f7f evas: forgotten ChangeLog and NEWS.
Missing Vincent so much !


SVN revision: 74979
2012-08-07 11:03:32 +00:00
Carsten Haitzler 6e0f9db089 lets not segv if src is null :)
SVN revision: 74978
2012-08-07 10:59:44 +00:00
Cedric BAIL 1284e077ad evas: don't clip the clipper.
SVN revision: 74974
2012-08-07 10:44:15 +00:00
Carsten Haitzler ce676a703d compile test... ceeeeedric!
SVN revision: 74972
2012-08-07 10:26:36 +00:00
Cedric BAIL 61c2345c55 evas: properly warn when linking object from different canvas.
SVN revision: 74968
2012-08-07 09:43:22 +00:00
Cedric BAIL a85e67559e evas: remove left over options.
SVN revision: 74954
2012-08-07 03:48:51 +00:00
Daniel Juyung Seo 2cefdbcec6 evas evas_object_smart.c: evas_object_smart_smart_get() does the exactly same check.
SVN revision: 74952
2012-08-07 00:57:09 +00:00
Gustavo Lima Chaves c343725133 [evas] Add forgotten magic checks on those iface functions.
SVN revision: 74948
2012-08-06 16:19:25 +00:00
Carsten Haitzler c601c066af move thinfo struct inot evas_pipe.c as its not needed elsewhere.
SVN revision: 74891
2012-08-06 00:22:31 +00:00
Carsten Haitzler c9f5e9d978 add missing fribidi flags to all engine modules.
SVN revision: 74889
2012-08-05 23:59:02 +00:00
Carsten Haitzler 38da638442 missing fribidi cflags in cache2.
SVN revision: 74872
2012-08-04 08:03:15 +00:00
Carsten Haitzler 4674438654 do fcfini now - it seesm to not be a problem with fc anymore
SVN revision: 74870
2012-08-04 04:34:49 +00:00
Carsten Haitzler 6d02ebcf28 leaks--!
SVN revision: 74868
2012-08-04 04:14:38 +00:00
Carsten Haitzler 6c079bcba6 dynamic texture path may have a segv issue... right jy? :) this should
fix it. try this patch. yay!



SVN revision: 74840
2012-08-03 10:42:24 +00:00
Stefan Schmidt 49caa43011 evas/canvas: Remove set but unused variable.
SVN revision: 74808
2012-08-02 16:05:49 +00:00
Sung Park d0b5d1e13e Fix evas_gl's internal resource surface bug. For optimzation evas_gl
was using evas' window surface to do its resource creation and it 
wans't properly updated when a window is destroyed and recreated.

Also, deleted some whitespaces. 


SVN revision: 74771
2012-08-02 01:15:38 +00:00
Christopher Michael 15a9aa0950 Evas: Fix evas build from botched copy/paste.
Apologies, I pasted the code in the wrong position :(



SVN revision: 74740
2012-08-01 14:32:26 +00:00
Christopher Michael 2a32afd20b Evas: Fix trying to clip objects to the framespace clip if the object
is going to be deleted. Patch from eduardo.de.barros.lime@intel.com.



SVN revision: 74739
2012-08-01 14:14:34 +00:00
Carsten Haitzler 951a9d2327 and chlog++
SVN revision: 74711
2012-08-01 06:30:16 +00:00
Carsten Haitzler debbdfe022 use eina_prefix for module finding as well as generic util bins... and
fix to proviude data file to prefix finding works right with debina
multiarch.



SVN revision: 74710
2012-08-01 06:29:26 +00:00
Jiyoun Park 102a85cc6e Fix evas pointer count problem, if press/release events occurs not pair,
it screws up the evas event process. We are not deal with release event if
there is no pressed pointer


SVN revision: 74705
2012-08-01 05:43:50 +00:00
Jiyoun Park d507bebc92 Gif loader didn't initialize frame buffer of first frame.
fix gif loader to initialize first frame's image data area


SVN revision: 74704
2012-08-01 04:33:12 +00:00
Tom Hacohen 6dd9396d6f Evas font: Fixed compilation without fontconfig.
Thanks a lot to JaMa for reporting this.

SVN revision: 74640
2012-07-31 10:51:11 +00:00
Christopher Michael 2aa4cd4bd5 Evas (wayland_egl): Add traps for a NULL rendering engine.
This can happen when rapidly opening & closing windows and when
engines are swapped between shm & egl programmatically.



SVN revision: 74616
2012-07-31 06:59:35 +00:00
Christopher Michael 72aad68b27 Evas: Fix bugs in Wayland Engine(s) with regard to object geometry &
position. Fix bug when clipping to viewport/framespace. These changes
fix Several buggers on Trac which related to the Wayland Engine(s).

Fix minor bug in evas_render where clipping for framespace would
not take into account the frame height and also move the frame clip to
the values specified in framespace (not viewport).

Fix buggers in evas_object_main which was causing objects (when created using 
the wayland engines) to be an incorrect size & position (objects will now
be the same size/position in EFL Wayland as they are in X11).

Fix evas_object_geometry_get to return values based on where they were
moved (in relation to framespace). (These fixes are for the Wayland
Engines and do not affect X11).

Remove nw/nh from evas_object_resize (not needed variables anymore).



SVN revision: 74565
2012-07-30 09:52:33 +00:00
Christopher Michael 4716f7f7ca Evas: We can include evas_pipe.h in common even without
BUILD_PIPE_RENDER. Fixes an implicit declaration warning when building
the software_generic engine.



SVN revision: 74481
2012-07-27 09:49:51 +00:00
Cedric BAIL 65f245cb08 evas: small doc improvement.
SVN revision: 74468
2012-07-27 02:59:24 +00:00
Tom Hacohen 6c9804fba9 Evas font: Fixed font cache to correctly handle different font sizes.
Used to just go for the first match in the cache which means it would always
think we only have the wrong size in the cache, and it would just add
new entries all the time.

SVN revision: 74435
2012-07-26 11:31:36 +00:00
Cedric BAIL b3e1d00b2f evas: force proxyed objects to stay active so we don't loose update.
SVN revision: 74427
2012-07-26 08:44:54 +00:00
ChunEon Park a3e8b5736d evas/gl - more clean code
SVN revision: 74420
2012-07-26 07:43:47 +00:00
Christopher Michael c652ba9071 Evas: Fix uninitialized variable warning.
SVN revision: 74353
2012-07-24 11:36:31 +00:00
Christopher Michael 4b5e15a133 Evas (wayland_egl): Set resource_list to NULL after we free it. Fix
minor formatting issue.



SVN revision: 74348
2012-07-24 09:19:23 +00:00
Carsten Haitzler c08110c00c conflict--
SVN revision: 74344
2012-07-24 06:33:56 +00:00
Carsten Haitzler a3d66cfed3 fix long standing layer set bug
SVN revision: 74342
2012-07-24 04:59:22 +00:00
Cedric BAIL 58827ba3b6 evas: handle proxy with the right context.
SVN revision: 74340
2012-07-24 04:27:17 +00:00
ChunEon Park 843255a175 evas/gl - +null & less code
This fixes the incorrect operations when evas gl is re-initialized in one same process



SVN revision: 74339
2012-07-24 03:57:27 +00:00
Ingvaldur Sigurjonsson 5410726016 From: Ingvaldur Sigurjonsson <rocketiii.scientist@gmail.com>
Subject: [E-devel] [PATCH]Evas.h comments patch

When reading the comments of 'evas_object_textgrid_update_add' I
noticed 
a little cnp err. The enclosed patch is just a suggestion, but the 
misleading comment was driving me nuts...



SVN revision: 74331
2012-07-24 01:31:50 +00:00
Rob Bradford 1e42e445c5 Evas (wayland_egl): Fix a series of various segfaults with the
wayland_egl engine caused by windows being hidden:

From: Rob Bradford <rob@linux.intel.com>
Date: Fri, 13 Jul 2012 19:13:12 +0100
Subject: [PATCH] evas(wayland_egl): Resolve a series of segfaults on
clean-up

The first was that when a window was being hidden the render engine
(e->engine.data.output) was being assigned to NULL (like on an error
path). I
checked other backends and they only free and nullify this pointer on
error
paths. By doing it on a hide it was interfering with cleanup process
for the
object.

This then highlighted a second crash from the derefence of the window
to NULL
when flushing the cache. If the window was hidden this window pointer
would
be NULL.

The third it highlighted was a duplicate call into
evas_gl_common_image_free
and the freeing of the image cache twice. By the time eng_image_free
has been
called the cache has already been freed so we can remove the duplicate
free.



SVN revision: 74330
2012-07-23 14:33:31 +00:00
Alex Wu 0f50ef36b9 Evas (wayland_egl): Fix crashes when flipping window alpha state.
From: Alex Wu <zhiwen.wu@linux.intel.com>

When calling elm_win_alpha_set(), the global EGLContext object keep
unchanged, but the new EGLSurface object subjects to the new EGLConfig
with changed alpha_size. This makes eng_window_new() failed and hence
free the  Render_Engine object (e->engine.data.output) and nullize it.
Next time other objects reference the output, segfault occurs.

In this patch, I give every Evas_GL_Wl_Window object a EGLContext object
and all these EGLContext objects share the same shader program objects.

A new global EGLContext object "share_context" added, which is
responsible for keeping the shared objects alive. e.g. shader program
objects.At the first time succeeded to create a EGLContext, assign it to
the "share_context", and should not destory it in eng_window_free.

The "share_context" will be taken as the 3rd argument when calling
eglCreateContext(), and then updated to the new created EGLContext to
keep the shared gl objects available.

Thanks for devilhorns' review and suggestion.



SVN revision: 74328
2012-07-23 14:16:50 +00:00
Youness Alaoui 8381ac5f55 Evas: Implement scale_hint_get/set for gl_sdl
SVN revision: 74323
2012-07-23 11:59:18 +00:00
Youness Alaoui cedbafac14 Evas: Update gl_sdl, gl_cocoa, directfb and software_16_sdl engines to use the new function prototype of image_map_draw
The arguments for image_map_draw changed, and these engines were receiving
the wrong data. In the case of gl_cocoa and gl_sdl, the gl_common would
receive a pointer for 'npoints' and would call abort() because npoints
is not 4.

SVN revision: 74321
2012-07-23 11:58:37 +00:00
Cedric BAIL 733338509e evas: make evas_object_smart_type_check more resilient.
Issue reported by JPeg.


SVN revision: 74295
2012-07-22 07:03:29 +00:00
Vincent Torri 15d902f502 remove workaround
SVN revision: 74288
2012-07-21 18:35:46 +00:00
Vincent Torri d8745ead0d libtool authors must be impaled (#3)
SVN revision: 74238
2012-07-20 11:04:22 +00:00
ChunEon Park d8a799003c evas/image - trivial changes
SVN revision: 74204
2012-07-20 05:41:25 +00:00
Cedric BAIL 4107be8da7 evas: little cosmetic fix.
SVN revision: 74181
2012-07-19 11:07:54 +00:00
Cedric BAIL f7d8ab31ed evas: try to unbork previous map fix.
NOTE: That one is nasty and I do admit that this doesn't
sounds like the proper fix, but as it doesn't trigger other
issue and is simple/reasonable I took to defeat that damn
beast.


SVN revision: 74180
2012-07-19 11:07:14 +00:00
Tom Hacohen 322a84e8f9 Evas tests: Fixed warnings.
SVN revision: 74166
2012-07-19 08:17:20 +00:00
Tom Hacohen df9ee73e48 Evas textblock: Fixed memory leak on tb deletion.
Thanks to k-s for reporting this.

SVN revision: 74165
2012-07-19 08:17:17 +00:00
Tom Hacohen d657328c80 Evas font: Add missing include.
Seriously, I don't know why or how, but it got removed from my previous
commit. Anyhow, it's fixed now.

SVN revision: 74159
2012-07-19 06:43:21 +00:00
Jiyoun Park d34502b33f fix bug in jpeg saver.
it override error handler before creation.
modify override error hanler after creation


SVN revision: 74153
2012-07-19 03:04:47 +00:00
Tom Hacohen b22564a2e5 Evas image: reset error after setting a proxy.
evas_object_image_file_set tries to load the file even if the file is NULL,
this in turn makes proxies always report about an error, although there
isn't really one.
I'm not sure whether evas_object_image_file_set should behave the way it
does, but I'm sure the proxy needs to reset the error anyway (because of
potential previous errors).

SVN revision: 74073
2012-07-18 14:09:53 +00:00
Carsten Haitzler 8d4f8f3dc7 fix box size hint handling.
SVN revision: 74039
2012-07-18 06:57:10 +00:00
Rafael Antognolli 30cff2b5fb evas/cserve2: Don't mark as unloaded if we are not
unloading the image.



SVN revision: 74000
2012-07-17 15:15:01 +00:00
Rafael Antognolli 665cffc165 evas/cserve2: Set image->flags.loaded on loaded_handle.
The flag and pixel data will be set on this callback, avoiding new
image_load_data() to create a new request or wait for the LOADED
message.



SVN revision: 73999
2012-07-17 15:14:54 +00:00
Rafael Antognolli 0efde61fef evas/cserve2: Don't set image loaded if we didn't get
pixel data yet.



SVN revision: 73998
2012-07-17 15:14:01 +00:00
Gustavo Lima Chaves fb2a822637 [evas] Interfaces improvement.
iface add() before smart add() is better.



SVN revision: 73991
2012-07-17 14:50:25 +00:00
Iván Briano 39040ba07a Set load options in the SETOPTS message
SVN revision: 73990
2012-07-17 14:24:08 +00:00
Iván Briano 4b1e5871aa Avoid calling the requets callbacks if the entry was
freed



SVN revision: 73989
2012-07-17 14:23:54 +00:00
Iván Briano 69f2a9154c When changing request type, it helps to let the request
know what its new type is



SVN revision: 73988
2012-07-17 14:23:43 +00:00
Iván Briano 667b42fbf2 No need for a separate Slave_Request pointer with font
entries



SVN revision: 73987
2012-07-17 14:23:36 +00:00
Iván Briano 073da7dfb2 Add Speculative Load type to requests and a way to
change requests from one type to another



SVN revision: 73986
2012-07-17 14:23:26 +00:00
Iván Briano 558e2eb267 Rename Font_Request so I stop being stupidly confused
by it.



SVN revision: 73985
2012-07-17 14:23:19 +00:00
Iván Briano 0e2294db55 Move image opening/loading to the new requests system
A lot going on here:
 - Request callbacks were adapted to fit the new scheme
 - The old requests systems in the cache was wiped out
 - Old slave handling in evas_cserve2_main.c is dead too
 - PRELOAD commands are responded with LOADED now



SVN revision: 73984
2012-07-17 14:23:09 +00:00
Iván Briano 0022544c8b Allow creating requets without a client waiting on it
SVN revision: 73983
2012-07-17 14:22:57 +00:00
Iván Briano 1f601af021 Cancel dependents only when the request itself is
cancelled



SVN revision: 73982
2012-07-17 14:22:52 +00:00
Iván Briano 30dd288a01 Call the requests callbacks only once per request
Message creation was like that already, but now we call the response or
error callback for the request only once. The cache does what it needs
there and returns, in the case of a successful response, the message
that will be sent to the client.



SVN revision: 73981
2012-07-17 14:22:42 +00:00
Cedric BAIL 7f1e95afc8 evas: fix evas map life cycle.
SVN revision: 73963
2012-07-17 09:09:45 +00:00
Cedric BAIL 64fd2b487a evas: fix garbage with left over mapped smart object.
This fix the bug reported by Bruno Dilly.


SVN revision: 73944
2012-07-17 03:35:53 +00:00
ChunEon Park 7f56d9a4da evas/render - ++ChangeLog
SVN revision: 73931
2012-07-16 11:34:52 +00:00
ChunEon Park 3f3314725c evas/render - fixed to do pre render for the children of mapped object.
Now textblock can calc it's texts geom correctly when it is a child of the mapped obj.



SVN revision: 73930
2012-07-16 11:33:12 +00:00
ChunEon Park 37af49d771 evas/render - removed duplicated recalc.
SVN revision: 73927
2012-07-16 11:19:08 +00:00
Carsten Haitzler 2c1b533d13 fix minor version defines to be at 1.6 (in sync now) ready for going
to 7 on release.



SVN revision: 73906
2012-07-16 06:36:02 +00:00
ChunEon Park a7a4fbbe74 evas/render - removed uselss compare and fix indent
SVN revision: 73903
2012-07-16 03:12:39 +00:00
Vincent Torri 1790fc0bd6 evas: cleanup autotools a bit
SVN revision: 73843
2012-07-14 09:28:01 +00:00
Tom Hacohen 049b0a349d Evas font: Fixed runtime emboldenment of bitmap fonts.
SVN revision: 73578
2012-07-11 14:05:36 +00:00
ChunEon Park 7674239482 evas/text - Let Draw Text with it's viewport size instead of window size.
When map is enabled then text should be rendered completely for it's surface.



SVN revision: 73514
2012-07-10 05:56:13 +00:00