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_| |