mirror of
https://github.com/electron/electron.git
synced 2026-01-29 17:28:18 -05:00
Don't generate a frame with GPU OSR if IsPainting is false
This commit is contained in:
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user