Blame SOURCES/video-memory-purge.patch

ab48da
From 9c0338bf22b1267059b26b3ad17033a22139c462 Mon Sep 17 00:00:00 2001
ab48da
From: Rui Matos <tiagomatos@gmail.com>
ab48da
Date: Fri, 3 Jun 2016 15:20:20 +0200
ab48da
Subject: [PATCH 1/3] main: Reload theme on loss of graphics context
ab48da
ab48da
The theme machinery uses FBOs in some cases (mainly for shadows) which
ab48da
need to be reloaded if we get a GL context lost error.
ab48da
ab48da
https://bugzilla.gnome.org/show_bug.cgi?id=739178
ab48da
---
ab48da
 js/ui/main.js | 2 ++
ab48da
 1 file changed, 2 insertions(+)
ab48da
ab48da
diff --git a/js/ui/main.js b/js/ui/main.js
ab48da
index ad95ce0..789dd69 100644
ab48da
--- a/js/ui/main.js
ab48da
+++ b/js/ui/main.js
ab48da
@@ -191,6 +191,8 @@ function _initializeUI() {
ab48da
         return true;
ab48da
     });
ab48da
 
ab48da
+    global.display.connect('gl-video-memory-purged', loadTheme);
ab48da
+
ab48da
     // Provide the bus object for gnome-session to
ab48da
     // initiate logouts.
ab48da
     EndSessionDialog.init();
ab48da
-- 
ab48da
2.7.4
ab48da
ab48da
ab48da
From fea1b97af6db2e8a237b011aa720da4c4a8b4622 Mon Sep 17 00:00:00 2001
ab48da
From: Rui Matos <tiagomatos@gmail.com>
ab48da
Date: Sun, 29 May 2016 19:42:25 +0200
ab48da
Subject: [PATCH 2/3] screenShield: Stop using an offscreen buffer for the
ab48da
 arrow actor
ab48da
ab48da
This isn't a performance critical actor and the NVIDIA driver discards
ab48da
offscreen buffers in some cases which would require us to go through
ab48da
extra hoops to handle here which isn't worth it.
ab48da
ab48da
https://bugzilla.gnome.org/show_bug.cgi?id=739178
ab48da
---
ab48da
 js/ui/screenShield.js | 1 -
ab48da
 1 file changed, 1 deletion(-)
ab48da
ab48da
diff --git a/js/ui/screenShield.js b/js/ui/screenShield.js
ab48da
index 18f5124..cbde55c 100644
ab48da
--- a/js/ui/screenShield.js
ab48da
+++ b/js/ui/screenShield.js
ab48da
@@ -349,7 +349,6 @@ const Arrow = new Lang.Class({
ab48da
     _init: function(params) {
ab48da
         this.parent(params);
ab48da
         this.x_fill = this.y_fill = true;
ab48da
-        this.set_offscreen_redirect(Clutter.OffscreenRedirect.ALWAYS);
ab48da
 
ab48da
         this._drawingArea = new St.DrawingArea();
ab48da
         this._drawingArea.connect('repaint', Lang.bind(this, this._drawArrow));
ab48da
-- 
ab48da
2.7.4
ab48da
ab48da
ab48da
From d4350a7c16f61f7efac59f3b0501668b510c12bb Mon Sep 17 00:00:00 2001
ab48da
From: Rui Matos <tiagomatos@gmail.com>
ab48da
Date: Tue, 14 Jun 2016 17:55:35 +0200
ab48da
Subject: [PATCH 3/3] screenShield: Chain up Arrow's style_changed vfunc
ab48da
ab48da
This makes style changes propagate to our child widget as they
ab48da
should.
ab48da
ab48da
https://bugzilla.gnome.org/show_bug.cgi?id=739178
ab48da
---
ab48da
 js/ui/screenShield.js | 2 ++
ab48da
 1 file changed, 2 insertions(+)
ab48da
ab48da
diff --git a/js/ui/screenShield.js b/js/ui/screenShield.js
ab48da
index cbde55c..e4c3429 100644
ab48da
--- a/js/ui/screenShield.js
ab48da
+++ b/js/ui/screenShield.js
ab48da
@@ -383,6 +383,8 @@ const Arrow = new Lang.Class({
ab48da
             this._shadowHelper = St.ShadowHelper.new(this._shadow);
ab48da
         else
ab48da
             this._shadowHelper = null;
ab48da
+
ab48da
+        this.parent();
ab48da
     },
ab48da
 
ab48da
     vfunc_paint: function() {
ab48da
-- 
ab48da
2.7.4
ab48da