devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=2ebef8010e51fd2dd6a38f30dac42debc20a1e80

commit 2ebef8010e51fd2dd6a38f30dac42debc20a1e80
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Wed Nov 18 12:56:12 2015 -0500

    ecore-wayland: Reduce overhead for maximize/fullscreen set functions
    
    This patch just gets the state flags directly from the window rather
    than calling "get" functions to return the same parameter.
    
    @fix
    
    Signed-off-by: Chris Michael <cp.mich...@samsung.com>
---
 src/lib/ecore_wayland/ecore_wl_window.c | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/src/lib/ecore_wayland/ecore_wl_window.c 
b/src/lib/ecore_wayland/ecore_wl_window.c
index 95ff881..982dfd5 100644
--- a/src/lib/ecore_wayland/ecore_wl_window.c
+++ b/src/lib/ecore_wayland/ecore_wl_window.c
@@ -455,10 +455,9 @@ ecore_wl_window_maximized_set(Ecore_Wl_Window *win, 
Eina_Bool maximized)
    LOGFN(__FILE__, __LINE__, __FUNCTION__);
 
    EINA_SAFETY_ON_NULL_RETURN(win);
-   prev = ecore_wl_window_maximized_get(win);
 
+   prev = win->maximized;
    maximized = !!maximized;
-
    if (prev == maximized) return;
 
    if (maximized)
@@ -499,11 +498,10 @@ ecore_wl_window_fullscreen_set(Ecore_Wl_Window *win, 
Eina_Bool fullscreen)
 
    EINA_SAFETY_ON_NULL_RETURN(win);
 
-   prev = ecore_wl_window_fullscreen_get(win);
-
+   prev = win->fullscreen;
    fullscreen = !!fullscreen;
-
    if (prev == fullscreen) return;
+
    if (fullscreen)
      {
         win->type = ECORE_WL_WINDOW_TYPE_FULLSCREEN;

-- 


Reply via email to