Ignore OSR paint events on hidden views (fixes issue #2817)
This commit is contained in:
parent
0f944cdc55
commit
80fc651d7e
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue