summaryrefslogtreecommitdiff
path: root/src/modules/evas/engines/wayland_egl/evas_engine.c
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2016-08-17 16:21:29 -0500
committerDerek Foreman <derekf@osg.samsung.com>2016-08-17 16:21:29 -0500
commit6ce113791e9681e940c3c8aa1a57d4781dfd6c9e (patch)
treec439f09f93777d9835b00deda9a620fe28b4888e /src/modules/evas/engines/wayland_egl/evas_engine.c
parent53b6ac1d3ab97a0ec93dafe65c1e557573d3d932 (diff)
wayland_egl: Remove swap_mode from engine info
This was never set anywhere and always defaulted to 0, or AUTO
Diffstat (limited to 'src/modules/evas/engines/wayland_egl/evas_engine.c')
-rw-r--r--src/modules/evas/engines/wayland_egl/evas_engine.c37
1 files changed, 1 insertions, 36 deletions
diff --git a/src/modules/evas/engines/wayland_egl/evas_engine.c b/src/modules/evas/engines/wayland_egl/evas_engine.c
index c79bcf6..8ccc4e1 100644
--- a/src/modules/evas/engines/wayland_egl/evas_engine.c
+++ b/src/modules/evas/engines/wayland_egl/evas_engine.c
@@ -558,42 +558,7 @@ eng_setup(Evas *evas, void *info)
558 (!strcasecmp(s, "4"))) 558 (!strcasecmp(s, "4")))
559 swap_mode = MODE_QUADRUPLE; 559 swap_mode = MODE_QUADRUPLE;
560 } 560 }
561 else 561 else swap_mode = MODE_AUTO;
562 {
563// in most gl implementations - egl and glx here that we care about the TEND
564// to either swap or copy backbuffer and front buffer, but strictly that is
565// not true. technically backbuffer content is totally undefined after a swap
566// and thus you MUST re-render all of it, thus MODE_FULL
567 swap_mode = MODE_FULL;
568// BUT... reality is that lmost every implementation copies or swaps so
569// triple buffer mode can be used as it is a superset of double buffer and
570// copy (though using those explicitly is more efficient). so let's play with
571// triple buffer mdoe as a default and see.
572// re->mode = MODE_TRIPLE;
573// XXX: note - the above seems to break on some older intel chipsets and
574// drivers. it seems we CANT depend on backbuffer staying around. bugger!
575 switch (inf->swap_mode)
576 {
577 case EVAS_ENGINE_WAYLAND_EGL_SWAP_MODE_FULL:
578 swap_mode = MODE_FULL;
579 break;
580 case EVAS_ENGINE_WAYLAND_EGL_SWAP_MODE_COPY:
581 swap_mode = MODE_COPY;
582 break;
583 case EVAS_ENGINE_WAYLAND_EGL_SWAP_MODE_DOUBLE:
584 swap_mode = MODE_DOUBLE;
585 break;
586 case EVAS_ENGINE_WAYLAND_EGL_SWAP_MODE_TRIPLE:
587 swap_mode = MODE_TRIPLE;
588 break;
589 case EVAS_ENGINE_WAYLAND_EGL_SWAP_MODE_QUADRUPLE:
590 swap_mode = MODE_QUADRUPLE;
591 break;
592 default:
593 swap_mode = MODE_AUTO;
594 break;
595 }
596 }
597 562
598 if (!(re = epd->engine.data.output)) 563 if (!(re = epd->engine.data.output))
599 { 564 {