Index: content/browser/compositor/software_output_device_win.cc |
diff --git a/content/browser/compositor/software_output_device_win.cc b/content/browser/compositor/software_output_device_win.cc |
index a712def191137d310f2ac0db018ef748471ad57a..adbbd690c46585666bf86822947fffc49464dbea 100644 |
--- a/content/browser/compositor/software_output_device_win.cc |
+++ b/content/browser/compositor/software_output_device_win.cc |
@@ -180,10 +180,10 @@ void SoftwareOutputDeviceWin::EndPaint() { |
style |= WS_EX_LAYERED; |
SetWindowLong(hwnd_, GWL_EXSTYLE, style); |
- HDC dib_dc = skia::BeginPlatformPaint(contents_.get()); |
+ skia::ScopedPlatformPaint spp(contents_.get()); |
+ HDC dib_dc = spp.GetPlatformSurface(); |
::UpdateLayeredWindow(hwnd_, NULL, &position, &size, dib_dc, &zero, |
RGB(0xFF, 0xFF, 0xFF), &blend, ULW_ALPHA); |
- skia::EndPlatformPaint(contents_.get()); |
} else { |
HDC hdc = ::GetDC(hwnd_); |
RECT src_rect = rect.ToRECT(); |