summaryrefslogtreecommitdiff
path: root/src/modules/evas/engines/gl_drm/evas_outbuf.c
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2015-06-03 14:30:10 -0400
committerChris Michael <cp.michael@samsung.com>2015-06-05 10:00:44 -0400
commit47a2602af7554c8876ad078bc49d029a292aa715 (patch)
tree95f80cbae66e9a2885b282fb92e119e0bfe1e750 /src/modules/evas/engines/gl_drm/evas_outbuf.c
parent354fd6f67b9d4069bfcf26c1899183f644e429a5 (diff)
evas-gl-drm: Readd support for pre_swap/post_swap callbacks
Summary: The pre/post swap callbacks were forgotten when doing the engine rewrite, so readd them @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to '')
-rw-r--r--src/modules/evas/engines/gl_drm/evas_outbuf.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/modules/evas/engines/gl_drm/evas_outbuf.c b/src/modules/evas/engines/gl_drm/evas_outbuf.c
index 124a3563a3..4365efe237 100644
--- a/src/modules/evas/engines/gl_drm/evas_outbuf.c
+++ b/src/modules/evas/engines/gl_drm/evas_outbuf.c
@@ -214,7 +214,7 @@ evas_outbuf_new(Evas_Engine_Info_GL_Drm *info, int w, int h, Render_Engine_Swap_
214 ob->depth = info->info.depth; 214 ob->depth = info->info.depth;
215 ob->rotation = info->info.rotation; 215 ob->rotation = info->info.rotation;
216 ob->destination_alpha = info->info.destination_alpha; 216 ob->destination_alpha = info->info.destination_alpha;
217 ob->vsync = info->info.vsync; 217 /* ob->vsync = info->info.vsync; */
218 ob->gbm = info->info.gbm; 218 ob->gbm = info->info.gbm;
219 ob->surface = info->info.surface; 219 ob->surface = info->info.surface;
220 ob->swap_mode = swap_mode; 220 ob->swap_mode = swap_mode;
@@ -528,8 +528,8 @@ evas_outbuf_flush(Outbuf *ob, Tilebuf_Rect *rects EINA_UNUSED, Evas_Render_Mode
528 ob->vsync = 1; 528 ob->vsync = 1;
529 } 529 }
530 530
531 /* if (ob->info->callback.pre_swap) */ 531 if (ob->info->callback.pre_swap)
532 /* ob->info->callback.pre_swap(ob->info->callback.data, ob->evas); */ 532 ob->info->callback.pre_swap(ob->info->callback.data, ob->evas);
533 533
534// TODO: Check eglSwapBuffersWithDamage for gl_drm and apply 534// TODO: Check eglSwapBuffersWithDamage for gl_drm and apply
535#if 0 535#if 0
@@ -592,8 +592,8 @@ evas_outbuf_flush(Outbuf *ob, Tilebuf_Rect *rects EINA_UNUSED, Evas_Render_Mode
592#endif 592#endif
593 eglSwapBuffers(ob->egl.disp, ob->egl.surface[0]); 593 eglSwapBuffers(ob->egl.disp, ob->egl.surface[0]);
594 594
595 /* if (ob->info->callback.post_swap) */ 595 if (ob->info->callback.post_swap)
596 /* ob->info->callback.post_swap(ob->info->callback.data, ob->evas); */ 596 ob->info->callback.post_swap(ob->info->callback.data, ob->evas);
597 597
598 //Flush GL Surface data to Framebuffer 598 //Flush GL Surface data to Framebuffer
599 _evas_outbuf_buffer_swap(ob, NULL, 0); 599 _evas_outbuf_buffer_swap(ob, NULL, 0);