Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / ozone / patches / 0008-Fix-crash-when-switching-to-console-VT-mode.patch
1 From 838bca36fa4872137bbdfed5cd5a0bae705e0bea Mon Sep 17 00:00:00 2001
2 From: Joone Hur <joone.hur@intel.com>
3 Date: Mon, 27 Oct 2014 15:22:48 -0700
4 Subject: [PATCH] Fix crash when switching to console(VT) mode
5
6 Buffer swapping should not be synchronized so that the GPU process
7 is not blocked by waiting for a frame update from Weston.
8
9 Bug: TC-341
10 ---
11  ui/gl/gl_context_egl.cc | 5 +++++
12  1 file changed, 5 insertions(+)
13
14 diff --git a/ui/gl/gl_context_egl.cc b/ui/gl/gl_context_egl.cc
15 index 2554f8c..cac515a 100644
16 --- a/ui/gl/gl_context_egl.cc
17 +++ b/ui/gl/gl_context_egl.cc
18 @@ -112,6 +112,11 @@ bool GLContextEGL::MakeCurrent(GLSurface* surface) {
19      return false;
20    }
21  
22 +#if defined(USE_OZONE)
23 +  if (!surface->IsOffscreen())
24 +    eglSwapInterval(display_, 0);
25 +#endif
26 +
27    // Set this as soon as the context is current, since we might call into GL.
28    SetRealGLApi();
29  
30 -- 
31 1.9.1
32