diff --git a/atom/browser/api/atom_api_web_contents.cc b/atom/browser/api/atom_api_web_contents.cc index 1e4e23c79d71..f9d3c093d2d6 100644 --- a/atom/browser/api/atom_api_web_contents.cc +++ b/atom/browser/api/atom_api_web_contents.cc @@ -302,8 +302,7 @@ content::ServiceWorkerContext* GetServiceWorkerContext( // Called when CapturePage is done. void OnCapturePageDone(const base::Callback& callback, - const SkBitmap& bitmap, - content::ReadbackResponse response) { + const SkBitmap& bitmap) { // Hack to enable transparency in captured image // TODO(nitsakh) Remove hack once fixed in chromium const_cast(bitmap).setAlphaType(kPremul_SkAlphaType); @@ -1730,8 +1729,7 @@ void WebContents::CapturePage(mate::Arguments* args) { bitmap_size = gfx::ScaleToCeiledSize(view_size, scale); view->CopyFromSurface(gfx::Rect(rect.origin(), view_size), bitmap_size, - base::Bind(&OnCapturePageDone, callback), - kBGRA_8888_SkColorType); + base::BindOnce(&OnCapturePageDone, callback)); } void WebContents::OnCursorChange(const content::WebCursor& cursor) {