Skip to content

Commit

Permalink
cc: Use base::MessageLoop.
Browse files Browse the repository at this point in the history
BUG=236029
R=enne@chromium.org

Review URL: https://chromiumcodereview.appspot.com/14386023

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@196948 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
xhwang@chromium.org committed Apr 27, 2013
1 parent b75afb2 commit 2811f31
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion cc/test/cc_test_suite.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ CCTestSuite::~CCTestSuite() {}
void CCTestSuite::Initialize() {
base::TestSuite::Initialize();
RegisterPathProvider();
message_loop_.reset(new MessageLoop);
message_loop_.reset(new base::MessageLoop);
}

void CCTestSuite::Shutdown() {
Expand Down
4 changes: 2 additions & 2 deletions cc/test/layer_tree_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ void LayerTreeTest::RealEndTest() {
return;
}

MessageLoop::current()->Quit();
base::MessageLoop::current()->Quit();
}

void LayerTreeTest::DispatchAddInstantAnimation(
Expand Down Expand Up @@ -565,7 +565,7 @@ void LayerTreeTest::RunTest(bool threaded) {
base::TimeDelta::FromSeconds(timeout_seconds_));
}

MessageLoop::current()->Run();
base::MessageLoop::current()->Run();
if (layer_tree_host_ && layer_tree_host_->root_layer())
layer_tree_host_->root_layer()->SetLayerTreeHost(NULL);
layer_tree_host_.reset();
Expand Down
5 changes: 2 additions & 3 deletions cc/trees/layer_tree_host.cc
Original file line number Diff line number Diff line change
Expand Up @@ -808,9 +808,8 @@ void LayerTreeHost::UpdateLayers(Layer* root_layer,
base::Unretained(this)));
static base::TimeDelta prepaint_delay =
base::TimeDelta::FromMilliseconds(100);
MessageLoop::current()->PostDelayedTask(FROM_HERE,
prepaint_callback_.callback(),
prepaint_delay);
base::MessageLoop::current()->PostDelayedTask(
FROM_HERE, prepaint_callback_.callback(), prepaint_delay);
}

for (size_t i = 0; i < update_list.size(); ++i)
Expand Down

0 comments on commit 2811f31

Please sign in to comment.