summaryrefslogtreecommitdiff
path: root/src/bench.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/bench.cpp')
-rw-r--r--src/bench.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/bench.cpp b/src/bench.cpp
index c918f57..8c53ffa 100644
--- a/src/bench.cpp
+++ b/src/bench.cpp
@@ -271,8 +271,17 @@ BenchScreen::limiterModeChanged (CompOption *opt)
opt->value ().i ());
}
+void
+BenchScreen::postLoad ()
+{
+ cScreen->preparePaintSetEnabled (this, mActive);
+ cScreen->donePaintSetEnabled (this, mActive);
+ gScreen->glPaintOutputSetEnabled (this, mActive);
+}
+
BenchScreen::BenchScreen (CompScreen *screen) :
PluginClassHandler<BenchScreen, CompScreen> (screen),
+ PluginStateWriter <BenchScreen> (this, screen->root ()),
cScreen (CompositeScreen::get (screen)),
gScreen (GLScreen::get (screen)),
mRrVal (0),
@@ -379,6 +388,8 @@ BenchScreen::BenchScreen (CompScreen *screen) :
BenchScreen::~BenchScreen ()
{
+ writeSerializedData ();
+
if (mActive)
{
// Restore FPS limiter mode