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

Unified Diff: chrome/browser/renderer_host/render_widget_host.h

Issue 435002: Optimize the rendering when there are pending key events.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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 | chrome/browser/renderer_host/render_widget_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/renderer_host/render_widget_host.h
===================================================================
--- chrome/browser/renderer_host/render_widget_host.h (revision 33056)
+++ chrome/browser/renderer_host/render_widget_host.h (working copy)
@@ -447,6 +447,9 @@
const gfx::Rect& clip_rect,
const gfx::Size& view_size);
+ // Called by OnMsgInputEventAck() to process a keyboard event ack message.
+ void ProcessKeyboardEventAck(int type, bool processed);
+
// The View associated with the RenderViewHost. The lifetime of this object
// is associated with the lifetime of the Render process. If the Renderer
// crashes, its View is destroyed and this pointer becomes NULL, even though
@@ -577,6 +580,15 @@
// changed.
bool suppress_next_char_events_;
+ // True if the PaintRect_ACK message for the last PaintRect message is still
+ // not sent yet. This is used for optimizing the painting overhead when there
+ // are many pending key events in the queue.
+ bool paint_ack_postponed_;
+
+ // The time when a PaintRect_ACK message is postponed, so that we can send the
+ // message after a certain duration.
+ base::TimeTicks paint_ack_postponed_time_;
+
// During the call to some methods, eg. OnMsgInputEventAck, this
// RenderWidgetHost object may be destroyed before executing some code that
// still want to access this object. To avoid this situation, |death_flag_|
« no previous file with comments | « no previous file | chrome/browser/renderer_host/render_widget_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698