diff options
author | rachytski <siarhei.rachytski@gmail.com> | 2012-11-30 11:56:20 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:47:42 +0300 |
commit | bdb3c27342f5e1c1bbf8227f2b541b61eb7fa445 (patch) | |
tree | 26113077d59795f1e45485587dbaca60bca49f21 /qt_tstfrm | |
parent | fafa57faa33e89b538dd9ebb7eb70bf417adf6b0 (diff) |
introduced ResourceManager::ThreadSlot system, and refactored code according to it.
Diffstat (limited to 'qt_tstfrm')
-rw-r--r-- | qt_tstfrm/tstwidgets.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/qt_tstfrm/tstwidgets.cpp b/qt_tstfrm/tstwidgets.cpp index ea87ed7bb8..dc114763c6 100644 --- a/qt_tstfrm/tstwidgets.cpp +++ b/qt_tstfrm/tstwidgets.cpp @@ -123,9 +123,10 @@ void GLDrawWidget::initializeGL() rmp.m_glyphCacheParams = graphics::ResourceManager::GlyphCacheParams("unicode_blocks.txt", "fonts_whitelist.txt", "fonts_blacklist.txt", - 2 * 1024 * 1024, - 1, - 0); + 2 * 1024 * 1024); + + rmp.m_threadSlotsCount = 1; + rmp.m_renderThreadsCount = 0; rmp.m_useSingleThreadedOGL = false; @@ -140,7 +141,7 @@ void GLDrawWidget::initializeGL() Drawer::Params params; params.m_resourceManager = m_resourceManager; params.m_frameBuffer = m_frameBuffer; - params.m_glyphCacheID = m_resourceManager->guiThreadGlyphCacheID(); + params.m_threadSlot = m_resourceManager->guiThreadSlot(); m_p = make_shared_ptr(new graphics::Screen(params)); |