Skip to content

Commit

Permalink
gpu: Update calls froms RunAllPending() to RunUntilIdle().
Browse files Browse the repository at this point in the history
BUG=131220
TBR=piman@chromium.org


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166428 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
tfarina@chromium.org committed Nov 7, 2012
1 parent dc98bb2 commit 352e694
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion gpu/command_buffer/client/cmd_buffer_helper_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class CommandBufferHelperTest : public testing::Test {

virtual void TearDown() {
// If the GpuScheduler posts any tasks, this forces them to run.
MessageLoop::current()->RunAllPending();
MessageLoop::current()->RunUntilIdle();
}

const CommandParser* GetParser() const {
Expand Down
4 changes: 2 additions & 2 deletions gpu/command_buffer/client/fenced_allocator_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class FencedAllocatorTest : public BaseFencedAllocatorTest {

virtual void TearDown() {
// If the GpuScheduler posts any tasks, this forces them to run.
MessageLoop::current()->RunAllPending();
MessageLoop::current()->RunUntilIdle();

EXPECT_TRUE(allocator_->CheckConsistency());

Expand Down Expand Up @@ -401,7 +401,7 @@ class FencedAllocatorWrapperTest : public BaseFencedAllocatorTest {

virtual void TearDown() {
// If the GpuScheduler posts any tasks, this forces them to run.
MessageLoop::current()->RunAllPending();
MessageLoop::current()->RunUntilIdle();

EXPECT_TRUE(allocator_->CheckConsistency());

Expand Down
4 changes: 2 additions & 2 deletions gpu/command_buffer/client/mapped_memory_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class MemoryChunkTest : public MappedMemoryTestBase {

virtual void TearDown() {
// If the GpuScheduler posts any tasks, this forces them to run.
MessageLoop::current()->RunAllPending();
MessageLoop::current()->RunUntilIdle();

MappedMemoryTestBase::TearDown();
}
Expand Down Expand Up @@ -153,7 +153,7 @@ class MappedMemoryManagerTest : public MappedMemoryTestBase {

virtual void TearDown() {
// If the GpuScheduler posts any tasks, this forces them to run.
MessageLoop::current()->RunAllPending();
MessageLoop::current()->RunUntilIdle();
manager_.reset();
MappedMemoryTestBase::TearDown();
}
Expand Down
4 changes: 2 additions & 2 deletions gpu/command_buffer/client/ring_buffer_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ class RingBufferTest : public BaseRingBufferTest {

virtual void TearDown() {
// If the GpuScheduler posts any tasks, this forces them to run.
MessageLoop::current()->RunAllPending();
MessageLoop::current()->RunUntilIdle();

BaseRingBufferTest::TearDown();
}
Expand Down Expand Up @@ -221,7 +221,7 @@ class RingBufferWrapperTest : public BaseRingBufferTest {

virtual void TearDown() {
// If the GpuScheduler posts any tasks, this forces them to run.
MessageLoop::current()->RunAllPending();
MessageLoop::current()->RunUntilIdle();

BaseRingBufferTest::TearDown();
}
Expand Down
2 changes: 1 addition & 1 deletion gpu/command_buffer/service/gpu_scheduler_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class GpuSchedulerTest : public testing::Test {
virtual void TearDown() {
// Ensure that any unexpected tasks posted by the GPU scheduler are executed
// in order to fail the test.
MessageLoop::current()->RunAllPending();
MessageLoop::current()->RunUntilIdle();
}

error::Error GetError() {
Expand Down

0 comments on commit 352e694

Please sign in to comment.