summaryrefslogtreecommitdiff
path: root/src/modules/evas/engines
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2018-08-30 13:19:41 +0900
committerHermet Park <hermetpark@gmail.com>2018-08-30 13:19:41 +0900
commit7313e6973e78a41b80ff863faeb5ba544bdd5818 (patch)
treeb36db0954c983de5ef0c8f2542d74baf11d3b46f /src/modules/evas/engines
parent4e1553905c78280363e0bba5dbacc36beb7fbe0b (diff)
evas_drm: Remove cserve2 support
Summary: ref T7226 Reviewers: raster, cedric, zmike, Hermet Subscribers: #reviewers, #committers Tags: #efl Maniphest Tasks: T7226 Differential Revision: https://phab.enlightenment.org/D6923
Diffstat (limited to 'src/modules/evas/engines')
-rw-r--r--src/modules/evas/engines/drm/evas_outbuf.c31
1 files changed, 4 insertions, 27 deletions
diff --git a/src/modules/evas/engines/drm/evas_outbuf.c b/src/modules/evas/engines/drm/evas_outbuf.c
index 8b87c00661..f53f9683db 100644
--- a/src/modules/evas/engines/drm/evas_outbuf.c
+++ b/src/modules/evas/engines/drm/evas_outbuf.c
@@ -1,7 +1,4 @@
1#include "evas_engine.h" 1#include "evas_engine.h"
2#ifdef EVAS_CSERVE2
3# include "evas_cs2_private.h"
4#endif
5 2
6/* FIXME: We NEED to get the color map from the VT and use that for the mask */ 3/* FIXME: We NEED to get the color map from the VT and use that for the mask */
7#define RED_MASK 0xff0000 4#define RED_MASK 0xff0000
@@ -107,12 +104,7 @@ _outbuf_free(Outbuf *ob)
107 104
108 rect = img->extended_info; 105 rect = img->extended_info;
109 106
110#ifdef EVAS_CSERVE2 107 evas_cache_image_drop(&img->cache_entry);
111 if (evas_cserve2_use_get())
112 evas_cache2_image_close(&img->cache_entry);
113 else
114#endif
115 evas_cache_image_drop(&img->cache_entry);
116 108
117 eina_rectangle_free(rect); 109 eina_rectangle_free(rect);
118 } 110 }
@@ -319,12 +311,7 @@ _outbuf_update_region_new(Outbuf *ob, int x, int y, int w, int h, int *cx, int *
319 if (!(rect = eina_rectangle_new(x, y, w, h))) 311 if (!(rect = eina_rectangle_new(x, y, w, h)))
320 return NULL; 312 return NULL;
321 313
322#ifdef EVAS_CSERVE2 314 img = (RGBA_Image *)evas_cache_image_empty(evas_common_image_cache_get());
323 if (evas_cserve2_use_get())
324 img = (RGBA_Image *)evas_cache2_image_empty(evas_common_image_cache2_get());
325 else
326#endif
327 img = (RGBA_Image *)evas_cache_image_empty(evas_common_image_cache_get());
328 315
329 if (!img) 316 if (!img)
330 { 317 {
@@ -334,12 +321,7 @@ _outbuf_update_region_new(Outbuf *ob, int x, int y, int w, int h, int *cx, int *
334 321
335 img->cache_entry.flags.alpha = ob->alpha; 322 img->cache_entry.flags.alpha = ob->alpha;
336 323
337#ifdef EVAS_CSERVE2 324 evas_cache_image_surface_alloc(&img->cache_entry, w, h);
338 if (evas_cserve2_use_get())
339 evas_cache2_image_surface_alloc(&img->cache_entry, w, h);
340 else
341#endif
342 evas_cache_image_surface_alloc(&img->cache_entry, w, h);
343 325
344 img->extended_info = rect; 326 img->extended_info = rect;
345 327
@@ -552,12 +534,7 @@ _outbuf_flush(Outbuf *ob, Tilebuf_Rect *surface_damage EINA_UNUSED, Tilebuf_Rect
552 534
553 eina_rectangle_free(rect); 535 eina_rectangle_free(rect);
554 536
555#ifdef EVAS_CSERVE2 537 evas_cache_image_drop(&img->cache_entry);
556 if (evas_cserve2_use_get())
557 evas_cache2_image_close(&img->cache_entry);
558 else
559#endif
560 evas_cache_image_drop(&img->cache_entry);
561 538
562 i++; 539 i++;
563 } 540 }