Jean-Philippe Andre
e112d49e0b
Evas filters: Check that program code changes before updating
...
Save the code and compare with the new one. This way we can
safely call program_set from the edje_calc functions.
2014-02-07 17:33:18 +09:00
Jean-Philippe Andre
28d469237b
Evas filters: Avoid adding multiple sources under the same name
2014-02-07 17:33:18 +09:00
Jean-Philippe Andre
8570b38dd1
Evas filters: Rename bind to source_set
...
Because that's what we call it for proxy images :)
2014-02-07 17:33:18 +09:00
Jean-Philippe Andre
2e401c2e91
Evas filters: Allocate buffer in the main loop (part 2)
...
Now the allocation is really done in the main loop.
Rendering fails, only happens in case of redraw.
2014-02-07 17:33:17 +09:00
Jean-Philippe Andre
eea049f988
Evas filters: Alloc/Dealloc buffers from the main loop only
...
This is a problem I didn't spot immediately... but with
tons of nasty consequences.
2014-02-07 17:33:17 +09:00
Jean-Philippe Andre
8062df320c
Evas filters: OpenGL support part 2.
...
This patch implements the final draw from RGBA_Image to the
OpenGL surface. We can even steal the output buffer and
redraw it quickly, without having to re-render everything
(same as in SW).
2014-02-07 17:33:17 +09:00
Jean-Philippe Andre
f007cd5665
Evas filters: Move font draw inside the filters functions
...
Since the filters will have to decide on which engine (SW, GL) to
choose from to render the font and the effects, move the font
draw call inside the filters module.
2014-02-07 17:33:17 +09:00
Jean-Philippe Andre
0135b45c12
Evas filters: OpenGL support part 1.
...
Quick and dirty solution to support the OpenGL engine:
[1] Allocate CPU buffers
[2] Render text and process all effects to these buffers
[3] Push final image as an OpenGL texture.
This patch implements [1].
2014-02-07 17:33:17 +09:00
Jean-Philippe Andre
b54eb40006
Evas filters: Optimize Text redraw with filters
...
Fix case when a proxy source has changed: need to fully render
the effect again.
2014-02-07 17:33:17 +09:00
Jean-Philippe Andre
12ddad2867
Evas filters: Reuse output buffer in Text object
...
This is the first possible optimization: save the rendered
text (since we already have the output buffer anyways), and
reuse it if the text + filter didn't change.
2014-02-07 17:33:17 +09:00
Jean-Philippe Andre
9623e1f238
Evas filters: Pass fillmode to the filters
...
I just need to actually implement them, now :)
2014-02-07 17:33:16 +09:00
Jean-Philippe Andre
f723d8af8f
Evas filters: Fix automatic buffers with Evas_Object_Text
2014-02-07 17:33:16 +09:00
Jean-Philippe Andre
22b8377255
Evas filters: Rename Text's special_effect into filter_chain
...
For consistency with Textblock.
2014-02-07 17:33:16 +09:00
Jean-Philippe Andre
a5abbf784e
Evas filters: Add basic support for clip in blend
...
Right now, clip is used only when blending RGBA surfaces.
2014-02-07 17:33:16 +09:00
Jean-Philippe Andre
0450e027e7
Evas filters: Add Eo APIs and some comments
...
The entry points on evas text are there!
2014-02-07 17:33:16 +09:00
Tom Hacohen
c7addf4083
Changed Eo class names to be consistent.
...
All the class names are now of the format: Lib_Type_Subtype_Extra.
2013-11-07 11:17:52 +00:00
Cedric Bail
2d54ae83bf
evas: force complete items rebuild on evas_object_font_font_set.
2013-11-04 15:28:16 +09:00
Cedric Bail
f4ae52ea67
evas: make mmap_set use const Eina_File.
2013-11-04 11:27:59 +09:00
Carsten Haitzler
4eb7b81925
evas - re-fix to use first, last or if item is list head on text recomp
2013-11-03 20:33:05 +09:00
Carsten Haitzler
f982f6f0a5
evas - text - only remove item from list if its in a list
...
this fixes a n eina complaint - valid as elipsis item was being
deleted and it was not in the list of items.
2013-11-02 19:35:45 +09:00
Cedric Bail
e9614a9fdd
evas: fix uninitialized use of font instance when no font is selected.
2013-10-31 11:02:28 +09:00
Cedric Bail
6bc393e740
evas: fix leak of ellipsis object in Evas_Object_Text.
2013-10-28 19:45:46 +09:00
Cedric Bail
8b01f7b06d
evas: fix possible memory leak in the ellipsis code.
2013-10-28 18:44:26 +09:00
Cedric Bail
3abf3a19f4
evas: request ellipsis from the right font.
2013-10-16 17:57:54 +09:00
Cedric Bail
44988e4798
evas: more fix for ellipsis.
...
This one fix size of the object that didn't take into account the style
of the text since we added the support of ellipsis in Evas. It also
correctly detect when we insert an ellipsis in the text to relayout
properly on resize.
2013-10-02 20:57:29 +09:00
Cedric Bail
4c572c827a
evas: we actually need to take those additional value into account.
2013-10-02 20:57:29 +09:00
Cedric Bail
3b93896e54
evas: fix Evas_Object_Text alignment with ellipsis.
2013-10-02 11:02:05 +09:00
Cedric Bail
5487b75635
evas: fix some ellipsis case.
2013-10-01 20:45:21 +09:00
Cedric Bail
2e5a0215e6
evas: reduce number of relayout of text object to the strict minimum.
2013-10-01 16:38:47 +09:00
Tom Hacohen
682c69764d
Revert "eo: libs,test,benchmarks Eo_Class -> Eo"
...
This reverts commit 1714fe93f4
.
We actually want this type, it makes things clearer.
Conflicts:
src/tests/eo/function_overrides/function_overrides_inherit2.c
src/tests/eo/function_overrides/function_overrides_simple.c
src/tests/eo/suite/eo_test_class_simple.c
2013-09-27 16:40:32 +01:00
Jérémy Zurcher
1714fe93f4
eo: libs,test,benchmarks Eo_Class -> Eo
...
Conflicts:
src/tests/eo/suite/eo_test_general.c
2013-09-27 14:01:46 +01:00
Cedric Bail
b37494503f
evas: update to new eo_parent_get/set API.
2013-09-25 13:34:18 +09:00
Jean-Philippe Andre
cafa763817
evas: Fix sigsegv after font rehint
...
If a text object is rehinted after it is deleted,
baaad things happen. Mark Evas_Object_Text as dead by
setting font to NULL.
Note the crash happened with cserve2 and maybe not in normal
cases.
2013-09-02 15:00:01 +09:00
Carsten Haitzler
4aaf857fc8
fix apparent tb item leak (definitely lost)
2013-08-27 17:20:56 +09:00
Cedric Bail
35e1ddc6f6
evas: limit resize to always be of the right size.
...
This should fix T157.
2013-08-05 17:46:37 +09:00
Cedric Bail
48b40640b5
evas: no need to call eo_data_scope_get in many case after this change.
...
Reduce CPU usage by 5% in some case (especially when the CPU is not the
limiting factor like with the GL backend).
2013-07-09 09:48:09 +09:00
Sebastian Dransfeld
336f6ec328
efl: formatting
2013-06-20 13:28:18 +02:00
Sebastian Dransfeld
51023d2d4f
evas: Keep sane name for public header
...
Evas_Common.h should be used for the public header, and rather rename
evas_common.h internal header to another name.
Sa:
Evas_Common_Header.h -> Evas_Common.h
evas_common.h -> evas_common_private.h
Shouldn't have both Evas_Common.h and evas_common.h because of case
insensitive filesystems.
2013-06-20 12:53:29 +02:00
Carsten Haitzler
c979a52553
fix bug introduced by: f1ba71147e
...
max ascent/descent are not the same as ascent and descent... get them
specifically.
2013-06-09 17:30:34 +09:00
Tom Hacohen
f2317ac875
Evas font: Fix initialization of ascent/descent for empty objects.
2013-06-07 18:09:51 +01:00
Tom Hacohen
e1cffeecef
Evas text: Removed unused variables.
2013-06-07 18:09:50 +01:00
Tom Hacohen
f1ba71147e
Evas font: Fixed line size calculation using multiple fonts.
...
Additional fixes to cc4cf77865
.
There were two problems:
1. Usage of max_ascent instead of ascent.
2. Initialization of the ascent value according to the first font,
instead of 0 (as the first font might not even be used).
2013-06-06 15:42:41 +01:00
Tom Hacohen
e81edab826
Evas font: Remove useless multiplication and division.
...
Does nothing, just looks ugly.
2013-06-06 15:42:41 +01:00
Tom Hacohen
cc4cf77865
Evas font/text: Fixed an issue with asc/desc calculation in text object.
...
Added font_int asc/desc getters in order to achieve that.
Thanks to MinSu Seo for reporting.
2013-05-10 17:48:26 +01:00
Carsten Haitzler
f8c9a8d167
revert the revert... damn you git!
...
Revert "Revert "Efl: replace eo_data_get for objects data referencing.""
This reverts commit b64a2994b3
.
2013-05-02 16:47:16 +09:00
Carsten Haitzler
b64a2994b3
Revert "Efl: replace eo_data_get for objects data referencing."
...
This reverts commit 654a3f5f94
.
2013-05-02 14:17:19 +09:00
Daniel Zaoui
654a3f5f94
Efl: replace eo_data_get for objects data referencing.
2013-05-01 10:37:08 +03:00
Cedric Bail
f1dfbc4e0e
evas: remove one useless pointer (-30KB).
2013-04-07 14:00:10 +09:00
Tom Hacohen
b7e8bb556d
Evas text: Add apparently important NULL checks.
...
Apparently obj->layer and obj->layer->evas can sometimes be NULL. It is
checked in other objects, for example, image object. Add the checks here
to "fix" a crash reported by Christopher Michael.
2013-03-26 11:09:58 +00:00
Tom Hacohen
a170683334
Change usage of eo_do_super to the new prototype.
2013-03-18 16:14:18 +00:00