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

Unified Diff: content/renderer/render_widget_owner_delegate.h

Issue 1771043002: Separate RenderView from RenderWidget, part 4: Painting calls in the delegate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 | « content/renderer/render_widget.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_widget_owner_delegate.h
diff --git a/content/renderer/render_widget_owner_delegate.h b/content/renderer/render_widget_owner_delegate.h
index 309324ae13dbbd33da460a69ee8a630bb78e4d18..4c76ddd19bd31f2326a025c41ad99749442505ed 100644
--- a/content/renderer/render_widget_owner_delegate.h
+++ b/content/renderer/render_widget_owner_delegate.h
@@ -40,6 +40,15 @@ class CONTENT_EXPORT RenderWidgetOwnerDelegate {
virtual bool RenderWidgetWillHandleMouseEvent(
const blink::WebMouseEvent& event) = 0;
+ // Painting notifications. RenderWidgetDidCommitAndDrawCompositorFrame happens
+ // when that has completed, and subsequent rendering won't affect the painted
+ // content. DidFlushPaint happens once we've received the ACK that the screen
+ // has been updated. For a given paint operation, these overrides will always
+ // be called in the order RenderWidgetDidCommitAndDrawCompositorFrame,
+ // RenderWidgetDidFlushPaint.
+ virtual void RenderWidgetDidCommitAndDrawCompositorFrame() = 0;
+ virtual void RenderWidgetDidFlushPaint() = 0;
+
protected:
virtual ~RenderWidgetOwnerDelegate() {}
};
« no previous file with comments | « content/renderer/render_widget.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698