Bug 1213968 - Renew the surface on iOS when resuming the compositor r=kats
authorJames Willcox <snorp@snorp.net>
Mon, 12 Oct 2015 12:04:09 -0500
changeset 305244 4acc0b4c5c9fbe6a6d6519acbcc956feb1f7a0fe
parent 305243 d9b7cf2a2698c25a21ae8d9c748f1b8f13190eb6
child 305245 fab1df2c908f9c4d9e8219b56ce95bedcc60ead5
push id1001
push userraliiev@mozilla.com
push dateMon, 18 Jan 2016 19:06:03 +0000
treeherdermozilla-release@8b89261f3ac4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskats
bugs1213968
milestone44.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1213968 - Renew the surface on iOS when resuming the compositor r=kats
gfx/layers/opengl/CompositorOGL.cpp
--- a/gfx/layers/opengl/CompositorOGL.cpp
+++ b/gfx/layers/opengl/CompositorOGL.cpp
@@ -1527,17 +1527,17 @@ CompositorOGL::Pause()
   // ReleaseSurface internally calls MakeCurrent.
   gl()->ReleaseSurface();
 #endif
 }
 
 bool
 CompositorOGL::Resume()
 {
-#ifdef MOZ_WIDGET_ANDROID
+#if defined(MOZ_WIDGET_ANDROID) || defined(MOZ_WIDGET_UIKIT)
   if (!gl() || gl()->IsDestroyed())
     return false;
 
   // RenewSurface internally calls MakeCurrent.
   return gl()->RenewSurface();
 #endif
   return true;
 }