Handle transparent WebContents in api::BrowserWindow

This commit is contained in:
Cheng Zhao 2018-02-22 17:54:38 +09:00
parent c611eb061d
commit c87fc2426d
2 changed files with 5 additions and 5 deletions

View file

@ -38,7 +38,6 @@
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/geometry/size.h"
#include "ui/gfx/geometry/size_conversions.h"
#include "ui/gl/gpu_switching_manager.h"
#if defined(OS_LINUX) || defined(OS_WIN)
#include "content/public/common/renderer_preferences.h"
@ -87,10 +86,6 @@ NativeWindow::NativeWindow(
prefs->subpixel_rendering = params.subpixel_rendering;
#endif
// Tell the content module to initialize renderer widget with transparent
// mode.
ui::GpuSwitchingManager::SetTransparent(transparent_);
WindowList::AddWindow(this);
}