summaryrefslogtreecommitdiffstats
path: root/ui/base/clipboard/clipboard_win.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ui/base/clipboard/clipboard_win.cc')
-rw-r--r--ui/base/clipboard/clipboard_win.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/base/clipboard/clipboard_win.cc b/ui/base/clipboard/clipboard_win.cc
index 013da58..eb4f34b 100644
--- a/ui/base/clipboard/clipboard_win.cc
+++ b/ui/base/clipboard/clipboard_win.cc
@@ -456,9 +456,9 @@ SkBitmap Clipboard::ReadImage(Buffer buffer) const {
gfx::CanvasSkia canvas(width, height, false);
- HDC destination_dc = canvas.beginPlatformPaint();
+ skia::ScopedPlatformPaint scoped_platform_paint(&canvas);
+ HDC destination_dc = scoped_platform_paint.GetPlatformSurface();
::BitBlt(destination_dc, 0, 0, width, height, source_dc, 0, 0, SRCCOPY);
- canvas.endPlatformPaint();
return canvas.ExtractBitmap();
}