summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerek Foreman <derek.foreman.samsung@gmail.com>2018-10-26 20:09:37 +0900
committerHermet Park <hermetpark@gmail.com>2018-10-26 20:09:37 +0900
commitbec631aa2cb0f3edb6d277ca33f56691b2e4991f (patch)
tree50abb3603a34e0ad50989a4617a285106ff7f816
parent16bad8df79fa6df80d8f41dbfcdb329acf7e64da (diff)
evas_image: Force stacking check on non-video surface
Summary: We use this code path for native image hardware planes. Force the stacking check on those for now so planes don't accidentally occlude surfaces above them. Reviewers: Hermet Reviewed By: Hermet Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7188
-rw-r--r--src/lib/evas/canvas/evas_image_legacy.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/evas/canvas/evas_image_legacy.c b/src/lib/evas/canvas/evas_image_legacy.c
index 7f8d48693d..6fa92672d3 100644
--- a/src/lib/evas/canvas/evas_image_legacy.c
+++ b/src/lib/evas/canvas/evas_image_legacy.c
@@ -984,7 +984,11 @@ evas_object_image_video_surface_caps_get(const Evas_Object *eo_obj)
984 EVAS_IMAGE_LEGACY_API(eo_obj, 0); 984 EVAS_IMAGE_LEGACY_API(eo_obj, 0);
985 985
986 Evas_Image_Data *o = efl_data_scope_get(eo_obj, EFL_CANVAS_IMAGE_INTERNAL_CLASS); 986 Evas_Image_Data *o = efl_data_scope_get(eo_obj, EFL_CANVAS_IMAGE_INTERNAL_CLASS);
987 return (!o->video_surface ? 0 : o->pixels->video_caps); 987
988 /* The generic hardware plane code calls this function on
989 * non-video surfaces, return stacking check for those to
990 * allow them to use common video surface code */
991 return (!o->video_surface ? EVAS_VIDEO_SURFACE_STACKING_CHECK : o->pixels->video_caps);
988} 992}
989 993
990/* deprecated */ 994/* deprecated */