diff options
author | Jan-Marek Glogowski <glogow@fbihome.de> | 2017-01-04 12:06:42 +0100 |
---|---|---|
committer | Jan-Marek Glogowski <glogow@fbihome.de> | 2017-01-17 16:08:47 +0100 |
commit | fdc612619c1c133353026166206cea18c48089a6 (patch) | |
tree | 900ab53bc8d88ed4ab4b375e8a80136401bc3145 /vcl/opengl | |
parent | 17bb38262471cf68167fa11ad875c2785f43a341 (diff) |
Refactor Scheduler to add Task class
Moves all the "task-specific" stuff into a Task class and just
keeps the "real" static Scheduler functions in the original
Scheduler class.
Change-Id: I9eb02d46e2bcf1abb06af5bab1fa0ee734d1984c
Diffstat (limited to 'vcl/opengl')
-rw-r--r-- | vcl/opengl/gdiimpl.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/vcl/opengl/gdiimpl.cxx b/vcl/opengl/gdiimpl.cxx index 61fb63df8fd7..904392644ac9 100644 --- a/vcl/opengl/gdiimpl.cxx +++ b/vcl/opengl/gdiimpl.cxx @@ -20,6 +20,7 @@ #include "openglgdiimpl.hxx" #include <vcl/gradient.hxx> +#include <vcl/idle.hxx> #include <salframe.hxx> #include "salvd.hxx" #include <basegfx/matrix/b2dhommatrixtools.hxx> @@ -54,13 +55,13 @@ public: , m_pImpl( pImpl ) { // We don't want to be swapping before we've painted. - SetPriority( SchedulerPriority::POST_PAINT ); + SetPriority( TaskPriority::POST_PAINT ); } virtual void Invoke() override { m_pImpl->doFlush(); - SetPriority( SchedulerPriority::HIGHEST ); + SetPriority( TaskPriority::HIGHEST ); Stop(); } }; @@ -150,7 +151,7 @@ void OpenGLSalGraphicsImpl::Init() maOffscreenTex.GetHeight() != GetHeight() ) { // We don't want to be swapping before we've painted. - mpFlush->SetPriority( SchedulerPriority::POST_PAINT ); + mpFlush->SetPriority( TaskPriority::POST_PAINT ); if( maOffscreenTex && // don't work to release empty textures mpContext.is() ) // valid context @@ -520,7 +521,7 @@ bool OpenGLSalGraphicsImpl::CheckOffscreenTexture() maOffscreenTex.GetHeight() != GetHeight() ) { VCL_GL_INFO( "re-size offscreen texture " << maOffscreenTex.Id() ); - mpFlush->SetPriority( SchedulerPriority::POST_PAINT ); + mpFlush->SetPriority( TaskPriority::POST_PAINT ); mpContext->ReleaseFramebuffer( maOffscreenTex ); maOffscreenTex = OpenGLTexture(); } |