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:
parent
e01c3615c4
commit
5da89c3a2b
1 changed files with 0 additions and 2 deletions
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue