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

Unified Diff: services/gfx/compositor/compositor_engine.cc

Issue 1775143004: Mozart: Directly associate the renderer with the view tree. (Closed) Base URL: git@github.com:domokit/mojo.git@moz-1
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 | « services/gfx/compositor/compositor_engine.h ('k') | services/gfx/compositor/renderer_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/gfx/compositor/compositor_engine.cc
diff --git a/services/gfx/compositor/compositor_engine.cc b/services/gfx/compositor/compositor_engine.cc
index 3e82c4145fdedcdc4b05f5dfb623357575df13e7..17a36c621b5fe0642519e59ebd7eab53efd5cc6f 100644
--- a/services/gfx/compositor/compositor_engine.cc
+++ b/services/gfx/compositor/compositor_engine.cc
@@ -256,6 +256,17 @@ void CompositorEngine::SetRootScene(
}
}
+void CompositorEngine::ResetRootScene(RendererState* renderer_state) {
+ DCHECK(IsRendererStateRegisteredDebug(renderer_state));
+ DVLOG(1) << "ResetRootScene: renderer=" << renderer_state;
+
+ // Update the root.
+ if (renderer_state->ResetRootScene()) {
+ ScheduleFrameForRenderer(renderer_state,
+ Scheduler::SchedulingMode::kSnapshot);
+ }
+}
+
void CompositorEngine::HitTest(
RendererState* renderer_state,
mojo::PointPtr point,
« no previous file with comments | « services/gfx/compositor/compositor_engine.h ('k') | services/gfx/compositor/renderer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698