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.
This commit is contained in:
Nitish Sakhawalkar 2019-02-27 11:51:30 -08:00 committed by John Kleinschmidt
parent e01c3615c4
commit 5da89c3a2b

View file

@ -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<SkBitmap&>(bitmap).setAlphaType(kPremul_SkAlphaType);
promise.Resolve(gfx::Image::CreateFrom1xBitmap(bitmap));
}