Commit Graph

4147 Commits

Author SHA1 Message Date
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 ab7d9bdd84 fix use of invalid program id IF viewport changed - also disable
GLERR. this can really hurt performance.



SVN revision: 64027
2011-10-12 23:22:26 +00:00
Carsten Haitzler 4d5b4b2f24 fix gl pipeline problem with textures and map and the wrong program id
being set/restored.



SVN revision: 64014
2011-10-12 10:27:17 +00:00
Carsten Haitzler 6412cc1358 fixme--
SVN revision: 64013
2011-10-12 10:15:35 +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 23df774e8d all vert shaders always highp on gles.
SVN revision: 64004
2011-10-12 02:54:06 +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
Carsten Haitzler 0bfb70e48e oops - typo.
SVN revision: 63967
2011-10-11 01:51:49 +00:00
Carsten Haitzler 7597814df2 adapt to SEC direct texture access changes for the last time.
SVN revision: 63959
2011-10-10 10:08:29 +00:00
ChunEon Park af25636ab8 evas/evas_events - trivial changes
SVN revision: 63953
2011-10-10 08:52:08 +00:00
Vincent Torri 50cfcfc323 Evas: Add GL_EET_CFLAGS tp CPPFLAGS so that Eet.h is found. Patch by JGMiller, fix ticket #874
SVN revision: 63922
2011-10-08 07:16:36 +00:00
Carsten Haitzler 2f674f7059 be quiet about the EEK.
SVN revision: 63921
2011-10-08 05:33:47 +00:00
Carsten Haitzler 6fd17b839d Commit Neil's patch reported here:
http://trac.enlightenment.org/e/ticket/880



SVN revision: 63920
2011-10-08 04:58:57 +00:00
Carsten Haitzler 4e4e7a03a4 fix cedric's nv12 shader! it worked by luck only. tex_y -> tex_c in
vert shdr



SVN revision: 63918
2011-10-08 03:04:16 +00:00
Carsten Haitzler 7c7f8803f5 try and make newgl work again... fail! why does glx hate me?
SVN revision: 63885
2011-10-06 15:05:32 +00:00
Carsten Haitzler 837165ed8a no no.. oops. i missed an error!
SVN revision: 63883
2011-10-06 13:46:06 +00:00
Carsten Haitzler bdbfbbd2d3 newgl work.. now.. why?
SVN revision: 63882
2011-10-06 13:45:14 +00:00
Carsten Haitzler 82b843d222 only use highp *IF* compiler supports it.
SVN revision: 63880
2011-10-06 13:25:18 +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
Cedric BAIL a33eccf6e2 evas: fix shader for nv12.
SVN revision: 63835
2011-10-05 10:16:25 +00:00
Carsten Haitzler 27431cacdd oh and compile script missing updates to make shd's... grrr. and nv12
shader bad!



SVN revision: 63832
2011-10-05 09:52:08 +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
Carsten Haitzler 4ddeed5933 all shaders -> use high precision not medium to avoid rounding errors.
SVN revision: 63804
2011-10-04 11:21:22 +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
Carsten Haitzler f054f04d08 bad cedric! broke gl engine!
SVN revision: 63729
2011-09-30 16:18:41 +00:00
Cedric BAIL 0d03abde6b evas: remove warning.
SVN revision: 63728
2011-09-30 15:54:26 +00:00
Cedric BAIL cc71e34616 evas: zero swizzeling code for Samsung platform.
SVN revision: 63727
2011-09-30 15:51:32 +00:00
Cedric BAIL 308cf81312 evas: correctly handle direct mapping of data for non RGBA case.
SVN revision: 63726
2011-09-30 15:43:51 +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
Jiyoun Park c231bf108b From: Jiyoun Park <jy0703.park@samsung.com>
Subject: [E-devel] [Patch] support Animation gif's disposal mode

I make patch support animation gif disposal mode.

Before, gif loader only decode & render based on previous frame. 

This patch can support "do not dispose mode" & "restore background
mode". 

So It solve after image problem of restore background mode.




SVN revision: 63716
2011-09-30 07:10: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
Cedric BAIL 442589f4ca evas: handle exif rotation information directly inside evas jpeg loader.
Patch by Jiyoun Park <jy0703.park@samsung.com>


SVN revision: 63659
2011-09-29 09:02:30 +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
Carsten Haitzler 823fa1b566 make fonts obey the same cutout rules as images.
SVN revision: 63478
2011-09-19 10:48:33 +00:00
Carsten Haitzler 9522d5b359 warning--
SVN revision: 63477
2011-09-19 10:48:11 +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
Christopher Michael 1a1248b689 Evas: Add simple .Xdefaults files parsing to get DPI.
NB: Xcb has no support (yet) for dealing with xrdb (Xresource
database), so add a simple parser to read an .Xdefaults file and get
things like xft.dpi.



SVN revision: 63297
2011-09-08 21:49:45 +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
Youness Alaoui ada2b9e072 Evas: Small fixes to clean software-sdl and software-16-sdl engines
Comparing software-sdl and software-16-sdl showed many small differences
this makes both engines' code much more alike.
The software-16-sdl was especially buggy, hopefully, this should make
it just as stable as the software-sdl engine.

SVN revision: 63248
2011-09-07 06:53:35 +00:00
Youness Alaoui efea89b471 Evas: Allow independent static compilation of software_16_sdl engine
SVN revision: 63247
2011-09-07 06:53:28 +00:00
Cedric BAIL 120306f05f evas: add YUV double buffering for OpenGL backend.
SVN revision: 63225
2011-09-06 07:56:47 +00:00
Cedric BAIL ce8904076d evas: fix alignment issue.
SVN revision: 63202
2011-09-05 15:21:23 +00:00
Cedric BAIL 35da5ff856 evas: use a tricky NULL texture.
Note: this help the driver to know that we don't it
to swizzle back the pixel from GPU format, because we
are going to replace all pixels.


SVN revision: 63201
2011-09-05 14:58:18 +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 2654b654e7 evas: fix tarball generation.
SVN revision: 63179
2011-09-04 23:19:41 +00:00
Cedric BAIL 20300dfedc evas: and now MT12 gain Open GL support.
SVN revision: 63174
2011-09-04 21:15:04 +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
Rui Seabra 639bded43a Fix build breakage.
SVN revision: 63070
2011-09-01 21:39:43 +00:00
Cedric BAIL ea61ff9379 evas: SPANK ! SPANK ! SPANK ! Tasn you forgot some engine !
Patch by Youness Alaoui <kakaroto@kakaroto.homelinux.net>.


SVN revision: 63013
2011-08-30 23:03:07 +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 5a4163f5f2 evas: use simpler format as much as possible.
SVN revision: 62975
2011-08-29 21:52:00 +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
Cedric BAIL a4601bb4b7 evas: refactorise code.
SVN revision: 62788
2011-08-25 08:28:34 +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
Carsten Haitzler 5cc90f00d9 oh my bad! i broke desktop gl compilation! bad bad bad me. spank! fix.
SVN revision: 62777
2011-08-25 05:17: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 cea7b9dddb evas: refactorize OpenGL engine.
SVN revision: 62752
2011-08-24 16:20:15 +00:00
Cedric BAIL efcceff953 evas: fix evas_object_image_data_convert.
SVN revision: 62722
2011-08-23 16:06:41 +00:00
Cedric BAIL 7ae4bd0f31 evas: add YUY2 shader to GL engine.
TODO: add NV12 and NV12T to evas.


SVN revision: 62721
2011-08-23 15:13:40 +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
Christopher Michael f7d1b738e6 Evas: Check for the presence of shm extension (in
evas_software_xcb_can_do_shm) first before trying to make calls to the
shm extension.



SVN revision: 62638
2011-08-20 22:15:44 +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
Christopher Michael 0fb55da5bc Evas: Iterating the pixmap formats from xcb_setup can be expensive,
so cache the found format for reuse so we don't have to keep iterating.



SVN revision: 62626
2011-08-20 10:59:53 +00:00
Christopher Michael 641c9c4ee8 Evas: Fix compiler warning wrt comparison of signed & unsigned.
Remove unused function.



SVN revision: 62625
2011-08-20 10:26:41 +00:00
Christopher Michael 6c477d5a0f Evas: When doing eng_output_free, even if there is no Render_Engine,
we still want to shutdown common_font & common_image anyway.



SVN revision: 62624
2011-08-20 10:19:17 +00:00
Christopher Michael 897011100f Evas: No need to 'find format for depth' everytime, just use the
buffer depth. Fix typo in error message. Add a missing
cache_image_drop call. When doing mask_set, use the proper variable
for the _create_gc function.



SVN revision: 62603
2011-08-19 22:53:04 +00:00
Carsten Haitzler 5f365281fd fix buffer over/underflow errors with jpeg mmap load. ugh. mmap adds
pains to loading.



SVN revision: 62584
2011-08-19 06:58:33 +00:00
Cedric BAIL 283e9642b5 evas: fix tarball generation.
SVN revision: 62569
2011-08-18 15:05:57 +00:00
Sebastian Dransfeld 402ff0f918 evas: Add missing return declaration
SVN revision: 62553
2011-08-18 07:35:02 +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
우승수 f34ac1e24a From: 우승수 <om101.woo@samsung.com>
Subject: [E-devel] [Patch] Map/Unmap image for zero-copy texture

this modifies the zero copy texture feature to map and unmap on get and put
data to allow the put to "flush gpu caches".



SVN revision: 62493
2011-08-16 07:06:36 +00:00
Christopher Michael 76acd92058 Evas: Fix formatting.
SVN revision: 62489
2011-08-15 20:17:18 +00:00
Tom Hacohen efd0123622 Evas tests: Fixed the cursor_content_get to comply to the bugfix.
Previous test checked the existing but broken behaviour, now it checks the
correct behaviour.

SVN revision: 62440
2011-08-14 11:26:50 +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 3277e6b5e0 evas: Fixed indentations with arbitrary files.
SVN revision: 62370
2011-08-12 03:50:57 +00:00
Carsten Haitzler 69e27edbe5 how about you actuallyl fix the code correctly rather than break it?
SVN revision: 62369
2011-08-12 02:34:34 +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
Mike Blumenkrantz 25a6b8c980 COMMITS: DO THEM PROPERLY!!!!1111
SVN revision: 62366
2011-08-11 23:18:34 +00:00
Mike Blumenkrantz 8e5ee9e2f5 COMPILE WARNINGS: FIX THEM!!!!!!11111
SVN revision: 62361
2011-08-11 21:35:17 +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
Cedric BAIL 1dc2512897 efl: remove mman as we Eina_File now.
Patch from Vincent Torri.


SVN revision: 62244
2011-08-09 09:19:25 +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
Christopher Michael f7359f74c9 Evas: Make evas xcb engine match xlib engine almost exactly.
NB: Next is to fine-tooth the ecore code.



SVN revision: 62167
2011-08-06 03:32:27 +00:00
Iván Briano d799212fa0 Box example uses eina, so link to it
SVN revision: 62143
2011-08-05 16:23:34 +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
Christopher Michael c63715e01d Evas: Fix typo in Frame_Queuing check for xcb.
SVN revision: 61991
2011-08-02 12:15:33 +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
Carsten Haitzler 7239b6894f thanks jiyoun... for finding this... silly me... spank spank me.
SVN revision: 61935
2011-08-01 07:34:05 +00:00