summaryrefslogtreecommitdiffstats
path: root/cc/layer_tree_host_perftest.cc
diff options
context:
space:
mode:
authordanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-22 07:04:45 +0000
committerdanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-22 07:04:45 +0000
commit508754793c2d869126d8749b16686d2e49017413 (patch)
tree6af7476f477f08f33e37db564c6f591685732ffc /cc/layer_tree_host_perftest.cc
parentf73feaf7fed34e62c31bf5a86436c561290ec9ed (diff)
downloadchromium_src-508754793c2d869126d8749b16686d2e49017413.zip
chromium_src-508754793c2d869126d8749b16686d2e49017413.tar.gz
chromium_src-508754793c2d869126d8749b16686d2e49017413.tar.bz2
cc: Cleanup when ending cc_perftests so they don't hang.
If the test is over don't keep giving the scheduler something to do. We want it to go idle so the test can exit. TEST=cc_perftests completes NOTRY=true Review URL: https://chromiumcodereview.appspot.com/11662015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@174502 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/layer_tree_host_perftest.cc')
-rw-r--r--cc/layer_tree_host_perftest.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/cc/layer_tree_host_perftest.cc b/cc/layer_tree_host_perftest.cc
index eb9d85c..8c65cb0 100644
--- a/cc/layer_tree_host_perftest.cc
+++ b/cc/layer_tree_host_perftest.cc
@@ -39,7 +39,8 @@ class LayerTreeHostPerfTest : public ThreadedTest {
if ((base::TimeTicks::HighResNow() - start_time_) >=
base::TimeDelta::FromMilliseconds(kTimeLimitMillis))
endTest();
- impl->setNeedsRedraw();
+ else
+ impl->setNeedsRedraw();
}
virtual void buildTree() {}