mirror of
				https://github.com/JakubMelka/PDF4QT.git
				synced 2025-06-05 21:59:17 +02:00 
			
		
		
		
	Issue #10: Improve thumbnail performance
This commit is contained in:
		| @@ -1329,7 +1329,7 @@ void PDFDrawWidgetProxy::updateRenderer(bool useOpenGL, const QSurfaceFormat& su | |||||||
| { | { | ||||||
|     m_useOpenGL = useOpenGL; |     m_useOpenGL = useOpenGL; | ||||||
|     m_surfaceFormat = surfaceFormat; |     m_surfaceFormat = surfaceFormat; | ||||||
|     m_rasterizer->reset(useOpenGL, surfaceFormat); |     m_rasterizer->reset(useOpenGL && ENABLE_OPENGL_FOR_THUMBNAILS, surfaceFormat); | ||||||
| } | } | ||||||
|  |  | ||||||
| void PDFDrawWidgetProxy::prefetchPages(PDFInteger pageIndex) | void PDFDrawWidgetProxy::prefetchPages(PDFInteger pageIndex) | ||||||
|   | |||||||
| @@ -471,6 +471,8 @@ private: | |||||||
|         constexpr inline T bound(T value) { return qBound(min, value, max); } |         constexpr inline T bound(T value) { return qBound(min, value, max); } | ||||||
|     }; |     }; | ||||||
|  |  | ||||||
|  |     static constexpr bool ENABLE_OPENGL_FOR_THUMBNAILS = false; | ||||||
|  |  | ||||||
|     /// Flag, disables the update |     /// Flag, disables the update | ||||||
|     bool m_updateDisabled; |     bool m_updateDisabled; | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user