| Index: Source/web/tests/WebViewTest.cpp
|
| diff --git a/Source/web/tests/WebViewTest.cpp b/Source/web/tests/WebViewTest.cpp
|
| index 1789b3c0747325ebf0b8149a42de545b9bf6b938..5dc9b21c479e39d1d2a5825c8092630a740fcc3f 100644
|
| --- a/Source/web/tests/WebViewTest.cpp
|
| +++ b/Source/web/tests/WebViewTest.cpp
|
| @@ -285,10 +285,8 @@ TEST_F(WebViewTest, SetBaseBackgroundColorAndBlendWithExistingContent)
|
|
|
| // Set canvas background to red with alpha.
|
| SkBitmap bitmap;
|
| - bitmap.setConfig(SkBitmap::kARGB_8888_Config, kWidth, kHeight);
|
| - bitmap.allocPixels();
|
| - SkBitmapDevice device(bitmap);
|
| - SkCanvas canvas(&device);
|
| + ASSERT_TRUE(bitmap.allocN32Pixels(kWidth, kHeight));
|
| + SkCanvas canvas(bitmap);
|
| canvas.clear(kAlphaRed);
|
| webView->paint(&canvas, WebRect(0, 0, kWidth, kHeight));
|
|
|
|
|