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

Unified Diff: chrome/renderer/render_widget.h

Issue 3397008: Skip screen update when the WebView isn't ready to paint. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: took the feedback Created 10 years, 3 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
« no previous file with comments | « chrome/renderer/render_view.cc ('k') | chrome/renderer/render_widget.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/render_widget.h
diff --git a/chrome/renderer/render_widget.h b/chrome/renderer/render_widget.h
index 7f9e24790a40bb9fcd9027204e364a0228eafdee..8de40ccb027c35bad20b01c071421faee8a9893f 100644
--- a/chrome/renderer/render_widget.h
+++ b/chrome/renderer/render_widget.h
@@ -241,6 +241,10 @@ class RenderWidget : public IPC::Channel::Listener,
// just handled.
virtual void DidHandleMouseEvent(const WebKit::WebMouseEvent& event) {}
+ // Used to determine wheter does DoDeferredUpdate()
+ // The web page might not be loaded enough to paint.
+ virtual bool IsReadyToPaint() const { return true; }
+
// Routing ID that allows us to communicate to the parent browser process
// RenderWidgetHost. When MSG_ROUTING_NONE, no messages may be sent.
int32 routing_id_;
« no previous file with comments | « chrome/renderer/render_view.cc ('k') | chrome/renderer/render_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698