Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(635)

Unified Diff: content/renderer/render_widget.cc

Issue 820843002: Flush the pending input ack when the RenderWidget is hidden (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_widget.cc
diff --git a/content/renderer/render_widget.cc b/content/renderer/render_widget.cc
index 791943acaa955fb56bec231f3b6276f05bb572f6..3b618dc8f6051b1149e30647c923abb61eba4066 100644
--- a/content/renderer/render_widget.cc
+++ b/content/renderer/render_widget.cc
@@ -1760,8 +1760,11 @@ void RenderWidget::SetHidden(bool hidden) {
if (is_hidden_ == hidden)
return;
- // The status has changed. Tell the RenderThread about it.
+ // The status has changed. Tell the RenderThread about it and ensure
+ // throttled acks are released in case frame production ceases.
is_hidden_ = hidden;
+ FlushPendingInputEventAck();
+
if (is_hidden_)
RenderThreadImpl::current()->WidgetHidden();
else
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698