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

Unified Diff: services/gfx/compositor/renderer_state.h

Issue 1997513002: Mozart: Generalize frame scheduling. (Closed) Base URL: git@github.com:domokit/mojo.git@moz-jank2
Patch Set: Created 4 years, 7 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
Index: services/gfx/compositor/renderer_state.h
diff --git a/services/gfx/compositor/renderer_state.h b/services/gfx/compositor/renderer_state.h
index 1cfbf4d10ab4ca26381e8453c19a796ed90cd713..4c3c0d125fd7a109143ea534f1db34d4a89594ce 100644
--- a/services/gfx/compositor/renderer_state.h
+++ b/services/gfx/compositor/renderer_state.h
@@ -13,6 +13,7 @@
#include "mojo/services/gfx/composition/cpp/formatting.h"
#include "mojo/services/gfx/composition/interfaces/compositor.mojom.h"
#include "services/gfx/compositor/backend/output.h"
+#include "services/gfx/compositor/frame_dispatcher.h"
#include "services/gfx/compositor/graph/snapshot.h"
#include "services/gfx/compositor/scene_state.h"
@@ -71,6 +72,8 @@ class RendererState {
// If the snapshot is not blocked, also updates |visible_snapshot()|.
void SetSnapshot(const scoped_refptr<const Snapshot>& snapshot);
+ FrameDispatcher& frame_dispatcher() { return frame_dispatcher_; }
+
const std::string& label() { return label_; }
std::string FormattedLabel();
@@ -80,6 +83,7 @@ class RendererState {
const std::string label_;
std::string formatted_label_cache_;
+ FrameDispatcher frame_dispatcher_; // must be before renderer_impl_
std::unique_ptr<mojo::gfx::composition::Renderer> renderer_impl_;
SceneState* root_scene_ = nullptr;

Powered by Google App Engine
This is Rietveld 408576698