| 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)
|
|
|