summaryrefslogtreecommitdiff
path: root/src/guichan/basiccontainer.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-11-06 21:13:16 +0300
committerAndrei Karas <akaras@inbox.ru>2012-11-07 12:46:08 +0300
commitd812d9fac7bae4eff66a5ce8275be19d0ca77a32 (patch)
tree7f9619d23a44202a76282849bb1284773302309f /src/guichan/basiccontainer.cpp
parent1bcaac517036751a8fee9ff3d6561f5866e6969e (diff)
downloadManaVerse-d812d9fac7bae4eff66a5ce8275be19d0ca77a32.tar.gz
ManaVerse-d812d9fac7bae4eff66a5ce8275be19d0ca77a32.tar.bz2
ManaVerse-d812d9fac7bae4eff66a5ce8275be19d0ca77a32.tar.xz
ManaVerse-d812d9fac7bae4eff66a5ce8275be19d0ca77a32.zip
Add own profiler and profiler info to some code.
Diffstat (limited to 'src/guichan/basiccontainer.cpp')
-rw-r--r--src/guichan/basiccontainer.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/guichan/basiccontainer.cpp b/src/guichan/basiccontainer.cpp
index f3f61b65a..fb69bb53a 100644
--- a/src/guichan/basiccontainer.cpp
+++ b/src/guichan/basiccontainer.cpp
@@ -257,6 +257,8 @@ namespace gcn
void BasicContainer::drawChildren(Graphics* graphics)
{
+ BLOCK_START("BasicContainer::drawChildren")
+
graphics->pushClipArea(getChildrenArea());
for (WidgetListConstIterator iter = mWidgets.begin();
@@ -274,26 +276,33 @@ namespace gcn
rec.width += 2 * (*iter)->getFrameSize();
rec.height += 2 * (*iter)->getFrameSize();
graphics->pushClipArea(rec);
+ BLOCK_START("BasicContainer::drawChildren 1")
(*iter)->drawFrame(graphics);
+ BLOCK_END("BasicContainer::drawChildren 1")
graphics->popClipArea();
}
graphics->pushClipArea((*iter)->getDimension());
+ BLOCK_START("BasicContainer::drawChildren 2")
(*iter)->draw(graphics);
+ BLOCK_END("BasicContainer::drawChildren 2")
graphics->popClipArea();
}
}
graphics->popClipArea();
+ BLOCK_END("BasicContainer::drawChildren")
}
void BasicContainer::logicChildren()
{
+ BLOCK_START("BasicContainer::logicChildren")
for (WidgetListConstIterator iter = mWidgets.begin();
iter != mWidgets.end(); ++ iter)
{
(*iter)->logic();
}
+ BLOCK_END("BasicContainer::logicChildren")
}
void BasicContainer::showWidgetPart(Widget* widget, Rectangle area)