summaryrefslogtreecommitdiff
path: root/src/bench.cpp
diff options
context:
space:
mode:
authorScott Moreau <oreaus@gmail.com>2010-07-02 00:27:26 -0600
committerScott Moreau <oreaus@gmail.com>2010-07-02 00:30:32 -0600
commit0c78c12b0d826acb050651019e1e4adabd032623 (patch)
treede3cfb158dc09552405f7372e3d62163c94acb13 /src/bench.cpp
parentd7fe886bda1f336f9e71b3c6a74b25a644cbaea4 (diff)
downloadbench-0c78c12b0d826acb050651019e1e4adabd032623.tar.gz
bench-0c78c12b0d826acb050651019e1e4adabd032623.tar.bz2
Add serialization interface changes.
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