| Index: ui/base/clipboard/clipboard_win.cc
|
| ===================================================================
|
| --- ui/base/clipboard/clipboard_win.cc (revision 82144)
|
| +++ ui/base/clipboard/clipboard_win.cc (working copy)
|
| @@ -454,11 +454,12 @@
|
| int width = bitmap_info.bmiHeader.biWidth;
|
| int height = bitmap_info.bmiHeader.biHeight;
|
|
|
| - gfx::CanvasSkia canvas(width, height, false);
|
| + gfx::CanvasSkia canvas;
|
| + canvas.Init(width, height, false);
|
|
|
| - HDC destination_dc = canvas.beginPlatformPaint();
|
| + HDC destination_dc = canvas.BeginPlatformPaint();
|
| ::BitBlt(destination_dc, 0, 0, width, height, source_dc, 0, 0, SRCCOPY);
|
| - canvas.endPlatformPaint();
|
| + canvas.EndPlatformPaint();
|
| return canvas.ExtractBitmap();
|
| }
|
|
|
|
|