mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-02-09 08:38:41 +01:00
Fix timing of InstallTransparency for OSR + gpu-disabled (see issue #2938)
This commit is contained in:
parent
0add3eaacb
commit
ca1c00f95d
@ -29,11 +29,7 @@ void CefWebContentsViewOSR::WebContentsCreated(
|
|||||||
DCHECK(!web_contents_);
|
DCHECK(!web_contents_);
|
||||||
web_contents_ = web_contents;
|
web_contents_ = web_contents;
|
||||||
|
|
||||||
auto host = web_contents_->GetRenderViewHost();
|
RenderViewReady();
|
||||||
CefRenderWidgetHostViewOSR* view =
|
|
||||||
static_cast<CefRenderWidgetHostViewOSR*>(host->GetWidget()->GetView());
|
|
||||||
if (view)
|
|
||||||
view->InstallTransparency();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
gfx::NativeView CefWebContentsViewOSR::GetNativeView() const {
|
gfx::NativeView CefWebContentsViewOSR::GetNativeView() const {
|
||||||
@ -124,7 +120,15 @@ CefWebContentsViewOSR::CreateViewForChildWidget(
|
|||||||
|
|
||||||
void CefWebContentsViewOSR::SetPageTitle(const base::string16& title) {}
|
void CefWebContentsViewOSR::SetPageTitle(const base::string16& title) {}
|
||||||
|
|
||||||
void CefWebContentsViewOSR::RenderViewReady() {}
|
void CefWebContentsViewOSR::RenderViewReady() {
|
||||||
|
if (web_contents_) {
|
||||||
|
auto host = web_contents_->GetRenderViewHost();
|
||||||
|
CefRenderWidgetHostViewOSR* view =
|
||||||
|
static_cast<CefRenderWidgetHostViewOSR*>(host->GetWidget()->GetView());
|
||||||
|
if (view)
|
||||||
|
view->InstallTransparency();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void CefWebContentsViewOSR::RenderViewHostChanged(
|
void CefWebContentsViewOSR::RenderViewHostChanged(
|
||||||
content::RenderViewHost* old_host,
|
content::RenderViewHost* old_host,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user