kwin/effects/glide
Martin Gräßlin 142aab2e24 Introduce an EffectsHandler::animationsSupported -> bool
Summary:
A new method to tell the effects system whether the compositor scene
is able to drive animations. E.g. on software emulation (llvmpipe) it's
better to not do any animations at all.

This information can be used by effects to adjust their behavior, e.g.
PresentWindows could skip transitions or effects can use it in their
supported check to completely disable themselves.

As a first step all scripted effects are considered to be unsupported
if animations are not supported. They inherit AnimationEffect and are
all about driving animations.

The information whether animations are supported comes from the Scene.
It's implemented in the following way:
 * XRender: animations are always supported
 * QPainter: animations are never supported
 * OpenGL: animations are supported, except for software emulation

In addition - for easier testing - there is a new env variable
KWIN_EFFECTS_FORCE_ANIMATIONS to overwrite the selection.

Reviewers: #kwin, #plasma

Subscribers: kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D2386
2016-08-15 17:38:33 +02:00
..
CMakeLists.txt Use SERVICE_TYPES parameter to kcoreaddons_desktop_to_json() 2015-12-09 23:42:45 +00:00
glide.cpp Introduce an EffectsHandler::animationsSupported -> bool 2016-08-15 17:38:33 +02:00
glide.h [effects] Allow Built-In Effects using xcbutils.h 2014-04-28 14:14:20 +02:00
glide.kcfg Use KConfigXT in Glide Effect 2012-09-14 10:39:28 +02:00
glide_config.cpp Do not register dbus service org.kde.kwin.Effects 2014-05-15 10:55:29 +02:00
glide_config.desktop SVN_SILENT made messages (.desktop file) - always resolve ours 2015-04-07 13:20:00 +00:00
glide_config.h Use KConfigXT in Glide Effect 2012-09-14 10:39:28 +02:00
glide_config.ui Fix warnings in kwin/effects/glide/glide_config.ui 2014-12-05 20:07:37 +01:00
glideconfig.kcfgc Use KConfigXT in Glide Effect 2012-09-14 10:39:28 +02:00