| Index: cc/test/pixel_test.cc
|
| diff --git a/cc/test/pixel_test.cc b/cc/test/pixel_test.cc
|
| index 5d28d59a1456d0257a7ea5afcce5a909fc2f5d78..7d4c8f8e42ef2b2b2b6e7d0ea404b662bde1d9cb 100644
|
| --- a/cc/test/pixel_test.cc
|
| +++ b/cc/test/pixel_test.cc
|
| @@ -61,9 +61,20 @@ PixelTest::~PixelTest() {}
|
| bool PixelTest::RunPixelTest(RenderPassList* pass_list,
|
| const base::FilePath& ref_file,
|
| const PixelComparator& comparator) {
|
| + return RunPixelTestWithReadbackTarget(pass_list,
|
| + pass_list->back(),
|
| + ref_file,
|
| + comparator);
|
| +}
|
| +
|
| +bool PixelTest::RunPixelTestWithReadbackTarget(
|
| + RenderPassList* pass_list,
|
| + RenderPass* target,
|
| + const base::FilePath& ref_file,
|
| + const PixelComparator& comparator) {
|
| base::RunLoop run_loop;
|
|
|
| - pass_list->back()->copy_callbacks.push_back(
|
| + target->copy_callbacks.push_back(
|
| base::Bind(&PixelTest::ReadbackResult,
|
| base::Unretained(this),
|
| run_loop.QuitClosure()));
|
|
|