summaryrefslogtreecommitdiff
path: root/src/lib/evas/include/evas_filter.h
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2014-01-23 16:54:50 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2014-02-07 17:33:17 +0900
commit2e401c2e912c78d57a9b1805d9adf1bfac69d7e0 (patch)
tree97e048afc2ce7bfa2f0cd3a7b793bc9f68393d37 /src/lib/evas/include/evas_filter.h
parenteea049f988c3093c4859ff3a877e27b9e4aa0441 (diff)
Evas filters: Allocate buffer in the main loop (part 2)
Now the allocation is really done in the main loop. Rendering fails, only happens in case of redraw.
Diffstat (limited to '')
-rw-r--r--src/lib/evas/include/evas_filter.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/lib/evas/include/evas_filter.h b/src/lib/evas/include/evas_filter.h
index 7163d770fe..9de6532865 100644
--- a/src/lib/evas/include/evas_filter.h
+++ b/src/lib/evas/include/evas_filter.h
@@ -97,7 +97,7 @@ Evas_Object *evas_filter_program_proxy_source_get(Evas_Filter_Progra
97void evas_filter_context_proxy_render_all(Evas_Filter_Context *ctx, Eo *eo_obj, Eina_Bool do_async); 97void evas_filter_context_proxy_render_all(Evas_Filter_Context *ctx, Eo *eo_obj, Eina_Bool do_async);
98 98
99/* Filter context (low level) */ 99/* Filter context (low level) */
100Evas_Filter_Context *evas_filter_context_new(Evas_Public_Data *evas); 100Evas_Filter_Context *evas_filter_context_new(Evas_Public_Data *evas, Eina_Bool async);
101void evas_filter_context_destroy(Evas_Filter_Context *ctx); 101void evas_filter_context_destroy(Evas_Filter_Context *ctx);
102void evas_filter_context_post_run_callback_set(Evas_Filter_Context *ctx, Evas_Filter_Cb cb, void *data); 102void evas_filter_context_post_run_callback_set(Evas_Filter_Context *ctx, Evas_Filter_Cb cb, void *data);
103#define evas_filter_context_autodestroy(ctx) evas_filter_context_post_run_callback_set(ctx, ((Evas_Filter_Cb) evas_filter_context_destroy), ctx) 103#define evas_filter_context_autodestroy(ctx) evas_filter_context_post_run_callback_set(ctx, ((Evas_Filter_Cb) evas_filter_context_destroy), ctx)
@@ -105,16 +105,11 @@ Eina_Bool evas_filter_context_buffers_allocate_all(Evas_Filter_Co
105 105
106int evas_filter_buffer_empty_new(Evas_Filter_Context *ctx, Eina_Bool alpha_only); 106int evas_filter_buffer_empty_new(Evas_Filter_Context *ctx, Eina_Bool alpha_only);
107int evas_filter_buffer_image_new(Evas_Filter_Context *ctx, RGBA_Image *image); 107int evas_filter_buffer_image_new(Evas_Filter_Context *ctx, RGBA_Image *image);
108//int evas_filter_buffer_data_new(Evas_Filter_Context *ctx, void *data, int w, int h, Eina_Bool alpha_only);
109#define evas_filter_buffer_alloc_new(ctx, w, h, a) evas_filter_buffer_data_new(ctx, NULL, w, h, a)
110void *evas_filter_buffer_backing_get(Evas_Filter_Context *ctx, int bufid); 108void *evas_filter_buffer_backing_get(Evas_Filter_Context *ctx, int bufid);
111void *evas_filter_buffer_backing_steal(Evas_Filter_Context *ctx, int bufid); 109void *evas_filter_buffer_backing_steal(Evas_Filter_Context *ctx, int bufid);
112Eina_Bool evas_filter_buffer_backing_release(Evas_Filter_Context *ctx, void *stolen_buffer); 110Eina_Bool evas_filter_buffer_backing_release(Evas_Filter_Context *ctx, void *stolen_buffer);
113 111
114// Do not use 112Eina_Bool evas_filter_run(Evas_Filter_Context *ctx);
115EINA_DEPRECATED Eina_Bool evas_filter_buffer_data_set(Evas_Filter_Context *ctx, int bufid, void *data, int w, int h, Eina_Bool alpha_only);
116
117Eina_Bool evas_filter_run(Evas_Filter_Context *ctx, Eina_Bool do_async);
118 113
119Eina_Bool evas_filter_font_draw(Evas_Filter_Context *ctx, void *draw_context, int bufid, Evas_Font_Set *font, int x, int y, Evas_Text_Props *text_props, Eina_Bool do_async); 114Eina_Bool evas_filter_font_draw(Evas_Filter_Context *ctx, void *draw_context, int bufid, Evas_Font_Set *font, int x, int y, Evas_Text_Props *text_props, Eina_Bool do_async);
120Eina_Bool evas_filter_target_set(Evas_Filter_Context *ctx, void *draw_context, void *surface, int x, int y); 115Eina_Bool evas_filter_target_set(Evas_Filter_Context *ctx, void *draw_context, void *surface, int x, int y);