Ignore OSR paint events on hidden views (fixes issue #2817)

This commit is contained in:
Riku Palomäki 2020-01-08 12:33:06 +00:00 committed by Marshall Greenblatt
parent 0f944cdc55
commit 80fc651d7e
1 changed files with 5 additions and 0 deletions

View File

@ -1312,6 +1312,11 @@ void CefRenderWidgetHostViewOSR::OnPaint(const gfx::Rect& damage_rect,
const void* pixels) { const void* pixels) {
TRACE_EVENT0("cef", "CefRenderWidgetHostViewOSR::OnPaint"); TRACE_EVENT0("cef", "CefRenderWidgetHostViewOSR::OnPaint");
// Workaround for https://bitbucket.org/chromiumembedded/cef/issues/2817
if (!is_showing_) {
return;
}
if (!pixels) { if (!pixels) {
return; return;
} }