瀏覽代碼

Added Qt patch for retina mac redraw issues.

Related to #10
Tobias Hieta 8 年之前
父節點
當前提交
7ff17952f8
共有 2 個文件被更改,包括 21 次插入1 次删除
  1. 16 0
      qt-patches/0005-qtwebengine-increase-tiles-buffer.patch
  2. 5 1
      qt-patches/README.md

+ 16 - 0
qt-patches/0005-qtwebengine-increase-tiles-buffer.patch

@@ -0,0 +1,16 @@
+diff --git a/qtwebengine/src/3rdparty/chromium/content/renderer/gpu/compositor_output_surface.cc b/qtwebengine/src/3rdparty/chromium/content/renderer/gpu/compositor_output_surface.cc
+index 76998d6..0e80cef 100644
+--- a/qtwebengine/src/3rdparty/chromium/content/renderer/gpu/compositor_output_surface.cc
++++ b/qtwebengine/src/3rdparty/chromium/content/renderer/gpu/compositor_output_surface.cc
+@@ -86,9 +86,9 @@ bool CompositorOutputSurface::BindToClient(
+   if (!context_provider()) {
+     // Without a GPU context, the memory policy otherwise wouldn't be set.
+     client->SetMemoryPolicy(cc::ManagedMemoryPolicy(
+-        128 * 1024 * 1024,
++        256 * 1024 * 1024,
+         gpu::MemoryAllocation::CUTOFF_ALLOW_NICE_TO_HAVE,
+-        base::SharedMemory::GetHandleLimit() / 3));
++        cc::ManagedMemoryPolicy::kDefaultNumResourcesLimit));
+   }
+ 
+   return true;

+ 5 - 1
qt-patches/README.md

@@ -11,4 +11,8 @@ In this directory we store all patches against Qt that is required by konvergo.
   Without this one the UI will be rendered in the upper left corner way to small. Has not been submitted
   upstream since it enables a feature that was intentionally disabled in desktop versions of Qt.
 * 0004-qtwebengine-transparency-window-creation.patch - Fixes a bug in patch 0001. Will be included at the same
-  time as patch 0001.
+  time as patch 0001.
+* 0005-qtwebengine-increase-tiles-buffer.patch - Fixes a bug on Retina mac's that could cause redraw issues.
+  The problem here was that Chromium falls back to shared memory for texture transfer because we are using 
+  incompatible OpenGL contexts between Qt and Chromium. That caused the shared memory buffer count for textures
+  to overflow. This patch increases that buffer count.