| Index: ui/base/test/test_clipboard.cc
|
| diff --git a/ui/base/test/test_clipboard.cc b/ui/base/test/test_clipboard.cc
|
| index 1fdb268db56337aa7ed10e611addb761d395ddb7..585a3a6f43f330c85198d4e922e0c2fd17758ccc 100644
|
| --- a/ui/base/test/test_clipboard.cc
|
| +++ b/ui/base/test/test_clipboard.cc
|
| @@ -185,7 +185,10 @@ void TestClipboard::WriteWebSmartPaste() {
|
| void TestClipboard::WriteBitmap(const SkBitmap& bitmap) {
|
| // Create a dummy entry.
|
| GetDefaultStore().data[GetBitmapFormatType()];
|
| - bitmap.copyTo(&GetDefaultStore().image);
|
| + SkBitmap& dst = GetDefaultStore().image;
|
| + if (dst.tryAllocPixels(bitmap.info())) {
|
| + bitmap.readPixels(dst.info(), dst.getPixels(), dst.rowBytes(), 0, 0);
|
| + }
|
| }
|
|
|
| void TestClipboard::WriteData(const FormatType& format,
|
|
|