platform/upstream/efl.git
9 years agoEvas masking: Implement image masking for GL engines
Jean-Philippe Andre [Mon, 24 Nov 2014 11:24:25 +0000 (20:24 +0900)]
Evas masking: Implement image masking for GL engines

9 years agoEvas masking: Implement support for map draw (SW)
Jaeun Choi [Wed, 19 Nov 2014 11:08:03 +0000 (20:08 +0900)]
Evas masking: Implement support for map draw (SW)

9 years agoEvas masking: Implement support for polygon draw (SW)
Jaeun Choi [Thu, 20 Nov 2014 05:56:36 +0000 (14:56 +0900)]
Evas masking: Implement support for polygon draw (SW)

9 years agoEvas masking: Implement support for line draw (SW)
Jaeun Choi [Thu, 13 Nov 2014 11:45:14 +0000 (20:45 +0900)]
Evas masking: Implement support for line draw (SW)

Signed-off-by: Jean-Philippe Andre <jp.andre@samsung.com>
9 years agoEvas masking: Add edje support
Jaeun Choi [Mon, 17 Nov 2014 04:16:56 +0000 (13:16 +0900)]
Evas masking: Add edje support

Signed-off-by: Jean-Philippe Andre <jp.andre@samsung.com>
9 years agoEvas masking: Implement event masking support
Jaeun Choi [Thu, 13 Nov 2014 01:50:00 +0000 (10:50 +0900)]
Evas masking: Implement event masking support

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>
9 years agoEvas masking: Implement mask support in evas_render
Jean-Philippe Andre [Thu, 13 Nov 2014 01:47:29 +0000 (10:47 +0900)]
Evas masking: Implement mask support in evas_render

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

9 years agoEvas masking: Allow setting an image object as clipper
Jean-Philippe Andre [Thu, 13 Nov 2014 01:40:16 +0000 (10:40 +0900)]
Evas masking: Allow setting an image object as clipper

The render function is not yet implemented, but this
prepares the infra used to set an object other than
Rectangle as a clipper.

@feature

9 years agoEvas masking: Add clip_image_[un]set functions to draw context
Jean-Philippe Andre [Thu, 13 Nov 2014 01:31:41 +0000 (10:31 +0900)]
Evas masking: Add clip_image_[un]set functions to draw context

This allows passing a mask image to the render functions.

@feature

9 years agoEvas masking: Use alpha mask in SW engine draw functions
Jaeun Choi [Thu, 13 Nov 2014 01:04:00 +0000 (10:04 +0900)]
Evas masking: Use alpha mask in SW engine draw functions

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>
9 years agotests: Remove file after Evas 3D save test
Jean-Philippe Andre [Wed, 7 Jan 2015 06:01:00 +0000 (15:01 +0900)]
tests: Remove file after Evas 3D save test

This should remove src/.eet and maybe src/.ply

make distcheck would fail on my machine because src/.eet
was not removed.

9 years ago[Evas: Evas_3D] Fixed bug with bounding shapes update.
Dmytro Dadyka [Wed, 7 Jan 2015 03:58:51 +0000 (12:58 +0900)]
[Evas: Evas_3D] Fixed bug with bounding shapes update.

Reviewers: cedric, Hermet

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1851

9 years agoevas/examples: do build evas_3d_shadows
ChunEon Park [Wed, 7 Jan 2015 03:04:21 +0000 (12:04 +0900)]
evas/examples: do build evas_3d_shadows

9 years ago[Evas: Evas_3D]Fixed bug with shadows and blending of vertex position
Dmytro Dadyka [Wed, 7 Jan 2015 03:00:47 +0000 (12:00 +0900)]
[Evas: Evas_3D]Fixed bug with shadows and blending of vertex position

Reviewers: cedric, Hermet

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1850

9 years agofix build when cxx is disabled
Mike Blumenkrantz [Tue, 6 Jan 2015 20:09:11 +0000 (15:09 -0500)]
fix build when cxx is disabled

9 years agoedje shadow warning--
Mike Blumenkrantz [Tue, 6 Jan 2015 19:55:54 +0000 (14:55 -0500)]
edje shadow warning--

added in c501f2ce

ref D1768

9 years agoecore-drm: Fix issue with TakeControl and ReleaseControl functions
Chris Michael [Tue, 6 Jan 2015 18:01:31 +0000 (13:01 -0500)]
ecore-drm: Fix issue with TakeControl and ReleaseControl functions

Summary: The dbus calls to TakeControl and ReleaseControl of a session
are actual Methods that need to be setup and called in order to
operate properly. As such, this commit fixes that issue by using the
proper eldbus method calls, and fixes an issue where shutting down
Enlightenment would lead to "cannot release control" error messages.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoecore-drm: Fix incorrect launcher shutdown procedure
Chris Michael [Tue, 6 Jan 2015 16:12:54 +0000 (11:12 -0500)]
ecore-drm: Fix incorrect launcher shutdown procedure

Summary: We need to clean tty handlers and close the tty Before we can
call logind_disconnect as that function ends up shuttting down our
dbus connection.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoecore-evas-drm: Perform shutdown in proper order
Chris Michael [Tue, 6 Jan 2015 16:10:44 +0000 (11:10 -0500)]
ecore-evas-drm: Perform shutdown in proper order

Summary: This fixes an incorrect order with shutdown of drm library.
Sprites are created (during init) before inputs, so they should be
shutdown After inputs are.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoeet: Remove unused variable
Chris Michael [Tue, 6 Jan 2015 14:05:37 +0000 (09:05 -0500)]
eet: Remove unused variable

Summary: This just removes an unused variable spotted during compile.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoecore_evas: fix doc for ecore_evas_pointer_warp.
Andrii Kroitor [Tue, 6 Jan 2015 11:48:33 +0000 (12:48 +0100)]
ecore_evas: fix doc for ecore_evas_pointer_warp.

Reviewers: cedric

Subscribers: cedric, reutskiy.v.v

Differential Revision: https://phab.enlightenment.org/D1815

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoedje: Edje_Edit - add Proxy to Edje_Part_Collection_Directory_Entry initializatoin.
Cedric BAIL [Tue, 6 Jan 2015 11:41:25 +0000 (12:41 +0100)]
edje: Edje_Edit - add Proxy to Edje_Part_Collection_Directory_Entry initializatoin.

Summary:
Add proxy while init Edje_Part_Collection_Directory_Entry at edje_edit_group_add and edje_edit_group_alias_add.

@fix

@fix

Reviewers: Hermet, seoz, cedric, raster

Subscribers: reutskiy.v.v

Projects: #efl

Differential Revision: https://phab.enlightenment.org/D1846

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoeet: refactoring jpeg encoding.
Cedric BAIL [Tue, 6 Jan 2015 10:42:55 +0000 (11:42 +0100)]
eet: refactoring jpeg encoding.

9 years agoeet: refactorize handling of endian.
Cedric BAIL [Tue, 6 Jan 2015 10:09:27 +0000 (11:09 +0100)]
eet: refactorize handling of endian.

9 years agoeet: use eina_swap*() function instead of custom slower one.
Cedric BAIL [Fri, 3 Jan 2014 07:20:53 +0000 (16:20 +0900)]
eet: use eina_swap*() function instead of custom slower one.

9 years agoEvas fonts: Fix minor deviation in RLE font render
Jean-Philippe Andre [Tue, 6 Jan 2015 10:15:07 +0000 (19:15 +0900)]
Evas fonts: Fix minor deviation in RLE font render

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.

9 years agoeolian-cxx: Fixed mixed inheritance between C and C++ classes
Felipe Magno de Almeida [Mon, 5 Jan 2015 20:59:09 +0000 (18:59 -0200)]
eolian-cxx: Fixed mixed inheritance between C and C++ classes

Removed genereation for Eo.Base primitive methods which segfault'ed
on parent_set function.

9 years agoeolian_cxx: Using eina::optional to handle parameters without @nonull property
Vitor Sousa [Mon, 5 Jan 2015 17:41:37 +0000 (15:41 -0200)]
eolian_cxx: Using eina::optional to handle parameters without @nonull property

9 years agoeina_cxx: Allow creating an eina::optional<T> from a type convertible to T
Vitor Sousa [Mon, 5 Jan 2015 17:35:49 +0000 (15:35 -0200)]
eina_cxx: Allow creating an eina::optional<T> from a type convertible to T

9 years agoeo_cxx: Implicit conversion from C++ wrapper to void* via address_of operator
Vitor Sousa [Mon, 5 Jan 2015 17:26:11 +0000 (15:26 -0200)]
eo_cxx: Implicit conversion from C++ wrapper to void* via address_of operator

9 years agoeolian_cxx: Fix compilation of inheritance from Eolian generated classes
Vitor Sousa [Tue, 30 Dec 2014 23:18:40 +0000 (21:18 -0200)]
eolian_cxx: Fix compilation of inheritance from Eolian generated classes

Updated the code for the "inheritance helper" functions and classes
to be in conformance with the new wrapper architecture.

Member variable "parents" of efl::eo::eo_class struct was split in two
member variables, "ancestors" and "parents", the former containing all
Eo class ancestors and the later only the direct bases.
Changed all required files accordingly.

Check to avoid using biding string when the parameter is @out now matches
any variation of "char".

Add default constructor to efl::eo::concrete in order to allow it to be
NULL initialized in the "inheritance helper" classes.

Removed conflicting parent_set member function in the efl::eo::inherit
class.

Removed the "inheritance_extension_function" generator since it is no
longer used.

9 years agoallow C++ user create new classes inheriting from Eolian generated Classes
Larry Jr [Tue, 26 Aug 2014 18:54:28 +0000 (15:54 -0300)]
allow C++ user create new classes inheriting from Eolian generated Classes

9 years agoeolian_cxx: Add implicit conversion of the returned pointer of C++ wrappers
Vitor Sousa [Tue, 23 Dec 2014 19:40:11 +0000 (17:40 -0200)]
eolian_cxx: Add implicit conversion of the returned pointer of C++ wrappers

Overloaded address-of operator for C++ Eolian wrappers for implicit converting
to any ancestor pointer type when getting the object memory address.

Added new grammars to aid the creation of the pointer wrappers
responsible of doing the implicit conversions.

Added a unit test which checks the address-of overload for arbitrary classes.
Added new .eo files to be used in it.

9 years agoeolian_cxx: Fix "dreaded diamond" inheritance problem for C++ wrappers
Vitor Sousa [Fri, 19 Dec 2014 16:34:15 +0000 (14:34 -0200)]
eolian_cxx: Fix "dreaded diamond" inheritance problem for C++ wrappers

Solved diamond inheritance problem by completely removing inheritance in
the abstract class.
All ancestors are inherited directly in the concrete class.
The algorithm that list the ancestors also avoid repetition.

Now concrete classes define methods too. This helps referring the correct
method directly by the object type (when there are methods with the same
name).

Moved the declaration and definition of constructor methods to the concrete
class, since they should not be used in derived classes.

Updated example that call "color_set".
With this model, if two ancestor classes have a method with the same name,
to call one of them from a derived class you must write the scoped name of
the member function in the wrapper.
In this case, either Evas.Object and Evas.SmartObject have a property
named "color".

Added "from_global" option to the full_name grammar too.

9 years agocxx: General C++ Eo wrapper generation improvement
Vitor Sousa [Wed, 17 Dec 2014 13:47:19 +0000 (11:47 -0200)]
cxx: General C++ Eo wrapper generation improvement

Using a new architecture in the generated files that simplify multiple
inheritance and allows the use of interface types as parameters.

No longer using a hand-crafted C++ header for eo_base.eo.
This file was added to the generation process.

Updated all files that are dependent in the hand-crafted eo_base
C++ header.

Now there is a class that contains the essentials functions of the former
eo::base wrapper and that is used to create (through inheritance) the
"concrete" classes for all Eo generated wrappers.

No longer binding any function or property that are protected, private or
legacy for now.

eolian_type_instance is now a struct with general information for the
whole type.

Added the new header file namespace_generator.hh to hold namespace
generation grammars.

Separated declaration and definition of Eo wrappers methods.

Referring for most objects by its full name (starting at the global
namespace ::) in the generated files.

Created additional helper grammars to avoid code replication.

Removed a TODO comment referring to a doubt about inheritance of
constructor methods.
Added a TODO comment regarding memory allocation for callbacks in static
member functions.

9 years agocatch exceptions in cxx wrappers and throw a eina_error
Larry Jr [Thu, 14 Aug 2014 18:20:49 +0000 (15:20 -0300)]
catch exceptions in cxx wrappers and throw a eina_error

9 years agoeolian_cxx: Fix: Using binding type for @out parameter instead of native type
Vitor Sousa [Tue, 25 Nov 2014 18:18:08 +0000 (16:18 -0200)]
eolian_cxx: Fix: Using binding type for @out parameter instead of native type

No longer reverting to the native type when the parameter has "@out"
direction.

Added "is_out" member variable to eolian_type class.
With that, generators can keep track of the direction of the parameters.
Also added helper functions "type_is_out" and "type_is_complex".

Created "to_native" functions in eo_cxx_interop.hh to convert binding types
from C++ arguments to the actual C function arguments.
Added static assertions in these functions to enforce compatibility
between the binding and the native type (Required by @out parameters).

Reworked the overload of the "to_c" function for eo::base derivated
objects. Now there is a overload that rely in the compatibility
between the native type and the wrapper, enabling a wrapper to be used as
an output parameter.

9 years agoeolian-cxx: Fixed C++ conversion for lists
Felipe Magno de Almeida [Sun, 26 Oct 2014 21:42:55 +0000 (19:42 -0200)]
eolian-cxx: Fixed C++ conversion for lists

Signed-off-by: Vitor Sousa <vitorsousasilva@gmail.com>
9 years agoadded new types in lookup table
Larry Jr [Tue, 7 Oct 2014 18:06:01 +0000 (15:06 -0300)]
added new types in lookup table

Signed-off-by: Vitor Sousa <vitorsousasilva@gmail.com>
9 years agoeolian_cxx: Fix callback handling on generated wrappers
Vitor Sousa [Wed, 19 Nov 2014 15:59:21 +0000 (13:59 -0200)]
eolian_cxx: Fix callback handling on generated wrappers

Added callbacks to the event EO_EV_DEL for deleting heap-allocated
function objects. This will enforce that the allocated memory,
necessary for maintaining these callable objects alive, is freed at
least when the underlaying Eo object is destroyed.

Functions and constructor methods are now able to have multiple
callback types.

Removed some unused generators, since they become inconsistent now that
functions are required to handle multiple callback types.

Allocating callback objects in the constructor methods instead of
delaying it until the final constructor is called.

Created some generators to avoid code repetition.

Now the generator parameters_forward_to_c replicate the behavior of the
generator parameters_list. The generator parameters_list was, then,
removed since it have a less intuitive name.

Added a TODO comment regarding the behaviour of simple not translating
callbacks that are not followed by a user data pointer.

The generator parameter_type was moved from "parameters_generator.hh" to
"type_generator.hh" for more consistency and convenience.

9 years agoeo_cxx: Fix leakage of eo objects by removing unnecessary "eo_ref"
Vitor Sousa [Tue, 11 Nov 2014 22:54:15 +0000 (20:54 -0200)]
eo_cxx: Fix leakage of eo objects by removing unnecessary "eo_ref"

Removed the call to eo_ref in the conversion from eo::base to the native
Eo* (in "to_c" function) in order to avoid eo objects being leaked.

9 years agoeolian_cxx: Fix Eolian C++ generated wrapper inconsistencies
Vitor Sousa [Tue, 11 Nov 2014 22:37:47 +0000 (20:37 -0200)]
eolian_cxx: Fix Eolian C++ generated wrapper inconsistencies

In convert.cc: Reading functions instead of implements to convert the
Eolian_Class. It avoids creation of methods that do not belong to the
class, in special it avoids calling the default constructor twice in the
generated code.

No longer generating one constructor in the C++ wrapper for each eolian
class constructor, since the correct behavior demands that all constructor
should be called. Now the wrappers have "constructor methods" that
must be called when creating a new object.

Updated test cases and examples to match the new interface. Some class
constructors and some test cases have to be removed since they were based
on the wrong assumption that constructors are mutually exclusive.

Created new generators for forwarding parameters and for looping over
the relevant parameters to the C++ wrapper executing a generic lambda.

Added a TODO comment regarding the call of constructor methods of all
base classes. Currently there is no base type with constructors, so this
situation should be discussed more.

Added a TODO comment regarding the way callback parameters are being
processed.

9 years agoeolian_cxx: Assertions to ensure C++ wrapper compatibility with Eo*
Vitor Sousa [Tue, 11 Nov 2014 15:03:59 +0000 (13:03 -0200)]
eolian_cxx: Assertions to ensure C++ wrapper compatibility with Eo*

Added static assertion in the generated header to ensure that the wrapper
have the same size of Eo*, thus grating compatibility between these types.

Added static assertion in the generated header to ensure that the wrapper
have standard layout. This should ensure correct type sizes when dealing
with inheritance.

Created a test to ensure that eo::base and the eolian wrappers have the
same size of a Eo*.

Added eolian_cxx_test_wrapper.cc to the list of test source files in
Makefile_Eolian_Cxx.am.

9 years agoeina_cxx: Using eina::eina_init in all tests cases
Vitor Sousa [Mon, 3 Nov 2014 16:26:08 +0000 (14:26 -0200)]
eina_cxx: Using eina::eina_init in all tests cases

Removed the eina_init call from the test suite main function to enforce
that each test case creates an instance of the eina::eina_init object.

Added an eina::eina_init object instanciation for each test case that
were lacking this code.

9 years agoeina_cxx: Fix eina::array cend method recursive calling itself
Vitor Sousa [Mon, 3 Nov 2014 13:47:17 +0000 (11:47 -0200)]
eina_cxx: Fix eina::array cend method recursive calling itself

@fix

9 years agoeina_cxx: Fix eina::accessor for C++ Eo wrappers
Vitor Sousa [Mon, 3 Nov 2014 13:38:17 +0000 (11:38 -0200)]
eina_cxx: Fix eina::accessor for C++ Eo wrappers

Created a specialization of the eina::accessor for C++ Eo wrappers.

Created an override of the "accessor" methods in the eina::list specialization
for Eo wrappers (in eina_list.hh). It is necessary to create accessors with the
correct type.

Created specializations of std::is_base_of to avoid compilation errors related
with _Eo_Opaque type.

Added new test cases in "eina_cxx_test_accessor.cc" to test the accessor
specialization.

Added efl::eina::eina_init to the existing test cases to correctly do the
on demand initialization required by the tests.

@fix

9 years agoecore-evas: Fix compiler warnings about inproper returns
Chris Michael [Mon, 5 Jan 2015 17:13:43 +0000 (12:13 -0500)]
ecore-evas: Fix compiler warnings about inproper returns

Summary: This fixes missing return values in functions that return
non-void

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoelua: more getopt.lua features
Daniel Kolesa [Mon, 5 Jan 2015 10:48:46 +0000 (10:48 +0000)]
elua: more getopt.lua features

Argument count limit is now supported. The source has been cleaned up and
unified so that less code repeating is done. The module is now environment
safe, not depending on specific metatable being set on strings. More callbacks
have been added and error messages are now more descriptive.

9 years agoedje: fix @since to match the next release.
Cedric BAIL [Mon, 5 Jan 2015 15:51:34 +0000 (16:51 +0100)]
edje: fix @since to match the next release.

Damn we release to fast ! Thanks davemds !

9 years agoecore_evas/wayland_shm: Set alpha of ecore_evas object if parent alpha is set
kabeer khan [Mon, 5 Jan 2015 14:12:30 +0000 (09:12 -0500)]
ecore_evas/wayland_shm: Set alpha of ecore_evas object if parent alpha is set

Summary:
Resolved FIXME ecore_evas_wayland_shm_new_internal to set alpha if parent alpha is set

Signed-off-by: kabeer khan <kabeer.khan@samsung.com>
Reviewers: devilhorns

Reviewed By: devilhorns

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1842

9 years agoecore_evas_wayland: Add null check conditions in ecore evas wayland module
vivek [Mon, 5 Jan 2015 14:09:02 +0000 (09:09 -0500)]
ecore_evas_wayland: Add null check conditions in ecore evas wayland module

Summary:
Added null check conditions to check ecore_evas pointer in various places
of ecore evas wayland common module

Signed-off-by: vivek <vivek.ellur@samsung.com>
Reviewers: devilhorns

Reviewed By: devilhorns

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1812

9 years agoecore-drm: remove duplicated code from logind and tty.
Seunghun Lee [Mon, 5 Jan 2015 14:08:27 +0000 (09:08 -0500)]
ecore-drm: remove duplicated code from logind and tty.

Summary: integrates the code used in common.

Reviewers: devilhorns

Reviewed By: devilhorns

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1796

9 years agoedje: Edje_Edit - add API for renaming of image.
Cedric BAIL [Mon, 5 Jan 2015 09:53:57 +0000 (10:53 +0100)]
edje: Edje_Edit - add API for renaming of image.

Reviewers: Hermet, raster, seoz, cedric

@feature

Subscribers: reutskiy.v.v

Projects: #efl

Differential Revision: https://phab.enlightenment.org/D1830

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoedje: Edje_Edit - remake deletion and replacing of strings
Cedric BAIL [Mon, 5 Jan 2015 09:52:46 +0000 (10:52 +0100)]
edje: Edje_Edit - remake deletion and replacing of strings

Summary: Add new function for replacing string with using eina_stringshare_replace() and change _edje_if_string_free() to setup passed string to NULL.

@fix

Reviewers: raster, Hermet, seoz, cedric

Reviewed By: cedric

Subscribers: reutskiy.v.v

Projects: #efl

Differential Revision: https://phab.enlightenment.org/D1835

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years ago[edje] refine odd lines to delete _edje_timer
Shinwoo Kim [Mon, 5 Jan 2015 04:42:52 +0000 (13:42 +0900)]
[edje] refine odd lines to delete _edje_timer

Summary: Refine odd lines to delete _edje_timer

Test Plan: Run example using edc programs to change state

Reviewers: raster, cedric, woohyun, jaehwan, Hermet

Reviewed By: Hermet

Subscribers: cedric, seoz

Differential Revision: https://phab.enlightenment.org/D1838

9 years ago[eina-cxx] fix: wrong parameter type preventing the use of copy ctor
Vinícius dos Santos Oliveira [Fri, 2 Jan 2015 20:11:07 +0000 (17:11 -0300)]
[eina-cxx] fix: wrong parameter type preventing the use of copy ctor

"Eina_Stringshare *" type is interchangeable with "const char *".
The "stealing" constructor from efl::eina::stringshare was incorrectly
using "char *" instead "const char *", preventing it from being used.

9 years agocurl usage better accounts for timeouts
zmike [Sat, 3 Jan 2015 04:21:34 +0000 (23:21 -0500)]
curl usage better accounts for timeouts

curl is dumb. it needs to poll its own fd for data, it gets confused with its own timeouts, and sometimes it forgets that it's supposed to be doing anything.

this fixes:

* connection timeout processing
* connection data processing order

also curl_multi_timeout calls are now done from a single function to handle all of this stupidness in one place

maybe backport after more testing...

9 years agoecore_con: SSL error function is waiting for Eo object not their private data.
Cedric BAIL [Tue, 30 Dec 2014 10:18:21 +0000 (11:18 +0100)]
ecore_con: SSL error function is waiting for Eo object not their private data.

9 years agoecore_con: the timer callback is waiting for the Eo object not its private data.
Cedric BAIL [Tue, 30 Dec 2014 10:17:32 +0000 (11:17 +0100)]
ecore_con: the timer callback is waiting for the Eo object not its private data.

This @fix T1962 .

9 years agoMake it clear in documentation that these methods are not implemented.
Andy Williams [Mon, 29 Dec 2014 16:54:50 +0000 (16:54 +0000)]
Make it clear in documentation that these methods are not implemented.
Even so return a more meaningful value - 0 is not a member of the Enum it returns.

9 years agoeeze: Fix unused variable build warning.
Daniel Juyung Seo [Mon, 29 Dec 2014 14:18:01 +0000 (23:18 +0900)]
eeze: Fix unused variable build warning.

lib/eeze/eeze_udev_syspath.c: In function 'eeze_udev_syspath_set_sysattr':
lib/eeze/eeze_udev_syspath.c:206:38: warning: unused parameter 'value' [-Wunused-parameter] double value)
                                                                     ^

9 years agoRevert "evas/gl_x11: set EGL_PLATFORM environment variable" as cedric wants to change it.
Daniel Juyung Seo [Mon, 29 Dec 2014 11:56:14 +0000 (20:56 +0900)]
Revert "evas/gl_x11: set EGL_PLATFORM environment variable" as cedric wants to change it.

This reverts commit 6fe870de1470239bde7fb0b78f71b882f9ad62bf.

9 years agoevas/gl_x11: set EGL_PLATFORM environment variable
MinJeong Kim [Mon, 29 Dec 2014 11:12:59 +0000 (20:12 +0900)]
evas/gl_x11: set EGL_PLATFORM environment variable

Summary:
Without EGL_PLATFORM environment variable, eglInitialize() can be
failed because egl tried to load DRM platform instead of X11 platform and it
tried to handle XDisplay pointer as a gbm_device pointer as well.
The failure seems to be occured especially if the egl was built
with DRM platform as native platform.

This revision can prevent the failure by indicating proper egl platform using
EGL_PLATFORM environment variable.

@fix

Reviewers: gwanglim, jaehwan, seoz

Reviewed By: seoz

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1828

9 years agoEdje_Edit: Add sound samples into generated code for the group.
ChunEon Park [Mon, 29 Dec 2014 02:59:53 +0000 (11:59 +0900)]
Edje_Edit: Add sound samples into generated code for the group.

Summary:
Include sound samples, that uses in programs of this group in collections block.
@fix

Reviewers: cedric, Hermet, raster, reutskiy.v.v

Projects: #efl

Differential Revision: https://phab.enlightenment.org/D1824

9 years agoevas: check for grayscale png and jpeg.
Cedric BAIL [Sun, 28 Dec 2014 21:14:05 +0000 (22:14 +0100)]
evas: check for grayscale png and jpeg.

9 years agoevas: first destroy the rectangle, then the pool.
Cedric BAIL [Sat, 27 Dec 2014 13:09:45 +0000 (14:09 +0100)]
evas: first destroy the rectangle, then the pool.

9 years agoedje/edje_edit: remove unrelated call
ChunEon Park [Fri, 26 Dec 2014 01:21:32 +0000 (10:21 +0900)]
edje/edje_edit: remove unrelated call

9 years agoedje: fix memory leak in edje_edit_source_generate.
Andrii Kroitor [Thu, 25 Dec 2014 20:57:53 +0000 (21:57 +0100)]
edje: fix memory leak in edje_edit_source_generate.

Reviewers: cedric, seoz, Hermet, raster, reutskiy.v.v

@fix

Reviewed By: reutskiy.v.v

Subscribers: cedric, reutskiy.v.v

Differential Revision: https://phab.enlightenment.org/D1821

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoedje: add tween images into generated code for the group.
Mykyta Biliavskyi [Thu, 25 Dec 2014 20:50:58 +0000 (21:50 +0100)]
edje: add tween images into generated code for the group.

Summary:
Include images, that uses as tweens in parts in Edje_Edit.
@fix

Reviewers: raster, Hermet, reutskiy.v.v, cedric

Reviewed By: reutskiy.v.v, cedric

Subscribers: cedric, reutskiy.v.v

Differential Revision: https://phab.enlightenment.org/D1819

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoevil: fix memory leak issue in evil_dirent module.
vivek [Thu, 25 Dec 2014 20:49:22 +0000 (21:49 +0100)]
evil: fix memory leak issue in evil_dirent module.

Summary:
Memory allocated to dir was not freed. so added code to free dir struct

@fix

Signed-off-by: vivek <vivek.ellur@samsung.com>
Reviewers: devilhorns

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1814

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoeina: fix memory leak issue in Eina_Value.
Srivardhan Hebbar [Thu, 25 Dec 2014 20:37:00 +0000 (21:37 +0100)]
eina: fix memory leak issue in Eina_Value.

Summary:
eina_inarray_free was not called. So calling it to fix the memory leak.

@fix

Signed-off-by: Srivardhan Hebbar <sri.hebbar@samsung.com>
Reviewers: devilhorns

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1808

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoecore: fix memory leak issues.
Srivardhan Hebbar [Thu, 25 Dec 2014 20:34:45 +0000 (21:34 +0100)]
ecore: fix memory leak issues.

Summary:
eina_inarray_new returns NULL if malloc fails. This check was not performed. So have added the check for the error case and returning NULL if any of it fails.

@fix

Signed-off-by: Srivardhan Hebbar <sri.hebbar@samsung.com>
Reviewers: devilhorns

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1807

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoefreet: pass the correct option from the user input.
vivek [Thu, 25 Dec 2014 20:32:49 +0000 (21:32 +0100)]
efreet: pass the correct option from the user input.

Summary:
Pass the correct option -f for flush

@fix

Signed-off-by: vivek <vivek.ellur@samsung.com>
Reviewers: devilhorns, englebass

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1801

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoevas: fix memory leak issues in evas_object_textgrid.
Srivardhan Hebbar [Thu, 25 Dec 2014 20:31:02 +0000 (21:31 +0100)]
evas: fix memory leak issues in evas_object_textgrid.

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>
9 years agoedje: edje_edit - add getter/setter for anti_alias attribute
Vyacheslav Reutskiy [Wed, 24 Dec 2014 11:17:03 +0000 (11:17 +0000)]
edje: edje_edit - add getter/setter for anti_alias attribute

9 years agoecore x vsync - disable ecore_x vsync daemon due to unresolved problems
Carsten Haitzler (Rasterman) [Wed, 24 Dec 2014 08:35:27 +0000 (17:35 +0900)]
ecore x vsync - disable ecore_x vsync daemon due to unresolved problems

9 years agoedje: support anti_alias option
ChunEon Park [Wed, 24 Dec 2014 07:29:49 +0000 (16:29 +0900)]
edje: support anti_alias option

set anti_alias in part section.
default is enabled.

part { name: "test";
   type: XXX;
   anti_alias: 0;
   ...
}

@feature

9 years agoedje/edje_calc: clean up code
ChunEon Park [Wed, 24 Dec 2014 05:51:03 +0000 (14:51 +0900)]
edje/edje_calc: clean up code

remove duplicated.

9 years agogitignore: don't track generated file.
Cedric BAIL [Tue, 23 Dec 2014 21:37:23 +0000 (22:37 +0100)]
gitignore: don't track generated file.

9 years agoautotools: build new evas_3d_mmap examples.
Cedric BAIL [Tue, 23 Dec 2014 21:36:36 +0000 (22:36 +0100)]
autotools: build new evas_3d_mmap examples.

9 years agoevas: make Evas 3d mesh is inherited from Efl.File (functions file_set and save)
Bogdan Devichev [Mon, 22 Dec 2014 14:16:19 +0000 (16:16 +0200)]
evas: make Evas 3d mesh is inherited from Efl.File (functions file_set and save)

9 years agoevas: better example of _mmap_set and resources for it are added.
Bogdan Devichev [Wed, 17 Dec 2014 13:48:00 +0000 (15:48 +0200)]
evas: better example of _mmap_set and resources for it are added.

9 years agoevas: a _mmap version of the file_set is added.
Bogdan Devichev [Fri, 12 Dec 2014 15:23:49 +0000 (17:23 +0200)]
evas: a _mmap version of the file_set is added.

9 years agoevas: the eet loader use eet_mmap that take an Eina_File instead of eet_open.
Bogdan Devichev [Thu, 11 Dec 2014 13:06:44 +0000 (15:06 +0200)]
evas: the eet loader use eet_mmap that take an Eina_File instead of eet_open.

9 years agoevas: entry points to modules is Eina_File. Model_Common_Loader is deleted.
Bogdan Devichev [Wed, 10 Dec 2014 16:31:20 +0000 (18:31 +0200)]
evas: entry points to modules is Eina_File. Model_Common_Loader is deleted.

9 years agoevas: entry points to modules is new struct with Eina_file, not const char *file.
Bogdan Devichev [Tue, 9 Dec 2014 15:25:01 +0000 (17:25 +0200)]
evas: entry points to modules is new struct with Eina_file, not const char *file.

9 years agoevas: ply_loader and obj_loader work with Eina_File.
Bogdan Devichev [Wed, 3 Dec 2014 10:24:03 +0000 (12:24 +0200)]
evas: ply_loader and obj_loader work with Eina_File.

9 years agoevas: test cases are changed according to changes of API in step 4. Specific logic...
Bogdan Devichev [Fri, 28 Nov 2014 16:48:35 +0000 (18:48 +0200)]
evas: test cases are changed according to changes of API in step 4. Specific logic in obj_saver is removed for standardization of API.

9 years agoevas: Evas_3D_Mesh_File_Type sank into oblivion. Changing entry point to model_save_l...
Bogdan Devichev [Thu, 27 Nov 2014 15:19:24 +0000 (17:19 +0200)]
evas: Evas_3D_Mesh_File_Type sank into oblivion. Changing entry point to model_save_load. Changing API in examples.

9 years agoevas: add lib/evas/common/evas_model_<action>.c. Functions are renamed similar to...
Bogdan Devichev [Thu, 27 Nov 2014 13:16:03 +0000 (15:16 +0200)]
evas: add lib/evas/common/evas_model_<action>.c. Functions are renamed similar to functions in image_save_load process.

9 years agoevas: replace and rename savers/loaders.
Bogdan Devichev [Thu, 27 Nov 2014 11:27:01 +0000 (13:27 +0200)]
evas: replace and rename savers/loaders.

9 years agoevas: dummies for model_saver_loader are created.
Bogdan Devichev [Thu, 4 Dec 2014 14:34:38 +0000 (16:34 +0200)]
evas: dummies for model_saver_loader are created.

9 years agoevas: preparation of places for model_saver_loader separated from image_saver_loader.
Bogdan Devichev [Wed, 26 Nov 2014 16:50:43 +0000 (18:50 +0200)]
evas: preparation of places for model_saver_loader separated from image_saver_loader.

9 years agofix evas modules to never free eina module - fixes seg on shutdown in x
Carsten Haitzler (Rasterman) [Tue, 23 Dec 2014 06:11:18 +0000 (15:11 +0900)]
fix evas modules to never free eina module - fixes seg on shutdown in x

this fixes T1946

9 years agoevas - handle deleted objects in pointer in list in evas
Carsten Haitzler (Rasterman) [Mon, 22 Dec 2014 13:14:22 +0000 (22:14 +0900)]
evas - handle deleted objects in pointer in list in evas

9 years agoevas/canvas: fix doc intentation.
ChunEon Park [Tue, 23 Dec 2014 01:44:02 +0000 (10:44 +0900)]
evas/canvas: fix doc intentation.

9 years agoevas/canvas: improve doc.
ChunEon Park [Tue, 23 Dec 2014 01:40:30 +0000 (10:40 +0900)]
evas/canvas: improve doc.

9 years agoeina: add an example to demonstrate different eina insert and sort functions.
Srivardhan Hebbar [Mon, 22 Dec 2014 14:08:41 +0000 (15:08 +0100)]
eina: add an example to demonstrate different eina insert and sort functions.

Summary:
While going through eina for understanding, wrote  a program to understand
he differences between different eina inarray functions. Thought, this might
be useful for others too, so adding the same.

Signed-off-by: Srivardhan Hebbar <sri.hebbar@samsung.com>
Reviewers: devilhorns

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1803

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoeeze: add null check condition in eeze scanner module.
vivek [Mon, 22 Dec 2014 14:05:28 +0000 (15:05 +0100)]
eeze: add null check condition in eeze scanner module.

Summary:
Add null check condition for dev calloc in eeze scanner module
@fix

Signed-off-by: vivek <vivek.ellur@samsung.com>
Reviewers: devilhorns, cedric

Reviewed By: cedric

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1804

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoEvas GL: Try harder to find a matching config for GLESv1
Jean-Philippe Andre [Mon, 22 Dec 2014 13:08:24 +0000 (22:08 +0900)]
Evas GL: Try harder to find a matching config for GLESv1

If MSAA was requested, it is very likely that no config was
found (depending on the driver), so we'll try again without
MSAA. Yeah, this might not look very smooth but it should be
better that failing at eglMakeCurrent.