| Index: chrome/browser/ui/pdf/pdf_browsertest_base.cc
|
| diff --git a/chrome/browser/ui/pdf/pdf_browsertest_base.cc b/chrome/browser/ui/pdf/pdf_browsertest_base.cc
|
| index fb6927ad15f687928f2544f9253bc70972d049e9..a230021d09ac12d9de328153e0af8b56e8da7bc4 100644
|
| --- a/chrome/browser/ui/pdf/pdf_browsertest_base.cc
|
| +++ b/chrome/browser/ui/pdf/pdf_browsertest_base.cc
|
| @@ -133,6 +133,7 @@ void PDFBrowserTest::CopyFromBackingStoreCallback(
|
| gfx::PNGCodec::FORMAT_BGRA, &decoded, &w, &h));
|
| int32* ref_pixels = reinterpret_cast<int32*>(&decoded[0]);
|
|
|
| + SkAutoLockPixels lock_image(bitmap);
|
| int32* pixels = static_cast<int32*>(bitmap.getPixels());
|
|
|
| // Get the background color, and use it to figure out the x-offsets in
|
|
|