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

Unified Diff: content/renderer/render_widget.cc

Issue 1319073003: Organize Layout Hooks (content-side). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments tweaked. Created 5 years, 4 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.h ('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.cc
diff --git a/content/renderer/render_widget.cc b/content/renderer/render_widget.cc
index a071d1477ad0e8e6c6e6962b95285a313368c79f..684d74da1dc4f5fed9b23f5c0595fa61e5775449 100644
--- a/content/renderer/render_widget.cc
+++ b/content/renderer/render_widget.cc
@@ -1406,6 +1406,22 @@ blink::WebLayerTreeView* RenderWidget::layerTreeView() {
return compositor_.get();
}
+void RenderWidget::didFirstVisuallyNonEmptyLayout() {
+ // TODO(dglazkov): Remove this -- we should just pass background color
+ // in CompositorFrameMetadata.
+#if defined(OS_ANDROID)
+ DidChangeBodyBackgroundColor(webwidget_->backgroundColor());
+#endif
+
+ QueueMessage(
+ new ViewHostMsg_DidFirstVisuallyNonEmptyPaint(routing_id_),
+ MESSAGE_DELIVERY_POLICY_WITH_VISUAL_STATE);
+}
+
+void RenderWidget::didFirstLayoutAfterFinishedParsing() {
+ // TODO(dglazkov): Use this hook to drive CapturePageInfo.
+}
+
void RenderWidget::WillBeginCompositorFrame() {
TRACE_EVENT0("gpu", "RenderWidget::willBeginCompositorFrame");
« no previous file with comments | « content/renderer/render_widget.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698