From 5da89c3a2b4af0fc1679d9697bb41837a73a88dd Mon Sep 17 00:00:00 2001 From: Nitish Sakhawalkar Date: Wed, 27 Feb 2019 11:51:30 -0800 Subject: [PATCH] chore:Remove transparency hack (#17128) This change undoes the hack that was put in because of a bug in chromium. That has since been fixed in chromium, so this is no longer need, hence removing. The 'BrowserWindow' > 'preserves transparency' test, validates this working. --- atom/browser/api/atom_api_web_contents.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/atom/browser/api/atom_api_web_contents.cc b/atom/browser/api/atom_api_web_contents.cc index 66fec8f57c9c..47c95ca5074c 100644 --- a/atom/browser/api/atom_api_web_contents.cc +++ b/atom/browser/api/atom_api_web_contents.cc @@ -243,8 +243,6 @@ namespace { // Called when CapturePage is done. void OnCapturePageDone(util::Promise promise, const SkBitmap& bitmap) { // Hack to enable transparency in captured image - // TODO(nitsakh) Remove hack once fixed in chromium - const_cast(bitmap).setAlphaType(kPremul_SkAlphaType); promise.Resolve(gfx::Image::CreateFrom1xBitmap(bitmap)); }