summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2017-05-08 15:01:30 -0700
committerCedric BAIL <cedric@osg.samsung.com>2017-05-08 15:01:30 -0700
commitc24d077b6a3b7b9b3c51ff98cb00bb16807be390 (patch)
treee89ccfe79a13bebbbfba441960d129756ab61306 /src
parent69d45551163953ad7ceb9461541c2734d1186d91 (diff)
cocoa: refactor cocoa backend to use generic render infrastructure.
Diffstat (limited to '')
-rw-r--r--src/modules/ecore_evas/engines/cocoa/ecore_evas_cocoa.c26
1 files changed, 2 insertions, 24 deletions
diff --git a/src/modules/ecore_evas/engines/cocoa/ecore_evas_cocoa.c b/src/modules/ecore_evas/engines/cocoa/ecore_evas_cocoa.c
index 8a6249c2fa..41f06fce3f 100644
--- a/src/modules/ecore_evas/engines/cocoa/ecore_evas_cocoa.c
+++ b/src/modules/ecore_evas/engines/cocoa/ecore_evas_cocoa.c
@@ -34,29 +34,6 @@ static Ecore_Event_Handler *ecore_evas_event_handlers[4];
34static const char *_iface_name = "opengl_cocoa"; 34static const char *_iface_name = "opengl_cocoa";
35static const int _iface_version = 1; 35static const int _iface_version = 1;
36 36
37static int
38_ecore_evas_cocoa_render(Ecore_Evas *ee)
39{
40 Eina_List *updates = NULL;
41 int rend = 0;
42
43 rend = ecore_evas_render_prepare(ee);
44
45 if (((ee->visible) && (ee->draw_ok)) ||
46 ((ee->should_be_visible) && (ee->prop.fullscreen)) ||
47 ((ee->should_be_visible) && (ee->prop.override)))
48 {
49 updates = evas_render_updates(ee->evas);
50 if (updates) evas_render_updates_free(updates);
51 }
52 else
53 evas_norender(ee->evas);
54
55 if (ee->func.fn_post_render) ee->func.fn_post_render(ee);
56
57 return (updates) ? 1 : rend;
58}
59
60static inline Ecore_Evas * 37static inline Ecore_Evas *
61_ecore_evas_cocoa_match(Ecore_Cocoa_Object *cocoa_win) 38_ecore_evas_cocoa_match(Ecore_Cocoa_Object *cocoa_win)
62{ 39{
@@ -506,7 +483,7 @@ static Ecore_Evas_Engine_Func _ecore_cocoa_engine_func =
506 NULL, 483 NULL,
507 NULL, 484 NULL,
508 485
509 _ecore_evas_cocoa_render, 486 NULL,
510 _ecore_evas_screen_geometry_get, 487 _ecore_evas_screen_geometry_get,
511 NULL, // screen_dpi_get 488 NULL, // screen_dpi_get
512 NULL, 489 NULL,
@@ -531,6 +508,7 @@ static Ecore_Evas_Engine_Func _ecore_cocoa_engine_func =
531 NULL, //fn_callback_device_mouse_in_set 508 NULL, //fn_callback_device_mouse_in_set
532 NULL, //fn_callback_device_mouse_out_set 509 NULL, //fn_callback_device_mouse_out_set
533 NULL, //fn_pointer_device_xy_get 510 NULL, //fn_pointer_device_xy_get
511 NULL, //fn_prepare
534 }; 512 };
535 513
536static Ecore_Cocoa_Window * 514static Ecore_Cocoa_Window *