Commit Graph

4915 Commits

Author SHA1 Message Date
Tom Hacohen bdab64acae Evas textblock: Added evas_textblock_text_utf8_to_markup.
SVN revision: 66197
2011-12-14 15:04:03 +00:00
Tom Hacohen 4d61bb8329 Evas textblock: Fixed a couple of issues caused by previous commits.
SVN revision: 66194
2011-12-14 13:43:13 +00:00
Tom Hacohen 285aa1b323 Evas textblock: Updated changelog.
SVN revision: 66192
2011-12-14 13:27:18 +00:00
Tom Hacohen c856f86a1f Evas textblock: Made 'br' and 'tab' default tags.
SVN revision: 66191
2011-12-14 13:27:15 +00:00
Tom Hacohen b794e7ff8e Evas textblock: Added support for default tags.
This is useful for defining default tags that can be overridden by style.
For example <b> and <i>.

SVN revision: 66190
2011-12-14 13:27:12 +00:00
Tom Hacohen db2c0ee7e9 Evas tests: Fix textblock text according to function change.
SVN revision: 66189
2011-12-14 13:27:08 +00:00
Cedric BAIL f86908dc15 evas: use Eina_File for wbmp code and fix a potential race condition at the same time.
SVN revision: 66187
2011-12-14 11:17:09 +00:00
Cedric BAIL 54d52f9c43 evas: move space around.
SVN revision: 66185
2011-12-14 10:15:57 +00:00
Cedric BAIL b2c5fede71 evas: update ChangeLog and NEWS.
SVN revision: 66184
2011-12-14 10:03:45 +00:00
Cedric BAIL 565152cee8 evas: use Eina_File for pmaps.
SVN revision: 66183
2011-12-14 09:53:25 +00:00
Tom Hacohen ba3094581d Evas textblock: Renamed *markup_to_plain to *text_markup_to_utf8.
This should conform better to evas and what the function does.

SVN revision: 66182
2011-12-14 09:52:02 +00:00
Cedric BAIL 185ae85db4 evas: fix ico loader use of Eina_File.
SVN revision: 66181
2011-12-14 09:14:27 +00:00
Michael BOUCHAUD f3d4c1b249 evas: ooops
SVN revision: 66171
2011-12-13 17:00:43 +00:00
Michael BOUCHAUD 33eb1e5e79 evas: Add api to know if an evas_object_image could support region
SVN revision: 66170
2011-12-13 16:58:20 +00:00
Tom Hacohen c110802aa6 evas: Fixed svn detection for svn1.7
SVN revision: 66147
2011-12-13 08:53:37 +00:00
Tom Hacohen e34b9dd93c Evas linebreak: Fix wordbreak bug when there are chars < 0x0A.
The binary search used unsigned indexes which didn't work well in
that scenario (would have gotten to -1).

SVN revision: 66137
2011-12-13 07:32:56 +00:00
Carsten Haitzler 0434ce6574 * Fix grab count negative values if you do weird combinations of
press and release with multiple fingers or multiple mouse
        buttons.
        


SVN revision: 66134
2011-12-13 05:59:36 +00:00
Cedric BAIL 8b22f52e80 evas: use Eina_File for ico loader.
SVN revision: 66120
2011-12-12 17:48:53 +00:00
Tom Hacohen 4e29867a30 Evas textblock: Implemented cursor_word_start/end
SVN revision: 66119
2011-12-12 15:25:46 +00:00
Tom Hacohen f147928c84 Evas liblinebreak: Added the wordbreak support.
Will send it upstream soon. My tests worked, but they are far from
complete. Probably needs more complete testing.

SVN revision: 66118
2011-12-12 15:25:39 +00:00
Cedric BAIL f4ea278a71 evas: less warning.
SVN revision: 66115
2011-12-12 13:42:24 +00:00
Cedric BAIL 793caf7faa evas: use Eina_File for accessing BMP file.
SVN revision: 66114
2011-12-12 13:39:35 +00:00
Carsten Haitzler 3e4e9b76ab Fix rounding error in map clip bounds calculation
SVN revision: 66111
2011-12-12 08:23:24 +00:00
Carsten Haitzler b0ddea7508 only lround 2 times instead of 4 for map - minor bit of cleaner code.
SVN revision: 66108
2011-12-12 06:25:14 +00:00
Mike Blumenkrantz 5eeae75b21 fix annoying spankies
SVN revision: 66077
2011-12-10 07:21:53 +00:00
Jaehwan Kim e8a3c54734 add EAPI. Maybe it is missed.
SVN revision: 66061
2011-12-09 07:55:31 +00:00
Tom Hacohen 346e25b031 Evas textblock: Added evas_textblock_markup_to_plain.
This function converts a textblock markup to plain text.
It converts for example <br/> to \n and a lot more.

SVN revision: 66034
2011-12-08 15:12:25 +00:00
Tom Hacohen a0fa810e82 Evas: Updated NEWS file.
SVN revision: 66032
2011-12-08 13:45:09 +00:00
Tom Hacohen 4fc5a77e1d Evas: Updated changelog to include latest textblock changes.
SVN revision: 66031
2011-12-08 13:39:31 +00:00
Cedric BAIL c05f9ebabc evas: use the right message command when usefull.
SVN revision: 66030
2011-12-08 13:29:02 +00:00
Tom Hacohen 0ec467892d Evas textblock: Support self-closing formats, i.e <br/>.
Also updated tests to follow this. Using <br>, although will work, is
discouraged, please use <br/> instead.

SVN revision: 66023
2011-12-08 12:05:56 +00:00
Tom Hacohen 7f8dca2fda Evas textblock: Improve internal handling of formats.
SVN revision: 66022
2011-12-08 12:05:47 +00:00
Carsten Haitzler 70b6239ec3 disable sse3 if immintrin.h not found.
SVN revision: 65980
2011-12-07 00:10:36 +00:00
Cedric BAIL b7a86e79e0 evas: less unused warning.
SVN revision: 65963
2011-12-06 16:08:30 +00:00
Cedric BAIL dfe1ef0fc6 evas: include stdlib.h as required.
SVN revision: 65962
2011-12-06 16:07:59 +00:00
Christopher Michael 9935288eaa Evas (gl engine): Remove incorrect __UNUSED__ on paramaters that are
actually used.



SVN revision: 65928
2011-12-06 00:44:25 +00:00
Cedric BAIL 6bb99f243c evas: don't randomly move code around !
SVN revision: 65916
2011-12-05 16:50:40 +00:00
Mike Blumenkrantz 580ee6e6ac same for these
SVN revision: 65913
2011-12-05 15:39:04 +00:00
Mike Blumenkrantz ca4485f21d always have the file which includes config.h first!
SPANK SPANK SPANK cedric!


SVN revision: 65912
2011-12-05 15:38:55 +00:00
Cedric BAIL ad7e82bae0 evas: use already existing macro.
SVN revision: 65906
2011-12-05 14:32:10 +00:00
Cedric BAIL 8c2e7f7b87 evas: use eina_lock a little bit more.
SVN revision: 65904
2011-12-05 14:01:42 +00:00
Cedric BAIL 792e7bffed evas: more fine grained system detection.
SVN revision: 65903
2011-12-05 14:00:53 +00:00
Cedric BAIL 1c70650afc evas: cast as we did in eina.
SVN revision: 65902
2011-12-05 13:59:44 +00:00
Carsten Haitzler 6865d04e5e chlog++
SVN revision: 65897
2011-12-05 09:47:49 +00:00
Carsten Haitzler c75637b6bf remove warnings!
SVN revision: 65896
2011-12-05 09:26:04 +00:00
Carsten Haitzler e477ff0629 remove warning - bug ready to happen with fastpath. didnt pass
sharedlist or direct down.



SVN revision: 65895
2011-12-05 09:18:05 +00:00
Carsten Haitzler 9f5a8809c7 fix gles/egl bugs/issues in sungwoo's new patch
SVN revision: 65894
2011-12-05 09:05:04 +00:00
Carsten Haitzler 5967841988 I'm attaching a patch for the initial version of the GL Fastpath
addition to evas gl backend.

Working on different mobile devices, we've noticed that the cost of context
switch (MakeCurrent) in GL can be very expensive depending on the driver
implementation.  To minimize the poorly written driver's context switch
overhead, I've implemented a state tracking layer on top of the driver
implemented GL.

Essentially, this layer wraps all the GL/Glue(GLX/EGL) APIs and manages its own
state changes.  Internally, only one real GL context is created and logical
contexts are created every time a user requests context creation.  The logical
contexts keep track of its states and sets only the necessary states
(the ones that are different than the current ones)
when there is a MakeCurrent request.  The real MakeCurrent gets called when
there is a Surface/Window change request.

The GL library is dlopened and all the APIs are dlsym'ed and wrapped
accordingly.  All the GL functions are in evas_gl_core.{h,c}.

Here's a very simply flow of the code.
   - all the APIs are exported as function pointers (*glsym_glBegin),
     (*glsm_eglCreatContext), and etc.
   - all the native GL/Glue(GLX/EGL) APIs are dlsym'ed as _sym_glBegin,
     _sym_eglCreateContext, and etc.
   - all the fastpath APIs are implmemnted as fpgl_glBegin,
     fpgl_eglCreateContext, and etc.
   - if faspath is seletected, the exported APIs are set accordingly
     ie. glsym_glBegin = fpgl_glBegin;
   - default mode is the regular gl symbols are directly set.
     ie. glsym_glBegin = _sym_glBegin;
             
I have an Environment variable where you can set it to three different Modes

EVAS_GL_FASTPATH = 0    // Default mode. Regular GL symbols are directly loaded
EVAS_GL_FASTPATH = 1    // Fastpath mode. Takes the path described above.
EVAS_GL_FASTPATH = 2    // Wrapped mode.  All the regular GL functions are
                           wrapped once.  This can be used for various
purposes

Since all the GL symbols are now loaded in this library, I took out all
the gl symbol loading parts in the evas gl backend as you'll see in the patch.
The changes to the engine and the backend itself is pretty minor.

There are still some known issues to hammer out but I thought we're at a good
place for an initial version so that my source doesn't diverge too much.

Known Issues and To Do's
* Current GL Fastpath version doesn't support multiple threads. Instead of
  having one global real context, I would need to do it for each thread. I'll
  get on this soon.
  
  * Issues running Evas GL on certain conditions.  When running the elementary
  test (with gl engine), if you run ELMGLview test that runs in ON_DEMAND mode,
  everything works fine. BUT, when you run the ELMGLView test in ALWAYS
    mode, the subsequent elm tests shows blank screen. When you destroy the
  GLView window, everything else comes on fine.
  
  * Resource protection code.  This actually applies to Evas GL code in general
  as well. Since all the resources are shared among all the contexts that get
  created, I would like to eventually have a resource protecting mechanism that
  prevents access to resources outside of its context unless specifically
  specified.
  
  I'm attaching three files
     - evas_gl_core.h, evas_gl_core.c, fastpath.patch
     
  To get the code running...
     - copy evas_gl_core.{c,h} to src/modules/engine/gl_common/
     - apply the fastpath.patch
     - compile/install evas
     - to run with fastpath GL (ie. % EVAS_GL_FASTPATH=1 ./evasgl_sample1)



SVN revision: 65891
2011-12-05 08:54:14 +00:00
Mike Blumenkrantz 96f572f8b3 add a newline before api link
SVN revision: 65865
2011-12-04 04:29:55 +00:00
Carsten Haitzler ac4c70ab7b fix changelogs to mention release.
SVN revision: 65860
2011-12-04 01:56:31 +00:00