Use RunLoop to wait for readback on compositor unittest
commitcb9e0df0797ec7d2c894b95570b66553d3bfa661
authorweiliangc <weiliangc@chromium.org>
Mon, 22 Sep 2014 14:55:21 +0000 (22 07:55 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 22 Sep 2014 14:55:34 +0000 (22 14:55 +0000)
tree68f16866da0b6a0dec889665e6475a19ec0bfa50
parent568777ccc9dd7259df3286917aaa1e8d3df5f7d6
Use RunLoop to wait for readback on compositor unittest

In layer unittest ReadPixel loops multiple times to wait to a readback.
This causes flake on cros valgrind bot. Instead use RunLoop to wait for
readback.

The flake is exposed if ui::Compositor uses Scheduler (CL 535733002)

BUG=403528

Review URL: https://codereview.chromium.org/587863002

Cr-Commit-Position: refs/heads/master@{#295972}
ui/compositor/layer_unittest.cc