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

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

Issue 1997513002: Mozart: Generalize frame scheduling. (Closed) Base URL: git@github.com:domokit/mojo.git@moz-jank2
Patch Set: add comments 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
« no previous file with comments | « services/gfx/compositor/scene_state.h ('k') | services/gfx/compositor/tests/README.md » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/gfx/compositor/scene_state.cc
diff --git a/services/gfx/compositor/scene_state.cc b/services/gfx/compositor/scene_state.cc
index a5dab8272d4a95ad4ffdfe8d29867dbf86c7be03..e54ce55fa83821655033f7fcae202d6a02bcdb7e 100644
--- a/services/gfx/compositor/scene_state.cc
+++ b/services/gfx/compositor/scene_state.cc
@@ -14,24 +14,7 @@ SceneState::SceneState(mojo::gfx::composition::SceneTokenPtr scene_token,
DCHECK(scene_token_);
}
-SceneState::~SceneState() {
- // The scene implementation and all of its bindings must be destroyed
- // before any pending callbacks are dropped on the floor.
- scene_impl_.reset();
- pending_frame_callbacks_.clear();
-}
-
-void SceneState::AddSceneFrameCallback(const SceneFrameCallback& callback) {
- pending_frame_callbacks_.push_back(callback);
-}
-
-void SceneState::DispatchSceneFrameCallbacks(
- const mojo::gfx::composition::FrameInfo& frame_info) {
- for (auto& callback : pending_frame_callbacks_) {
- callback.Run(frame_info.Clone());
- }
- pending_frame_callbacks_.clear();
-}
+SceneState::~SceneState() {}
std::ostream& operator<<(std::ostream& os, SceneState* scene_state) {
if (!scene_state)
« no previous file with comments | « services/gfx/compositor/scene_state.h ('k') | services/gfx/compositor/tests/README.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698