summaryrefslogtreecommitdiff
path: root/src/lib/evas (follow)
AgeCommit message (Collapse)Author
2015-01-21warning--Daniel Zaoui
2015-01-21Evas masking: Fix major memory leakJean-Philippe Andre
The memory usage graph was going up and to the right! I was told this is always a good thing! ... maybe not this time :) Hopefully I didn't forget a case. An intense session of genlist scrolling with masks all over the place and masks of masks didn't show any glitch, crash or memory leak.
2015-01-21Evas masking: Try to reduce memory footprint a littleJean-Philippe Andre
Move some mask object pointers around to spare a few bytes of memory. Fixes T2025.
2015-01-20evas: reduce potential memory hole in Evas_Object_Protected_State.Cedric BAIL
The main difference between 1.12 and 1.13 memory foot print is actually related to this two pointer to mask. I am wondering if there is not an issue here also has we do have a duplicated pointer. We have prev_mask and mask in both cur and prev state of an Evas_Object, but only mask and prev_mask from the cur state seems to be accessed. If we can remove two pointers from those state, we should have a decent win in expedite benchmark. Hopefully 300KB to win there (Close to half the additional cost in memory).
2015-01-20evas: reorder structure to avoid structural hole.Cedric BAIL
2015-01-16Evas masking: Fix precise_is_inside for masked smart objectsJean-Philippe Andre
The flag should be set on the mask itself. Checking for (x,y) being inside the mask can be an expensive operation, so further optimization will be required.
2015-01-09evas: Fix unintentional integer overflowChris Michael
Summary: This fixes CID1261436: unintentional integer overflow @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-01-08evas:fix markup text length issueJae Yong Hwang
Summary: There was no conversion to the double quotation mark in the evas_textblock_text_utf8_to_markup function. The price of the text coming out to API and text coming out to Textblock was different as a result. As a result, Two text lengths came out differently. So, I added the exceptional treatment part in the evas_textblock_text_utf8_to_markup function. @fix Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D1853
2015-01-08[Evas, Edje] Adding of new structuresperepelits.m
Summary: There will be several methods to set orientation in edc, so we have decided to make one big vector, the main reason is that we use quaternion by default, but look_at, for example, is given as 6 coordinates. Reviewers: Hermet, cedric, raster Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D1693
2015-01-07evas textgrid - fix drawing of codepoints that are 0Carsten Haitzler (Rasterman)
this fixes artifacts if you have cells with 0 codepoints and also have underlines or strikethroughs in them. @fix
2015-01-07evas map aa - match previous fix.Carsten Haitzler (Rasterman)
this matches 83eb1aa3c2e15568c89546048d72d7cae071ee42 fix in the other map render func
2015-01-07Evas map: Fix AA with opaque imagesJean-Philippe Andre
Well... actually this is not exactly a fix. It just restores the previous behaviour, and allows AA to work. As in, it won't draw ugly black lines but properly blend to transparent. But there is still a problem: The image map render function changes the alpha flag on the source image if AA is enabled or if the map has an alpha color. This is actually wrong as images forcefully set to not have any alpha (with evas_object_image_alpha_set(0)) will then not be opaque anymore. Right now I can't think of a solution (also I don't quite follow the entire pipeline in evas map...). Changing the flag will make some opaque areas transparent. Not changing the flag will produce ugly artifacts where AA blending should happen. Fix one bug and the other appears, and vice versa. This can be tested with the example evas-map-aa and adding an alpha channel to cube1.png (with gimp for instance) but manually setting alpha to 0 in the code. Weird stuff will happen (try playing with the map and pressing I to switch to/from image mode).
2015-01-07Evas map: Kill build warnings and don't set image flagJean-Philippe Andre
Don't change a source image alpha flag at render time. It doesn't make sense at this point. Also remove unused int pa.
2015-01-07evas map - new aa map has extra overflow with line list - fix it.Carsten Haitzler (Rasterman)
this fixes a feature added in this version of efl. as above.
2015-01-07Evas masking: Fix a potential issue with pixmanJean-Philippe Andre
Untested. Just skip pixman path when there's a mask.
2015-01-07Evas masking: Fix invalid geometry after mask redrawJean-Philippe Andre
The proper geometry should be set when rendering the mask, otherwise we can't create a new surface if it changed dimensions.
2015-01-07Evas masking: Fix another set of rendering artifactsJean-Philippe Andre
2015-01-07Evas masking: Fix mask blend functions (SW engine)Jean-Philippe Andre
The selected op func was not performing the correct operation, thus producing rendering artifacts. These functions should not be used anywhere except in case of masking... which was not an available option earlier. It was doing (wrong): dst = interp(mask, src, dst) Instead of (correct): dst = dst + (1 - mask) * src NOTE: This commit also disables MMX, SSE3 & NEON implementations of pixel_mask blend operations, since they are also broken.
2015-01-07Evas masking: Implement support for map draw (SW)Jaeun Choi
2015-01-07Evas masking: Implement support for polygon draw (SW)Jaeun Choi
2015-01-07Evas masking: Implement support for line draw (SW)Jaeun Choi
Signed-off-by: Jean-Philippe Andre <jp.andre@samsung.com>
2015-01-07Evas masking: Implement event masking supportJaeun Choi
In case the clipper is a mask object, we should use precise event masking. By default precise_is_inside is not enabled because it is expensive, but it should probably be set by the application when they use masks as clippers. Signed-off-by: Jean-Philippe Andre <jp.andre@samsung.com>
2015-01-07Evas masking: Implement mask support in evas_renderJean-Philippe Andre
This implements supports for masking inside evas_render, which means: - Render the mask itself into a surface (ALPHA if possible) - Pass this mask surface to the draw context - Apply mask recursively in case a masked object is contained by another masked object. @feature
2015-01-07Evas masking: Allow setting an image object as clipperJean-Philippe Andre
The render function is not yet implemented, but this prepares the infra used to set an object other than Rectangle as a clipper. @feature
2015-01-07Evas masking: Add clip_image_[un]set functions to draw contextJean-Philippe Andre
This allows passing a mask image to the render functions. @feature
2015-01-07Evas masking: Use alpha mask in SW engine draw functionsJaeun Choi
Work done by Jaeun Choi, rebased & squashed by jpeg. This commit introduces changes to the low-level draw functions of the SW engine considering the existence of an alpha mask image. Features: - Font masking (TEXT, TEXTBLOCK), - Rectangle masking, - Image masking (all image scaling functions should be handled). The mask image itself is not yet set in the draw context (see following commits). @feature Signed-off-by: Jean-Philippe Andre <jp.andre@samsung.com>
2015-01-07[Evas: Evas_3D] Fixed bug with bounding shapes update.Dmytro Dadyka
Reviewers: cedric, Hermet Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D1851
2015-01-06Evas fonts: Fix minor deviation in RLE font renderJean-Philippe Andre
So I've discovered some weird output values after drawing some text. The destination alpha would become 0xFE even when the back buffer had a background with 0xFF alpha. Example: Dest is 0xff00ff00 (green). Color is 0xffffffff (white). Current font alpha is 170 (0xaa). --> Output was 0xFEaaFEaa instead of 0xFFaaFFaa. This is because of some slightly invalid calculation when doing the font masking (mtab[v] = 0x55 above). Indeed, MUL_256 takes alpha values in the range [1-256] and not [0-256] as was assumed.
2014-12-29Make it clear in documentation that these methods are not implemented.Andy Williams
Even so return a more meaningful value - 0 is not a member of the Enum it returns.
2014-12-25evas: fix memory leak issues in evas_object_textgrid.Srivardhan Hebbar
Summary: Calling eina_inarray_free to fix the memory leak issue in the error condition. @fix Signed-off-by: Srivardhan Hebbar <sri.hebbar@samsung.com> Reviewers: devilhorns Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D1809 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2014-12-23evas: make Evas 3d mesh is inherited from Efl.File (functions file_set and save)Bogdan Devichev
2014-12-23evas: better example of _mmap_set and resources for it are added.Bogdan Devichev
2014-12-23evas: a _mmap version of the file_set is added.Bogdan Devichev
2014-12-23evas: entry points to modules is Eina_File. Model_Common_Loader is deleted.Bogdan Devichev
2014-12-23evas: entry points to modules is new struct with Eina_file, not const char ↵Bogdan Devichev
*file.
2014-12-23evas: Evas_3D_Mesh_File_Type sank into oblivion. Changing entry point to ↵Bogdan Devichev
model_save_load. Changing API in examples.
2014-12-23evas: add lib/evas/common/evas_model_<action>.c. Functions are renamed ↵Bogdan Devichev
similar to functions in image_save_load process.
2014-12-23evas: replace and rename savers/loaders.Bogdan Devichev
2014-12-23evas: preparation of places for model_saver_loader separated from ↵Bogdan Devichev
image_saver_loader.
2014-12-23fix evas modules to never free eina module - fixes seg on shutdown in xCarsten Haitzler (Rasterman)
this fixes T1946
2014-12-23evas - handle deleted objects in pointer in list in evasCarsten Haitzler (Rasterman)
2014-12-23evas/canvas: fix doc intentation.ChunEon Park
2014-12-23evas/canvas: improve doc.ChunEon Park
2014-12-19evas/map: fix aa regression bug.ChunEon Park
2014-12-17Use NEON intrinsics for mapping instead of inline asmCarsten Haitzler (Rasterman)
Summary: Rewrite linline assembly in mapping func using NEON intrinsics. Reviewers: raster Differential Revision: https://phab.enlightenment.org/D1740
2014-12-15Evas textblock: Remove redundant magic member.Tom Hacohen
We don't use magic since moving to Eo.
2014-12-10Evas GL: Fix direct rendering with client-side rotationJean-Philippe Andre
There was a problem when checking whether the current surface is compatible with direct rendering. In case of client-side rotation (it's a flag set on the surface by the app), a surface can be directly rendered even if the rotation is not 0. But, before this patch, it was assumed that the surface was current. Which doesn't make sense because make_current is called by the pixel callback, from the application, and this happens *after* we check for direct rendering. As a consequence, it was not possible to mix directly rendered surfaces with FBO-based ones, and use client-side rotation. This patch should solve that issue.
2014-12-09Evas font: Improve RLE rounding alpha8 to alpha44Jean-Philippe Andre
This should ensure that the difference between the original pixel value and the rle4 encoded one is <= 8. The previous fix was a bit stupid as it was not taking into account the conversion a4 to a8 (which is a8 = (a4 << 4) | a4).
2014-12-08Evas font: Compress font algo should round instead of floorJean-Philippe Andre
This is an attempt at having higher quality font rendering while still using RLE-based font compression.
2014-12-04evas/gl_drm: add native surface for wayland_egl_client.Mun, Gwan-gyeong
Reviewers: zmike, devilhorns, cedric, gwanglim Reviewed By: cedric, gwanglim Subscribers: jpeg, torori, cedric Differential Revision: https://phab.enlightenment.org/D1507