diff options
author | Martin Jansa <Martin.Jansa@gmail.com> | 2014-03-27 00:43:36 +0100 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2014-04-20 10:43:30 +0200 |
commit | 38818bf223058fd5475fd460e846a1bb1f73e767 (patch) | |
tree | 23d1db5ca7a5fe6f3c19414b25c166168e7920b5 /meta-efl | |
parent | a9f5016444fbc609051323585904961a369e9515 (diff) | |
download | meta-openembedded-38818bf223058fd5475fd460e846a1bb1f73e767.tar.gz |
eve: adapt to webkit-efl changes
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-efl')
-rw-r--r-- | meta-efl/recipes-efl/e17/eve/adapt-to-webkit-efl-changes.patch | 94 | ||||
-rw-r--r-- | meta-efl/recipes-efl/e17/eve_svn.bb | 4 |
2 files changed, 97 insertions, 1 deletions
diff --git a/meta-efl/recipes-efl/e17/eve/adapt-to-webkit-efl-changes.patch b/meta-efl/recipes-efl/e17/eve/adapt-to-webkit-efl-changes.patch new file mode 100644 index 000000000..5e03f8574 --- /dev/null +++ b/meta-efl/recipes-efl/e17/eve/adapt-to-webkit-efl-changes.patch | |||
@@ -0,0 +1,94 @@ | |||
1 | WIP: just fixes the build, probably doesn't render correctly | ||
2 | |||
3 | https://trac.webkit.org/changeset/164168 | ||
4 | removed cairo.h from public headers and ewk_view_paint_contents | ||
5 | |||
6 | https://trac.webkit.org/changeset/162581 | ||
7 | removed ewk_view_pre_render methods (with whole tiled support) | ||
8 | |||
9 | https://git.enlightenment.org/core/elementary.git/commit/?id=0e465290be2016f12adcbc8c8d74645b3e6a1d9a | ||
10 | ewk_view_tiled_smart_set is gone and ewk_view_single_smart_set is ewk_view_smart_set | ||
11 | |||
12 | Index: src/bin/chrome.c | ||
13 | =================================================================== | ||
14 | --- a/src/bin/chrome.c (revision 84579) | ||
15 | +++ b/src/bin/chrome.c (working copy) | ||
16 | @@ -5,6 +5,8 @@ | ||
17 | #include <stdio.h> | ||
18 | #include <string.h> | ||
19 | |||
20 | +#include <cairo.h> | ||
21 | + | ||
22 | #include <Eina.h> | ||
23 | #include <Elementary.h> | ||
24 | |||
25 | @@ -1997,7 +1999,7 @@ | ||
26 | if (cairo_status(cairo) != CAIRO_STATUS_SUCCESS) | ||
27 | goto error_cairo_create; | ||
28 | |||
29 | - if (!ewk_view_paint_contents(priv, cairo, &rect)) | ||
30 | + if (!ewk_view_screenshot_contents_get(priv, &rect, 1)) | ||
31 | { | ||
32 | evas_object_del(img); | ||
33 | img = NULL; | ||
34 | Index: src/bin/view.c | ||
35 | =================================================================== | ||
36 | --- a/src/bin/view.c (revision 84579) | ||
37 | +++ b/src/bin/view.c (working copy) | ||
38 | @@ -335,7 +335,7 @@ | ||
39 | h *= 2; | ||
40 | |||
41 | INF("load finished, pre-render %d,%d+%dx%d at %0.2f", x, y, w, h, zoom); | ||
42 | - ewk_view_pre_render_region(view, x, y, w, h, zoom); | ||
43 | + //ewk_view_pre_render_region(view, x, y, w, h, zoom); | ||
44 | } | ||
45 | |||
46 | /* stop animators, we changed page */ | ||
47 | @@ -435,7 +435,7 @@ | ||
48 | |||
49 | INF("pre-render region %d,%d+%dx%d at %0.2f (viewport=%d,%d+%dx%d)", | ||
50 | px, py, pw, ph, zoom, x, y, w, h); | ||
51 | - ewk_view_pre_render_region(sd->base.self, px, py, pw, ph, zoom); | ||
52 | + //ewk_view_pre_render_region(sd->base.self, px, py, pw, ph, zoom); | ||
53 | } | ||
54 | |||
55 | static unsigned int | ||
56 | @@ -611,7 +611,7 @@ | ||
57 | |||
58 | sd->pan.last_move = *p; | ||
59 | |||
60 | - ewk_view_pre_render_cancel(sd->base.self); | ||
61 | + //ewk_view_pre_render_cancel(sd->base.self); | ||
62 | |||
63 | /* register function to collect samples and apply scrolls at fixed interval*/ | ||
64 | if (!sd->animator.pan) | ||
65 | @@ -816,7 +816,7 @@ | ||
66 | Evas_Coord cw, ch, vw, vh; | ||
67 | float z, zx, zy; | ||
68 | |||
69 | - ewk_view_pre_render_cancel(sd->base.self); | ||
70 | + //ewk_view_pre_render_cancel(sd->base.self); | ||
71 | |||
72 | /* remember starting point so we have a reference */ | ||
73 | sd->zoom.start.zoom = ewk_frame_page_zoom_get(frame); | ||
74 | @@ -1512,17 +1512,9 @@ | ||
75 | /* create ewk_view_single subclass, this is done only once! */ | ||
76 | static Ewk_View_Smart_Class api = EWK_VIEW_SMART_CLASS_INIT_NAME_VERSION("EWK_View_Demo"); | ||
77 | |||
78 | - /* set current and parent apis to vanilla ewk_view_single methods */ | ||
79 | - if (bs == BACKING_STORE_TILED) | ||
80 | - { | ||
81 | - ewk_view_tiled_smart_set(&api); | ||
82 | - ewk_view_tiled_smart_set(&_parent_sc); | ||
83 | - } | ||
84 | - else | ||
85 | - { | ||
86 | - ewk_view_single_smart_set(&api); | ||
87 | - ewk_view_single_smart_set(&_parent_sc); | ||
88 | - } | ||
89 | + /* set current and parent apis to vanilla ewk_view methods */ | ||
90 | + ewk_view_smart_set(&api); | ||
91 | + ewk_view_smart_set(&_parent_sc); | ||
92 | |||
93 | /* override methods we want custom behavior */ | ||
94 | api.sc.add = _view_smart_add; | ||
diff --git a/meta-efl/recipes-efl/e17/eve_svn.bb b/meta-efl/recipes-efl/e17/eve_svn.bb index 5845c2de5..869f8bfdf 100644 --- a/meta-efl/recipes-efl/e17/eve_svn.bb +++ b/meta-efl/recipes-efl/e17/eve_svn.bb | |||
@@ -12,7 +12,9 @@ COMPATIBLE_MACHINE_x86-64 = "(.*)" | |||
12 | COMPATIBLE_MACHINE_armv7a = "(.*)" | 12 | COMPATIBLE_MACHINE_armv7a = "(.*)" |
13 | 13 | ||
14 | inherit e gettext | 14 | inherit e gettext |
15 | SRC_URI = "${E_SVN}/trunk;module=${SRCNAME};protocol=http;scmdata=keep" | 15 | SRC_URI = "${E_SVN}/trunk;module=${SRCNAME};protocol=http;scmdata=keep \ |
16 | file://adapt-to-webkit-efl-changes.patch \ | ||
17 | " | ||
16 | S = "${WORKDIR}/${SRCNAME}" | 18 | S = "${WORKDIR}/${SRCNAME}" |
17 | 19 | ||
18 | do_configure_prepend() { | 20 | do_configure_prepend() { |