Don't generate a frame with GPU OSR if IsPainting is false

This commit is contained in:
Heilig Benedek 2018-01-25 14:43:31 +01:00
parent 708cde92cf
commit 304fd49e84

View file

@ -124,7 +124,7 @@ class AtomCopyFrameGenerator {
}
void GenerateCopyFrame(const gfx::Rect& damage_rect) {
if (!view_->render_widget_host())
if (!view_->render_widget_host() || !view_->IsPainting())
return;
std::unique_ptr<cc::CopyOutputRequest> request =