| Index: content/browser/renderer_host/render_widget_host_unittest.cc
|
| ===================================================================
|
| --- content/browser/renderer_host/render_widget_host_unittest.cc (revision 82144)
|
| +++ content/browser/renderer_host/render_widget_host_unittest.cc (working copy)
|
| @@ -432,12 +432,14 @@
|
| host_->set_view(view.get());
|
|
|
| // Create a checkerboard background to test with.
|
| - gfx::CanvasSkia canvas(4, 4, true);
|
| + gfx::CanvasSkia canvas;
|
| + ASSERT_TRUE(canvas.Init(4, 4, true));
|
| canvas.FillRectInt(SK_ColorBLACK, 0, 0, 2, 2);
|
| canvas.FillRectInt(SK_ColorWHITE, 2, 0, 2, 2);
|
| canvas.FillRectInt(SK_ColorWHITE, 0, 2, 2, 2);
|
| canvas.FillRectInt(SK_ColorBLACK, 2, 2, 2, 2);
|
| - const SkBitmap& background = canvas.getDevice()->accessBitmap(false);
|
| + const SkBitmap& background =
|
| + canvas.skia_canvas()->getDevice()->accessBitmap(false);
|
|
|
| // Set the background and make sure we get back a copy.
|
| view->SetBackground(background);
|
|
|