summaryrefslogtreecommitdiff
path: root/mozilla-1577024.patch
diff options
context:
space:
mode:
authorMartin Stransky <stransky@redhat.com>2019-09-18 08:35:58 +0200
committerMartin Stransky <stransky@redhat.com>2019-09-18 08:35:58 +0200
commit6072729df195a40d98c4b378d558c075538ab7a4 (patch)
treebb67b94fd33201f61f241fd9794ff31e5ded8f0a /mozilla-1577024.patch
parentEnable Wayland cache mode control (mozbz#1577024) (diff)
downloadlibrewolf-fedora-ff-6072729df195a40d98c4b378d558c075538ab7a4.tar.gz
librewolf-fedora-ff-6072729df195a40d98c4b378d558c075538ab7a4.tar.bz2
librewolf-fedora-ff-6072729df195a40d98c4b378d558c075538ab7a4.zip
Load widget cache mode
Diffstat (limited to 'mozilla-1577024.patch')
-rw-r--r--mozilla-1577024.patch27
1 files changed, 16 insertions, 11 deletions
diff --git a/mozilla-1577024.patch b/mozilla-1577024.patch
index c7789f1..b81f103 100644
--- a/mozilla-1577024.patch
+++ b/mozilla-1577024.patch
@@ -62,7 +62,7 @@ diff -up firefox-69.0/widget/gtk/nsWaylandDisplay.h.mozilla-1577024 firefox-69.0
void WaylandDispatchDisplays();
diff -up firefox-69.0/widget/gtk/WindowSurfaceWayland.cpp.mozilla-1577024 firefox-69.0/widget/gtk/WindowSurfaceWayland.cpp
--- firefox-69.0/widget/gtk/WindowSurfaceWayland.cpp.mozilla-1577024 2019-09-17 21:09:15.820764577 +0200
-+++ firefox-69.0/widget/gtk/WindowSurfaceWayland.cpp 2019-09-17 21:09:15.822764568 +0200
++++ firefox-69.0/widget/gtk/WindowSurfaceWayland.cpp 2019-09-18 08:34:50.568111279 +0200
@@ -192,7 +192,7 @@ It owns wl_buffer object, owns WaylandDM
(which provides the DMA Buffer) and ties them together.
@@ -72,14 +72,19 @@ diff -up firefox-69.0/widget/gtk/WindowSurfaceWayland.cpp.mozilla-1577024 firefo
*/
-diff -up firefox-69.0/modules/libpref/init/all.js.old firefox-69.0/modules/libpref/init/all.js
---- firefox-69.0/modules/libpref/init/all.js.old 2019-09-17 21:14:06.794677172 +0200
-+++ firefox-69.0/modules/libpref/init/all.js 2019-09-17 21:14:33.030571836 +0200
-@@ -4807,6 +4807,7 @@ pref("widget.content.allow-gtk-dark-them
- #endif
- #ifdef MOZ_WAYLAND
- pref("widget.wayland_dmabuf_backend.enabled", false);
-+pref("widget.wayland_cache_mode", 0);
- #endif
+@@ -519,9 +519,11 @@ WindowSurfaceWayland::WindowSurfaceWayla
+ mBufferNeedsClear(false),
+ mIsMainThread(NS_IsMainThread()),
+ mNeedScaleFactorUpdate(true) {
+- for (int i = 0; i < BACK_BUFFER_NUM; i++) mBackupBuffer[i] = nullptr;
+- mRenderingCacheMode = CACHE_ALL;
+-
++ for (int i = 0; i < BACK_BUFFER_NUM; i++) {
++ mBackupBuffer[i] = nullptr;
++ }
++ mRenderingCacheMode = static_cast<RenderingCacheMode>(
++ mWaylandDisplay->GetRenderingCacheModePref());
+ }
- pref("widget.window-transforms.disabled", false);
+ WindowSurfaceWayland::~WindowSurfaceWayland() {
+diff -up firefox-69.0/widget/gtk/WindowSurfaceWayland.h.mozilla-1577024 firefox-69.0/widget/gtk/WindowSurfaceWayland.h
bgstack15