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

Unified Diff: remoting/webapp/client_session.js

Issue 15927033: Add host-side rate-limiting to desktop resize events. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 months 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
Index: remoting/webapp/client_session.js
diff --git a/remoting/webapp/client_session.js b/remoting/webapp/client_session.js
index f40fa850addd071aff82e537e50b808fc90817c3..c6e800ec49fad85d0d5980d50c37abf1191c52a2 100644
--- a/remoting/webapp/client_session.js
+++ b/remoting/webapp/client_session.js
@@ -885,7 +885,7 @@ remoting.ClientSession.prototype.onResize = function() {
window.innerWidth,
window.innerHeight,
window.devicePixelRatio),
- 1000);
+ 250);
Jamie 2013/06/03 23:26:28 250ms seems to be a good compromise between sendin
alexeypa (please no reviews) 2013/06/04 00:05:26 Consider using different timeout depending on the
Jamie 2013/06/04 01:27:49 Done.
}
// If bump-scrolling is enabled, adjust the plugin margins to fully utilize
« remoting/host/resizing_host_observer.cc ('K') | « remoting/host/resizing_host_observer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698