Commit Graph

3069 Commits

Author SHA1 Message Date
ChunEon Park 0d616af28e evas/evas_events - removed useless lines since we support multi downs
but looks bad to keep the only one point in evas. 



SVN revision: 64197
2011-10-20 11:02:22 +00:00
Tom Hacohen eca175dbe5 Evas font: Oops, hb_fonts should be per font instance, not source.
SVN revision: 64144
2011-10-18 09:58:49 +00:00
Carsten Haitzler f1bdb3a902 for now - revers eumni touch events patch until we get press state
"getter" api patch. :)



SVN revision: 64140
2011-10-18 08:32:03 +00:00
Sung W. Park c1cc0a7ed2 From: "Sung W. Park" <sungwoo@gmail.com>
Subject: Re: [E-devel] [E-Devel][Review][Patch] Evas GL Extensions + a
bug fix


Here's an initial attempt at the GL extensions issue for Evas GL.

I have been in discussion with a few EFL developers regarding how we should
provide extensions.  Essentially, there are two ways to go about doing this.

1. provide evas_gl_proc_address_get() function as it is done in other
glue layers

2. provide all the extension functions in the EVAS_GL_API struct.

#1 approach is how it's done in other glue layers and the driver implementor can
provide new extensions easily.  It is however pretty annoying to get the
function prototypes right and use the function pointers and etc.

#2 approach provides all the extension functions in the struct so it's
definitely easier to use.  Adding new extensions can be a pain as people may
have to wait for new version releases.

For now, we thought it was OK to just throw them in the struct as in
#2 and try it out.  So, I've implemented this approach.  As for the extensions,
I've basically included all the extensions in gl2ext.h as EvasGL currently
provides all the GLES 2.0 functions.   In order to display the right
information, I had to override glGetString() with GL_EXTENSIONS as parameter to properly
display the supported extensions.

Also, I've added a few EGL extensions that have been
modified for EvasGL use.  For example, eglCreateImage/eglDestroyImage has been
defined as folllows.

   EvasGLImage  (*evasglCreateImage) (int target, void* buffer, int*
                                         attrib_list); void
                                            (*evasglDestroyImage)
(EvasGLImage image);

const char *evas_gl_string_query() function was added to return a string of
supported EvasGL extensions.  So essentially, a user can search this string to see
if the desired extension is supported.  if it is, he can use the functions.  He can
always check if the function pointers are NULL as well.

Take a look at the pach and let me know what you think.

______________

While I was adding the extension code, I've added a few fixes/ changes
to the EvasGL.

1. glDeletBuffers bug
- When I wad destroying evasgl context, I was deleting the context FBO with
glDeleteBuffers instead of glDeleteFramebuffers. This code in effect was
deleting BOs in other contexts and we had some funky behaviors as a
result.  The
bug has been fixed.

2. make_current
- I've made some changes to the make current code and also added a resource
context to the engine data.  the resource context is used for creating surface
texture/ fbos when surface/ context is created.  Before, i was using evas'
context but thought it'd be a good idea to use a separate context.



SVN revision: 64139
2011-10-18 08:13:23 +00:00
Tom Hacohen 4906d50afc Evas font: Cache Harfbuzz font structure for fonts we use.
SVN revision: 64136
2011-10-17 14:24:49 +00:00
Tom Hacohen 387bff89fb Evas textblock: Beautify the DRAW_FORMAT_DASHED macro a bit.
Patch by Shilpa Singh.

SVN revision: 64135
2011-10-17 12:18:57 +00:00
Tom Hacohen 58602fb861 Revert "evas: Deal with harfbuzz API breakage"
Sorry mate, but they broke API without bumping version, that's why I
didn't do this myself. You should probably add your version of harfbuzz.

This reverts commit 64057.

SVN revision: 64134
2011-10-17 12:18:53 +00:00
Tom Hacohen f1f954185a Evas textblock: Cleaned up DRAW_FORMAT/_DASHED macros.
Fixed compiler warnings.

SVN revision: 64132
2011-10-17 10:43:42 +00:00
Tom Hacohen ea9f23ad28 Evas textblock: Added dashed underline support.
Patch by Shilpa Singh

SVN revision: 64131
2011-10-17 10:43:08 +00:00
Mike McCormack 2d4cd8058a evas: Deal with harfbuzz API breakage
Signed-off-by: Mike McCormack <mj.mccormack@samsung.com>

SVN revision: 64057
2011-10-14 02:52:50 +00:00
Cedric BAIL e2d8b7892d evas: only draw the hole when it's needed.
SVN revision: 64047
2011-10-13 09:23:42 +00:00
Vincent Torri ce2cb9d8bf Evas: faster "lround"
SVN revision: 64036
2011-10-13 06:55:12 +00:00
Carsten Haitzler 3a59f00292 round negatives right.
SVN revision: 64035
2011-10-13 06:36:22 +00:00
Carsten Haitzler ff8767dbb4 lets just fal back to "stoopid" mode rounding for non-lround platforms
SVN revision: 64033
2011-10-13 06:15:28 +00:00
Mike McCormack ee5446fb13 evas: Use clists to store the render recalculation list
Rather than trying to avoid removing the list element that is
currently being processed, keep two lists and move elements
to the processed list before recalculating them.

Remove items from the list head only, and always append them
to the tail.

Use the fact that an item can be removed from a clist without
needing to know which list it is in.

Signed-off-by: Mike McCormack <mj.mccormack@samsung.com>

SVN revision: 64030
2011-10-13 02:22:29 +00:00
Carsten Haitzler a7adef691a more sse3 bugs!
SVN revision: 64006
2011-10-12 03:28:53 +00:00
Carsten Haitzler 9e62992fe8 make more bug notes.
SVN revision: 64005
2011-10-12 02:59:44 +00:00
Carsten Haitzler b531487495 some nasty hackery to get affine transform mapping to be "pixel
perfect" with 90 degree rotations. i really should have actually
special cased them, for for now i made the generic routine try and punt
out the right numbers.



SVN revision: 63986
2011-10-11 12:32:21 +00:00
Carsten Haitzler 2cf202ff51 disable buggy sse3 routine! test showed it in ello.
SVN revision: 63985
2011-10-11 11:51:54 +00:00
Carsten Haitzler f83bdbc136 fix off-by-one update region calc in map.
SVN revision: 63984
2011-10-11 11:30:37 +00:00
Carsten Haitzler 914a08e206 use lround() for map coord rounding to avoid silly things like
15.999999999999999998 rounding down to 15... whihc leads to
sometimes... odd off-by-1 expected results.



SVN revision: 63978
2011-10-11 06:06:11 +00:00
ChunEon Park af25636ab8 evas/evas_events - trivial changes
SVN revision: 63953
2011-10-10 08:52:08 +00:00
Mike McCormack e5c1e7cc4f evas: remove extra CR
SVN revision: 63867
2011-10-06 02:23:57 +00:00
Jim Kukunas 5d45544329 [PATCH] evas: fix typo in LOOP_ALIGNED_U1_A48_SSE3
The old version works because in every function in which
this macro is used ``l'' is the length and ``d'' is the
destination. This patch prevents future headaches when
those constraints no longer hold.

Patch by: Jim Kukunas <james.t.kukunas@linux.intel.com>



SVN revision: 63856
2011-10-05 23:41:01 +00:00
WooHyun Jung fb371c8aa6 evas/evas_object_textblock : When cursor_mode is BEFORE, dir_cur->node
can be NULL. So modified the conditional state.


SVN revision: 63824
2011-10-05 07:29:06 +00:00
Cedric BAIL 8edb994133 evas: cleanup and reorder video function call to be more usable.
SVN revision: 63799
2011-10-04 09:34:01 +00:00
Cedric BAIL 7b33abd685 evas: forgotten commit with since.
SVN revision: 63798
2011-10-04 09:33:40 +00:00
EunMi Lee c6681aa189 From: EunMi Lee <eunmi15.lee@samsung.com>
Subject: [E-devel] [Patch] Evas touch event patch.

Nice to meet you.
I'm Eunmi Lee, developing mobile web browser and working on WebKit EFL port.
I need new type of event for touch, so I've made patch to add
EVAS_CALLBACK_TOUCH event to the evas.

I will explain history of this patch.
Currently, many web applications and sites use TouchEvent and they can
do everything(scrolling, zooming and so on) like native application
using TouchEvent.
So, I'm also want to provide TouchEvent for web in the WebKit EFL port,
but I got a problem during making TouchEvent because EFL's touch
event's structure (Mouse, Multi Event) is different from Web
TouchEvent's one.

Let me explain about Web TouchEvent firstly.
Web TouchEvent is consist of type and touch points list simply.
There are 3 kinds of type.
TouchStart: Happens every time a finger is placed on the screen.
TouchEnd: Happens every time a finger is removed from the screen.
TouchMove: Happens as a finger already placed on the screen is moved
across the screen.
for example, we can make (1 finger starts to touch), (2 fingers are
moving), (1 finger is released duirng 3 fingers are moving) and so on.
You can see the detailed information in the following url:
http://www.sitepen.com/blog/2008/07/10/touching-and-gesturing-on-the-iphone

However, EFL's touch event is consist of six kinds of type :
MOUSE_DOWN, MOUSE_UP, MOUSE_MOVE, MULTI_DOWN, MULTI_UP, MULTI_MOVE.
So, I have to make a converter to make web touch event from EFL's
touch event.
You can reference attatched image file : evas_touch_event.png.

To tell the truth, converting code is not a big one.
But, I want to reduce this additional job and make code simple.
In the WebKit QT port, they don't have to make converting code for
TouchEvent,
because they have QTouchEvent, it has type and touchPoints list and
they can be mapped to Web TouchEvent one by one.
I think iPhone and Android also have such kind of event.

That's all why I want to add new touch event type to the evas.

about my patch:
- EVAS_CALLBACK_TOUCH event is added
- touch_points Eina_List is added to the Evas structure to maintain
current touch lists.
- process MOUSE/MULTI UP, DOWN, MOVE to make TOUCH event.

It is my first time to modify eves codes and actually I don't know too
much about evas.
So, I will be grateful if you send any feedback and comments.




SVN revision: 63796
2011-10-04 07:30:22 +00:00
Carsten Haitzler 157224ffef jiyoun bug! you didnt fix the hkey string properly.. you set the last
2 chars to o? where ? is "undefined". you set the same string char to
/ then o. fix!



SVN revision: 63785
2011-10-04 01:41:45 +00:00
Carsten Haitzler 620d2573f3 so... gcc was optimizing the test out... that sucks! fix. make sure gcc
doesnt know what to do with optimizing and actually compiles the code!



SVN revision: 63775
2011-10-03 16:29:12 +00:00
Carsten Haitzler 2aed2cf20a isolate sse3 to only its own file, so it only uses -msse3 for that
SVN revision: 63762
2011-10-03 04:44:23 +00:00
Cedric BAIL d724205a6e evas: add basic support for video support.
SVN revision: 63758
2011-10-03 03:28:52 +00:00
Carsten Haitzler de8b0a1137 formatting - space++
SVN revision: 63743
2011-10-02 10:43:17 +00:00
Josef Reidinger 37b04168d6 evas: fix make dist
Patch by: Josef Reidinger <jreidinger@suse.cz>



SVN revision: 63723
2011-09-30 13:33:40 +00:00
Mike Blumenkrantz 5d4c95d975 fix ambiguous docs and add notes about premultiplied coloring books
SVN revision: 63715
2011-09-30 06:05:33 +00:00
Carsten Haitzler cbb0dcbb3d include config.h - it isnt included.. otherwise we'd have had redefine
warnings....



SVN revision: 63714
2011-09-30 06:04:53 +00:00
Vincent Torri 6c59cdc4f4 fix warning
SVN revision: 63710
2011-09-30 04:14:30 +00:00
Vincent Torri 993fa90cb3 unneeded checks
SVN revision: 63708
2011-09-30 04:04:28 +00:00
Carsten Haitzler 34ca6b6738 you know.... i was reviewing this patch this morning and i found
several problems with it... but SOMEONE... (lucas) committed it
without even so much as replying to the list saying he was going to...
:)



SVN revision: 63705
2011-09-30 03:29:03 +00:00
Jim Kukunas 24c56344eb evas: enable SSE3 blend functions
Patch by: Jim Kukunas <james.t.kukunas@linux.intel.com>



SVN revision: 63704
2011-09-30 02:37:12 +00:00
Jim Kukunas a058ae7a5e evas: add SSE3 _op_blend_pixel_mask blend functions
_op_blend_p_mas_dp_sse3
_op_blend_pas_mas_dp_sse3
_op_blend_rel_p_mas_dp_sse3

Patch by: Jim Kukunas <james.t.kukunas@linux.intel.com>



SVN revision: 63703
2011-09-30 02:37:02 +00:00
Jim Kukunas e7f1e55f81 evas: add SSE3 op_blend_pixel_color blend functions
_op_blend_p_c_dp_sse3
_op_blend_pan_c_dp_sse3
_op_blend_p_can_dp_sse3
_op_blend_pan_can_dp_sse3
_op_blend_p_caa_dp_sse3
_op_blend_pan_caa_dp_sse3
_op_blend_rel_p_c_dp_sse3

Patch by: Jim Kukunas <james.t.kukunas@linux.intel.com>



SVN revision: 63702
2011-09-30 02:36:51 +00:00
Jim Kukunas a374dd7b35 evas: add SSE3 op_blend_pixel blend functions
_op_blend_p_dp_sse3
_op_blend_pas_dp_sse3
_op_blend_rel_p_dp_sse3
_op_blend_rel_pan_dp_sse3

Patch by: Jim Kukunas <james.t.kukunas@linux.intel.com>



SVN revision: 63701
2011-09-30 02:36:30 +00:00
Jim Kukunas 21991884f4 evas: add SSE3 op_blend_mask_color blend functions
_op_blend_mas_c_dp_sse3
_op_blend_mas_can_dp_sse3
_op_blend_rel_mas_c_dp_sse3

Patch by: Jim Kukunas <james.t.kukunas@linux.intel.com>



SVN revision: 63700
2011-09-30 02:36:15 +00:00
Jim Kukunas 793c7d1031 evas: add SSE3 op_blend_color blend functions
_op_blend_c_dp_sse3
_op_blend_rel_c_dp_sse3

Patch by: Jim Kukunas <james.t.kukunas@linux.intel.com>



SVN revision: 63699
2011-09-30 02:36:01 +00:00
Jim Kukunas 937a5a91f1 evas: add common SSE3 blending functions/macro
mul_256_sse3
sub4_alpha_sse3
interp4_256_sse3
mul_sym_sse3
mul4_sym_sse3
mul3_sym_sse3

LOOP_ALIGNED_U1_A48_SSE3

__attribute__((always_inline)) is needed to coax GCC (< 4.6.0)
into inlining the common blend ops. Not inlining these functions
causes a steep performance penalty.

Patch by: Jim Kukunas <james.t.kukunas@linux.intel.com>



SVN revision: 63698
2011-09-30 02:35:45 +00:00
Jim Kukunas eec4b913ea evas: add SSE3 support
Readme entry
configure --[enable/disable]-cpu-sse3
processor capability test

Patch by: Jim Kukunas <james.t.kukunas@linux.intel.com>



SVN revision: 63697
2011-09-30 02:35:31 +00:00
Cedric BAIL b70d6a0556 evas: oops forgot that.
SVN revision: 63664
2011-09-29 09:48:13 +00:00
Daniel Juyung Seo 3adea31a4a evas Evas.h: Fixed typo.
SVN revision: 63640
2011-09-28 09:14:40 +00:00
Carsten Haitzler 7be30a23bf and another commit in an attempt to fix mouse grabs + event callbacks
to be consistent



SVN revision: 63607
2011-09-26 02:45:06 +00:00
Carsten Haitzler 0088ea3d8b new attempt to fix the hidden object event thing without breaking
dnd... this makes for consistent behavior. :)



SVN revision: 63599
2011-09-25 04:43:02 +00:00
Carsten Haitzler 64940b1bf4 oops - and dont need to sub the rgabbed count - i missed that it was
already done above. no bug there. move on.



SVN revision: 63586
2011-09-24 07:46:37 +00:00
Carsten Haitzler 0df0084dba as suspected... this breaks drag and drop! :( revert.
SVN revision: 63577
2011-09-24 04:01:36 +00:00
Carsten Haitzler 222644dc67 try this for fixing grab count when callbacks play with further events
in the in list copy (like moving, resizing, hiding etc. them).



SVN revision: 63554
2011-09-23 06:37:03 +00:00
Carsten Haitzler f3899ddecb fix grab event counter miss.
SVN revision: 63553
2011-09-23 06:19:20 +00:00
ChunEon Park b653b18526 evas_object_smart - trivial changes.
SVN revision: 63514
2011-09-21 10:56:23 +00:00
ChunEon Park ad59819a7d evas/evas_events - just removed white spaces.
SVN revision: 63511
2011-09-21 10:35:03 +00:00
Tom Hacohen 7b374f1dd3 Evas textblock: Fixed an issue when deleting A from <a><a>A</a></a>.
Reported by WooHyun. Thanks a lot, great catch, also told me where and what
the issue is exactly.

Also added a test to verify this works.

SVN revision: 63493
2011-09-20 08:05:50 +00:00
Cedric BAIL 3171f01b00 evas: remove a fixme by making the engine list dynamic.
SVN revision: 63481
2011-09-19 14:20:18 +00:00
Tom Hacohen 0de47ae436 Evas textblock: Replace the rbtree index with a fixed ptr array.
This possibly doesn't scale as good but it's good enough for everything I've
tried. It's a lot easier to maintain comparing to the rbtree, and takes a
lot less memory. Next step is probably changing the array size according
to the actual content of the textblock.

SVN revision: 63474
2011-09-19 09:17:17 +00:00
Tom Hacohen 52302f9664 Evas font: Adjust yet again to the new harfbuzz API.
SVN revision: 63473
2011-09-19 09:17:08 +00:00
Youness Alaoui 2d413eae60 Evas: Remove lazy ifdef WIN32 and check for siglongjmp and sigaction availability
SVN revision: 63463
2011-09-18 21:57:17 +00:00
Daniel Juyung Seo 61b786c4e8 evas evas_name.c: Fixed indentation.
SVN revision: 63369
2011-09-14 04:41:12 +00:00
Youness Alaoui 4f96340279 Evas: If not threading, then LKT should not return 0, otherwise it will think it's a stuck lock
SVN revision: 63270
2011-09-07 18:00:57 +00:00
Tom Hacohen c0b309e43e Evas textblock: Added a workaround for the coords_recalc not being called.
Please, when you fix this annoying issue, revert this terrible commit. This
commit is intended to be a temporary fix.

SVN revision: 63267
2011-09-07 10:41:44 +00:00
Tom Hacohen 9182147b5f Evas font: Fixed compilation with g++.
Patch by cnook

SVN revision: 63196
2011-09-05 12:48:02 +00:00
Tom Hacohen fe8c41c6c5 Evas textblock: Use viewport for getting visible range, not clip.
SVN revision: 63191
2011-09-05 12:03:53 +00:00
Tom Hacohen 8f07a73106 Evas textblock: Fixed an issue when there are no available fonts.
The problem was that our rbtree implementation doesn't support chaining
duplicates and with no fonts, all the paragraphs had the same y coord (0).
Changing the paragraph index to work on line_no for sorting fixes it,
as line numbers are also correct when there are no fonts.

Thanks a lot to KaKaRoTo for letting me know about this issue.

SVN revision: 63188
2011-09-05 09:04:43 +00:00
Tom Hacohen 54ebd93cde Evas font: Fix compilation with C++ compilers.
Thanks to cnook for pointing that out.

SVN revision: 63186
2011-09-05 07:13:23 +00:00
Tom Hacohen c4229776de Evas textblock: Fixed compiler warnings.
SVN revision: 63185
2011-09-05 07:13:07 +00:00
Cedric BAIL d88567f49f evas: make MT12 a little bit faster so we can see Bunny a little more longer.
SVN revision: 63157
2011-09-04 16:26:47 +00:00
Cedric BAIL f6f2eb77f7 evas: forgotten patch for enabling colorspace properly.
SVN revision: 63152
2011-09-04 14:31:24 +00:00
Cedric BAIL 54373b9fbe evas: fix mt12 to se squirrel and bunny.
SVN revision: 63151
2011-09-04 14:30:41 +00:00
Carsten Haitzler 27ebb83c4e put generic loaders in libdir/evas/utils/
SVN revision: 63103
2011-09-03 03:48:39 +00:00
Rafael Antognolli 92b98ad145 evas/canvas - Update the pointer to engine_data after pixels_get().
The "pixels" pointer was set in the beginning of evas_object_image_render(),
and never updated, even after pixels_get() changed the content of
o->engine_data.

This patch updates that pointer if it becomes different from engine_data.



SVN revision: 63090
2011-09-02 14:06:25 +00:00
Carsten Haitzler 6694437c15 lets up the max recalc count a bit now that things re-schedule
themselves more.



SVN revision: 62994
2011-08-30 15:33:46 +00:00
Tom Hacohen c2964c42cb Evas font: Adjust to harfbuzz's latest and hopefully last API break.
SVN revision: 62989
2011-08-30 14:38:48 +00:00
Carsten Haitzler 8833075666 lets do that again. recalc list instead of recalc array. why? fixes
nasty ordering issues where recalc items dont get pushed later into
the recalc queue after the things they depend on.



SVN revision: 62977
2011-08-29 23:45:24 +00:00
Cedric BAIL 26ee52dd61 evas: add NV12 and MT12 colorspace.
MT12 is has documented in Linux videodev documentation
a 64 * 32 macro block tiled colorspace format used on
Samsung hardware.


SVN revision: 62967
2011-08-29 20:56:48 +00:00
Vincent Torri 93ded6d380 revert rev. 62944
SVN revision: 62963
2011-08-29 19:05:03 +00:00
Carsten Haitzler e7c63bd333 i've found a subtle issue with how we queue recalcs of smart objs. if
an obj is already queued we dont push it FURTHEr down the queue if
smart recalc is enabled. now at least we keep order of operation/calc
correctly!



SVN revision: 62944
2011-08-29 12:14:55 +00:00
Carsten Haitzler f8c2a95c1a ok- we'll be nice and 0 your w & h - also x, y, w, h did this too.
SVN revision: 62942
2011-08-29 11:49:31 +00:00
Carsten Haitzler 9987945719 dont need ti check priv - macro did it anyway
SVN revision: 62941
2011-08-29 11:39:43 +00:00
Carsten Haitzler 3c456311b3 add a call to get the number of smart caluclation counts. very useful
for one evil situation in elementary factory.



SVN revision: 62856
2011-08-26 12:26:45 +00:00
Tom Hacohen 9f23c221d6 Evas callbacks: Do the same change daniel did to smart callbacks.
Spank Spank for not applying it here as well.

SVN revision: 62798
2011-08-25 10:06:12 +00:00
Daniel Juyung Seo 733ac6e274 evas evas_object_smart.c: Reverted smart callback calling sequence.
Now, smart callback is prepended among the same priorities. After the
discussion with hermet and raster.

I fixed this because I think it's better keeping the default behavior
even we have new priority option. This is for evas backward
compatibility and for the world peace. Although I know there is no
official policy and it's not recommended to rely on the smart callback
calling sequence in application, I really hope evas needs to have
compatibility. Otherwise we need to adopt the new policy in next
version of evas. 


SVN revision: 62792
2011-08-25 09:18:39 +00:00
Sung W. Park f3d21a04d0 From: "Sung W. Park" <sungwoo@gmail.com>
Subject: [E-devel]  [Review] [Patch] Evas_GL bug fixes/updates


I've fixed some minor issues that I've been pushing off for later.

The patch does the following:

1. Evas_GL and Evas had an issue where the viewport parameters were
being reset in the wrong context. Previously, this issue was temporarily
patched by flushing evas' pipeline and setting
evas_gl_common_context_use(NULL) in EvasGL's
make current. I know, it was pretty hacky. It turns out that in
evas_engine,
there was a code evas_gl_common_context_resize(NULL) without doing
eng_window_use() first.  So i've added that part and problem went was
resolved properly. :-)

2. Naturally, I've taken out the temporary patch from 1.

3. I've added code that took care of glBindFramebuffer(..., fbo) where
the
fbo had to be saved and restored in case the user wanted to use his
own fbo.
Also, I've had to take care of the case when fbo is 0 since 0 need to
point
to evas_gl surface.

4. I've updated make_current a little as well.



SVN revision: 62780
2011-08-25 06:30:52 +00:00
ChunEon Park c3676cdabd Evas - updated AUTHORS
SVN revision: 62779
2011-08-25 06:14:43 +00:00
Jiyoun Park 4b59fd460e From: Jiyoun Park <jy0703.park@samsung.com>
Subject: [E-devel] [Patch] evas gl engine's texture creation

Hello. 

1. _pool_tex_dynamic_new function, it didn’t set pt to NULL when secsym_eglCreateImage function failed.
In this case, it returns wrong pt pointer and it has possibility to make crash.
So I add free pt code and return NULL code into _pool_tex_dynamic_new function.

2. I modified eng_image_data_get of gl engine.

If Evas_GL_Image's texture creation failed and evas_gl_image's cache image was droped, 
Im->im can be NULL. So I add check code. 
Example: evas_gl_common_image_content_hint_set
     1) EVAS_IMAGE_CONTENT_HINT_DYNAMIC , it drop cache image
     2) if evas_gl_common_texture_dynamic_new failed
     3) then, im->im =NULL, im->tex=NULL
        In this situation, if application call's evas_object_image_data_get function, 
It make crash in evas_cache_image_load_data function.

3. I think function's related with evas_object's engine data have to be return NULL if it failed.
If function's returns null, evas object code can handle error more easily.  
But evas object's code was implemented differently each case. Does my suggestion right?
I add engine data null check code to evas_object_image based on upper consumtion.
If it is wrong , the patch code related with evas object image have to be removed.
If it is right , I will survey other evas object type also.  



SVN revision: 62775
2011-08-25 04:48:45 +00:00
Cedric BAIL efcceff953 evas: fix evas_object_image_data_convert.
SVN revision: 62722
2011-08-23 16:06:41 +00:00
Jiyoun Park 9cce5f3959 From: Jiyoun Park <jy0703.park@samsung.com>
Sometimes, gif loader can miss some previous frame.
In that case, display can be dirty.
If frame N loaded without N-1 make these problem.
I fixed this problem. 
And I modified wrong document.



SVN revision: 62712
2011-08-23 06:08:02 +00:00
Tom Hacohen f6724cc23b Evas font: Did some style fixes, we don't like tabs.
SVN revision: 62695
2011-08-22 14:45:23 +00:00
Tom Hacohen 54fd7dc69f Evas font: Fixed font cache.
Apparently someone (probably me) broke it a while ago, now it works.

SVN revision: 62694
2011-08-22 14:45:19 +00:00
Tom Hacohen 4cba183f96 Evas font: Revert "evas/font - removed an unusefull handling."
This reverts commit 62684.

This is needed to verify we don't access info->ot when info is NULL.

SVN revision: 62691
2011-08-22 11:51:18 +00:00
ChunEon Park 3184b6e863 evas/font - removed an unusefull handling.
Thank you TAsn. 



SVN revision: 62684
2011-08-22 09:39:13 +00:00
Tom Hacohen 15a3582483 Evas font: Revert last 2 commits by Hermet (62659, 62675).
SPANK SPANK, they broke compilation. Please use the builtin revert
functions when you revert commits. Either:
GIT: 'git revert <commit hash>' (yeah, git is better).
or
SVN: 'svn merge -c <revision> .'

This will prevent this kind of erros from happenning in the future.

Also, plesae compile before committing.

SVN revision: 62678
2011-08-22 08:23:04 +00:00
ChunEon Park 3bd87ec51a evas/evas_font - revert exceptin handlings
requested by TAsn

I do understand. :p

then, it seems no need to set the _ot_itr = NULL in EVAS_FONT_WALK_TEXT_START.



SVN revision: 62675
2011-08-22 03:34:43 +00:00
ChunEon Park 1bed664303 evas/evas_font - added exeption handlings.
SVN revision: 62659
2011-08-21 12:47:11 +00:00
Carsten Haitzler 0f2636921b warning--
SVN revision: 62647
2011-08-21 07:46:57 +00:00
Carsten Haitzler 6895455001 and clear out proxy region first.
SVN revision: 62632
2011-08-20 14:43:04 +00:00
Carsten Haitzler db56e7b36f fix proxy rendering!!!! ugh. i dont like the way i did it.. but its
quick and does the job.



SVN revision: 62631
2011-08-20 14:40:28 +00:00
Tom Hacohen 7a281f0745 Evas font: Disabled word/metric caching due to bugs.
SVN revision: 62547
2011-08-18 07:21:44 +00:00
Tom Hacohen 5f16c0ba14 Evas font: Fixed a compiler warning.
SVN revision: 62537
2011-08-17 15:42:07 +00:00
Tom Hacohen 6858025fce Evas font: Workaround an issue with metric cache.
SVN revision: 62536
2011-08-17 15:42:01 +00:00
Tom Hacohen ef8476152d Evas callbacks: Added priority to evas callbacks.
This includes evas_event, evas_object_event and evas_object_smart
callbacks.
See the added docs for more info.

SVN revision: 62533
2011-08-17 11:55:29 +00:00
Tom Hacohen 7addaa1eb4 Evas text: Set the object's size according to the advance, not width.
SVN revision: 62494
2011-08-16 07:16:06 +00:00
Christopher Michael 76acd92058 Evas: Fix formatting.
SVN revision: 62489
2011-08-15 20:17:18 +00:00
Tom Hacohen 73036290d6 Evas textblock: Fixed cursor_content_get's handling of formats.
Formats are now correctly enclosed with <> when returned, instead of just
the text being returned.

SVN revision: 62439
2011-08-14 11:26:45 +00:00
Daniel Juyung Seo 22459ef0ea evas: Fixed 'unsed variables' warnings.
SVN revision: 62388
2011-08-12 15:01:12 +00:00
Daniel Juyung Seo fbf38b63ed evas evas_common.h: Fixed spacing and removed trailing whitespaces.
SVN revision: 62367
2011-08-12 01:52:29 +00:00
ChunEon Park 9a6b7aab4b evas - just removed white spaces.
SVN revision: 62354
2011-08-11 14:14:48 +00:00
Carsten Haitzler cc7d5115c3 frame count nto frame num - match c file.
SVN revision: 62339
2011-08-11 10:30:35 +00:00
Carsten Haitzler 75940a8398 improve jy's docs. :)
SVN revision: 62335
2011-08-11 08:56:59 +00:00
Tom Hacohen d6752c9e1b Evas textblock: Fixed bug in range_formats get.
Thanks to Sanjeev for the rebort.

SVN revision: 62333
2011-08-11 06:58:53 +00:00
Jiyoun Park dae46003e7 From: Jiyoun Park <jy0703.park@samsung.com>
Subject: RE: [E-devel] [Patch] Animation gif feature patch

Animated gif suport in evas and api's to handle animated images and
frame flipping. from jy.



SVN revision: 62331
2011-08-11 06:04:08 +00:00
Mike Blumenkrantz 2d55002bfd update some docs for Evas_Event_Mouse_Down even though none of this stuff is worthwhile anyway since dependency structs aren't documented
SVN revision: 62283
2011-08-10 04:54:35 +00:00
Gustavo Lima Chaves 0d8a62ff14 [evas] Filling some gaps on documentation.
SVN revision: 62266
2011-08-09 20:56:22 +00:00
Tom Hacohen e5b331009b Evas textblock: Added cursor_visible_range_get and cursor_range_formats_get.
SVN revision: 62259
2011-08-09 13:55:42 +00:00
Tom Hacohen 202623daed Evas textblock: Fixed a bug in evas_textblock_cursor_char_coord_set.
SVN revision: 62258
2011-08-09 13:55:38 +00:00
Tom Hacohen f765f1e290 Evas textblock: Fixed a bug in evas_textblock_cursor_line_coord_set.
SVN revision: 62257
2011-08-09 13:55:31 +00:00
Carsten Haitzler f78d33c9cf fix typos in docs
SVN revision: 62225
2011-08-09 06:30:09 +00:00
Carsten Haitzler 58dd545f7f remove logo.
SVN revision: 62224
2011-08-09 06:09:50 +00:00
Tom Hacohen c416b7c843 Evas font: font_load use the correct string.
Thanks vtorri for the catch.

SVN revision: 62207
2011-08-08 14:47:35 +00:00
Carsten Haitzler d0429906c2 strndup--!
SVN revision: 62206
2011-08-08 14:40:33 +00:00
Tom Hacohen d9ef546967 Evas textblock: Updated docs.
SVN revision: 62175
2011-08-07 08:31:01 +00:00
Tom Hacohen 10117973c4 Evas textblock: Fixed compiler warning.
SVN revision: 62174
2011-08-07 08:30:46 +00:00
Carsten Haitzler c7bb701ca5 make the internal options key much shorter - faster matches.
SVN revision: 62131
2011-08-05 11:54:13 +00:00
Jonas M. Gastal 8468681d22 Evas: adding blank line before images so doxygen won't mess
up pdf layout.



SVN revision: 62111
2011-08-04 21:28:32 +00:00
Gustavo Lima Chaves 8a9004d01f [evas] Examples on box object.
SVN revision: 62102
2011-08-04 20:19:45 +00:00
Gustavo Lima Chaves 26867b85e8 [evas] Documentation bump on the box smart object.
Example on it comes next.



SVN revision: 62101
2011-08-04 20:19:36 +00:00
Cedric BAIL 28f32ca0c5 evas: fix typo.
SVN revision: 62090
2011-08-04 10:03:36 +00:00
Tom Hacohen 575db1275d Evas textblock: Add const to parameter as we don't change it.
This does not break API/ABI.

SVN revision: 62080
2011-08-04 06:15:46 +00:00
Jonas M. Gastal 647ea9efc2 Evas: removing author list from main page.
SVN revision: 62069
2011-08-03 20:59:06 +00:00
Daniel Juyung Seo 9666912d97 evas Evas.h: Fixed typo.
SVN revision: 62041
2011-08-03 06:31:53 +00:00
Tom Hacohen 943b22bcf7 Evas textblock: Fixed range_text_get with TEXT_PLAIN.
Until now, it only supported MARKUP, now it also supports plain.
Haven't tested it much, but it seems to be working. It can help a lot to
people who want to analyse the text, for example when implementing a spell
checker, or "search", as now the text maps exactly like the cursors map.
Still have to decide if that's the wanted API and set it in stone, or not
promise this and expose a different API for these kind of tasks.

SVN revision: 62011
2011-08-02 16:28:37 +00:00
Tom Hacohen c71c706853 Evas textblock: Added intro to formats to docs.
SVN revision: 61996
2011-08-02 13:22:35 +00:00
Tom Hacohen 7a36d84957 Evas textblock: Fixed mistake in docs.
SVN revision: 61994
2011-08-02 12:30:25 +00:00
Tom Hacohen 4f82ddea77 Evas textblock: Fixed format_append/prepend.
It should only treat format passed as a tag if it was passed with <>.
Otherwise, it should be treated as a regular format.

SVN revision: 61993
2011-08-02 12:17:09 +00:00
Tom Hacohen 19363f446e Evas textblock: Renamed newline_mode_set/get -> legacy_newline_set/get.
SVN revision: 61992
2011-08-02 12:17:01 +00:00
Cedric BAIL abffaa922d evas: wipe out cache in the right order.
SVN revision: 61956
2011-08-01 14:56:26 +00:00
Tom Hacohen d0b2f5b414 Evas font: removed _FcPattern decleration.
No idea who put it there, but it definitely doesn't belong here.

SVN revision: 61954
2011-08-01 14:49:40 +00:00
Tom Hacohen 9145913cdc Evas textblock: Use the set language with liblinebreak if known.
SVN revision: 61945
2011-08-01 10:45:42 +00:00
Tom Hacohen 2661895aec Evas textblock: Fixed a bug with <i> identified as <item>.
SVN revision: 61944
2011-08-01 09:11:46 +00:00
Tom Hacohen 4ec907df55 Evas font: Renamed FONT_REND_ITALIC/BOLD -> FONT_REND_SLANT/WEIGHT.
This change is needed for future support of multiple level of runtime
weight creation.

SVN revision: 61943
2011-08-01 09:11:42 +00:00
Tom Hacohen 473a719455 Evas textblock: Added "lang" to markup to set the language.
SVN revision: 61942
2011-08-01 08:21:15 +00:00
Tom Hacohen f3e76c661d Evas font: added support for ':lang=' and fixed a possibly mem leak.
SVN revision: 61941
2011-08-01 08:21:12 +00:00
Tom Hacohen bd556d9c14 Evas textblock+font: Fixed the font fallbacks support.
SVN revision: 61940
2011-08-01 08:21:09 +00:00
Tom Hacohen 316393df91 Evas textblock: Fixed cond jump depends on uninit value.
SVN revision: 61939
2011-08-01 08:21:05 +00:00
Tom Hacohen d3cbb5e584 Evas textblock: Fixed if to be else if in format handling.
SVN revision: 61938
2011-08-01 08:21:02 +00:00
Tom Hacohen b3995dfc6c Evas textblock: Added font_width to markup.
SVN revision: 61937
2011-08-01 08:20:59 +00:00
Tom Hacohen 9ba3e192a5 Evas font+textblock: Stopped using FcNameParse, parse ourselves.
FcNameParse is pretty bad, not only that it's pretty bad, it doesn't
work well in some cases. Also this makes our lives a lot easier since
we want to allow overriding style/weight/width and etc from markup.
We now parse the "font" markup ourselves, populating a font description
structure that we created, and then override values in it as needed.

SVN revision: 61936
2011-08-01 08:20:52 +00:00
Tom Hacohen 93e4267051 Evas textblock: Fixed a memory leak.
Thanks to discomfitor for the report.

SVN revision: 61925
2011-07-31 08:09:02 +00:00
Jonas M. Gastal 3c3bfa84bf Evas: evas_object_table documentation.
SVN revision: 61906
2011-07-29 17:08:25 +00:00
ChunEon Park e9ec7403d4 evas_object_smart - just removed no useful MAGIC_CHECK
SVN revision: 61889
2011-07-29 11:44:03 +00:00
ChunEon Park f1554b0ba3 evas/evas_object_smart - trivial changes
1/0 -> EINA_TRUE/EINA_FALSE

identation



SVN revision: 61884
2011-07-29 06:49:25 +00:00
ChunEon Park 928d31db1f evas/evas_smart - 1/0w -> EINA_TRUE/FALSE
SVN revision: 61881
2011-07-29 06:25:13 +00:00
Tom Hacohen 3432644acd Evas textblock: Changed 'heavy' weight to 'black'.
Apparently that's what FC likes.

SVN revision: 61859
2011-07-28 14:32:40 +00:00
Tom Hacohen 1350644a8b Evas font: Enabled run-time slanting for 'Oblique'.
SVN revision: 61858
2011-07-28 14:01:35 +00:00
Tom Hacohen 0d7d7d8f06 Evas textblock: Fixed a bug with font_weight and font_style.
Forgot to add a space when I add a new style when there wasn't one before.

SVN revision: 61855
2011-07-28 12:59:36 +00:00
Tom Hacohen 43618428b4 Evas textblock: Added font_weight and font_style formats.
These allow overriding the font style defined using "font=':style=Bold'".

SVN revision: 61854
2011-07-28 12:43:41 +00:00
Tom Hacohen 5fd7c82d5f Evas textblock: Format tags now support quoting values.
For example: "<font='Sans:style=Bold Oblique'>bla</font>".

SVN revision: 61843
2011-07-28 09:18:55 +00:00
Tom Hacohen bb87f260a6 Evas textblock: Removed useless alloca.
SVN revision: 61842
2011-07-28 09:18:50 +00:00
Carsten Haitzler 00047ce6c6 fix cleaning up tmpf (new feature in 1.1 anyway) for memfile load in
some other situations like setting image data/colorspace etc.



SVN revision: 61836
2011-07-28 05:28:32 +00:00
Tom Hacohen d0d6d5494b Evas textblock: Fixed a bug with format invalidation.
With the following example text: "aa<b>a <i>bbb</i> ccc", adding a </b>
at the end wouldn't cause an invalidation to happen as expected.

SVN revision: 61805
2011-07-27 11:27:25 +00:00
Tom Hacohen 0b7030a964 Evas textblock: Fix format_append's format parsing.
It took the pre-translated (tags) format which caused some things not to
work correctly when using tags.

SVN revision: 61798
2011-07-27 08:27:04 +00:00
Tom Hacohen d8ac3178b7 Evas textblock: Updated docs.
SVN revision: 61759
2011-07-26 12:48:54 +00:00
Tom Hacohen 666988aa4c Evas textblock: Fixed a bug with item visibility check.
SVN revision: 61752
2011-07-26 11:47:55 +00:00
Tom Hacohen fd0bc3b2b1 Evas textblock: Fixed invalidate_text_nodes to work with <b><i></b></i>
SVN revision: 61751
2011-07-26 11:47:51 +00:00
Tom Hacohen d042763162 Evas textblock: Fixed remove_pair and remove_matching.
They now work with <b><i></b></i> mixes.

SVN revision: 61750
2011-07-26 11:47:48 +00:00
Tom Hacohen 5b15fc2d2a Evas textblock: Use orig_format instead of _style_match_replace.
It's more correct as you won't get unwanted translations you would have
in some cases, or even worse, breaking markup get when you have synonymous
tags.

SVN revision: 61748
2011-07-26 11:47:41 +00:00
Tom Hacohen 681e4bfa8c Evas textblock: Fixed _format_append to parse tags + incomplete stuff.
Added the first step to allow <b> </b> exact matching when handling formats.
I.e making "<b>a<i>b</b>c</i>d" behave like expected.

SVN revision: 61746
2011-07-26 11:47:19 +00:00
Mike Blumenkrantz ee754de955 fixes a weird bug exposed somewhere by giant tooltips resulting in the following crash:
#0  0xb7e92786 in evas_cache_image_flush (cache=0x0) at evas_cache_image.c:1353
#1  0xb7e9192e in evas_cache_image_drop (im=0xb6aa4d38) at evas_cache_image.c:913
#2  0xb7ee3d8b in eng_image_free (data=0xb6a020c0, image=0xb6aa4d38) at evas_engine.c:383
#3  0xb7e4b8e6 in evas_object_image_free (obj=0xb7517178) at evas_object_image.c:2478
#4  0xb7e4f403 in evas_object_free (obj=0xb7517178, clean_layer=0) at evas_object_main.c:45
#5  0xb7e41c95 in evas_layer_free_objects (lay=0xb6a5d8b0) at evas_layer.c:80
#6  0xb7e42656 in evas_free (e=0xb6a98cd8) at evas_main.c:204
#7  0xb7f27ad3 in _ecore_evas_free (ee=0xb6ab18e8) at ecore_evas.c:2822
#8  0xb7f24161 in ecore_evas_free (ee=0xb6ab18e8) at ecore_evas.c:839
#9  0xb7df2f7f in _deferred_ecore_evas_free (data=0xb6ab18e8) at elm_win.c:477
#10 0x4b0fd858 in _ecore_job_event_handler (data=0x0, type=14, ev=0xb6a99c58) at ecore_job.c:131
#11 0x4b0f907e in _ecore_event_call () at ecore_events.c:693
#12 0x4b0ff93e in _ecore_main_loop_iterate_internal (once_only=0) at ecore_main.c:1750
#13 0x4b0fe195 in ecore_main_loop_begin () at ecore_main.c:848



SVN revision: 61736
2011-07-26 10:03:07 +00:00
Carsten Haitzler e413884dac fix latent onebuf code (was never used before)
SVN revision: 61684
2011-07-25 10:30:20 +00:00
Tom Hacohen 123e491079 Evas tests: Adedd a textblock test for the last bug fix.
SVN revision: 61639
2011-07-24 08:50:46 +00:00
Tom Hacohen 53fc933312 Evas textblock: Fixed updating of formats position on char_delete.
Format offsets got wrong when merging paragraphs.

SVN revision: 61638
2011-07-24 08:50:42 +00:00
Iván Briano 46969fd34a Group docs so textblock, line and polygon at least show their functions
SVN revision: 61590
2011-07-22 14:01:56 +00:00
ChunEon Park 614288feb3 evas/evas_object_image.c - reverted to previous
Sorry. Need to look more because of the pageflip. 



SVN revision: 61579
2011-07-22 06:08:04 +00:00
ChunEon Park e9ca4aa10e evas/evas_object_image - modified to keep the uv consistency with normal evas_object.
Although the uv range of normal object is be localized to the it's geometry, 

but the uv range of the image object is be localized it's image size but not geometry size. 

In that case, user should find out the objects type and set the uv value differently between normal and image

why they do that?



SVN revision: 61577
2011-07-22 05:24:16 +00:00
Tom Hacohen 5aba518db0 Evas textblock: Fixed native size calculation with relative items.
SVN revision: 61560
2011-07-21 14:04:52 +00:00
Tom Hacohen 6299cbd685 Evas textblock: Fixed some more line height calculations.
Some issues were related to SIZE_REL items and some were not.

SVN revision: 61559
2011-07-21 14:04:48 +00:00
Tom Hacohen 083095a903 Evas textblock: Fixed relative items size calculation.
Now they are calculated according to real line height, and not just line
height before this point. Furthermore, this also fixes some issues with
wrapping not being correct.

SVN revision: 61557
2011-07-21 12:53:39 +00:00
Cedric BAIL 5cbc6350ba evas: add software YUY2 colorspace converter.
NOTE: will shortly learn how to write the corresponding shader and add it soon.


SVN revision: 61548
2011-07-21 10:36:05 +00:00
Tom Hacohen 055f9996ec Evas textblock: Fixed removing of format pairs in a rare case (range).
Until now, removing the <ps> when <b><ps></b> would have left the
<b></b> intact instead of removing them when using a range delete.

SVN revision: 61530
2011-07-20 15:45:21 +00:00
Tom Hacohen 412b203b46 Evas textblock: Fixed removing of format pairs in a rare case.
Until now, removing the <ps> when <b><ps></b> would have left the <b></b>
intact instead of removing them.

SVN revision: 61529
2011-07-20 15:45:12 +00:00
Tom Hacohen bdbc3b8398 Evas textblock: Fixed &nbsp; handling.
It now translates to a real nbsp, and not just a space.

SVN revision: 61527
2011-07-20 14:13:33 +00:00
Cedric BAIL 42bda9f02c evas: fix bug when array was reallocated during walk.
SVN revision: 61523
2011-07-20 11:22:01 +00:00
Cedric BAIL f13f92ce15 evas: forgotten header.
SVN revision: 61522
2011-07-20 09:23:47 +00:00
Cedric BAIL e263bca092 evas: forgotten revert.
SVN revision: 61521
2011-07-20 09:20:53 +00:00
Cedric BAIL e18334a778 evas: better patch for preventing infinite loop.
SVN revision: 61520
2011-07-20 09:14:41 +00:00
Tom Hacohen 9f7d3f8af8 Evas tests: Added a test to verify last textblock bugfix.
SVN revision: 61505
2011-07-19 15:14:40 +00:00
Tom Hacohen 6eb5cdc681 Evas textblock: Fixed a bug when the last paragraph is empty.
SVN revision: 61504
2011-07-19 14:32:54 +00:00
Carsten Haitzler ca357bea50 fix pack_set of evas table (fix to added feature already in changelog)
SVN revision: 61501
2011-07-19 11:24:34 +00:00
Gustavo Lima Chaves f9737c3187 [evas] Fixing oopsies on text/image object docs.
Text needed an explanation and citation to the .c example and large
images explaining borders were prettyfied on html docs.



SVN revision: 61488
2011-07-18 21:45:14 +00:00
Iván Briano 094f06522a Images and more Map stuff
SVN revision: 61486
2011-07-18 21:06:56 +00:00
Tom Hacohen 50e197ecc0 Evas text: Fixed text_props_index_find and added props_cluster_next/prev.
SVN revision: 61469
2011-07-18 07:41:27 +00:00
Tom Hacohen c6a1f2caa1 Evas text: Made text_props_index_find faster.
SVN revision: 61468
2011-07-18 07:41:21 +00:00
Tom Hacohen 1fdf2c67b5 Evas textblock: Adjusted textblock_item_text struct fields.
Removed the unused per-item baseline and changed inset to Evas_Coord.

SVN revision: 61443
2011-07-17 13:42:55 +00:00
Tom Hacohen 7f37b26856 Evas textblock: Fixed inline valign.
SVN revision: 61442
2011-07-17 13:42:51 +00:00
Tom Hacohen 73a5f2277a Evas textblock: Fixed a bug in mixed wrapping mode.
SVN revision: 61440
2011-07-17 11:15:18 +00:00
Tom Hacohen 6898c688f2 Evas textblock: Fixed linegap.
SVN revision: 61438
2011-07-17 10:48:05 +00:00