| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "components/mus/vm/server_view.h" | 5 #include "components/mus/vm/server_view.h" |
| 6 | 6 |
| 7 #include <inttypes.h> | 7 #include <inttypes.h> |
| 8 | 8 |
| 9 #include "base/strings/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
| 10 #include "components/mus/surfaces/surfaces_state.h" | 10 #include "components/mus/surfaces/surfaces_state.h" |
| (...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 } | 299 } |
| 300 #endif | 300 #endif |
| 301 | 301 |
| 302 void ServerView::ReturnResources(const cc::ReturnedResourceArray& resources) { | 302 void ServerView::ReturnResources(const cc::ReturnedResourceArray& resources) { |
| 303 if (!client_) | 303 if (!client_) |
| 304 return; | 304 return; |
| 305 client_->ReturnResources( | 305 client_->ReturnResources( |
| 306 mojo::Array<mojo::ReturnedResourcePtr>::From(resources)); | 306 mojo::Array<mojo::ReturnedResourcePtr>::From(resources)); |
| 307 } | 307 } |
| 308 | 308 |
| 309 void ServerView::SetBeginFrameSource(cc::BeginFrameSource* begin_frame_source) { |
| 310 // TODO(tansell): Implement this. |
| 311 NOTIMPLEMENTED(); |
| 312 } |
| 313 |
| 309 void ServerView::RemoveImpl(ServerView* view) { | 314 void ServerView::RemoveImpl(ServerView* view) { |
| 310 view->parent_ = NULL; | 315 view->parent_ = NULL; |
| 311 children_.erase(std::find(children_.begin(), children_.end(), view)); | 316 children_.erase(std::find(children_.begin(), children_.end(), view)); |
| 312 } | 317 } |
| 313 | 318 |
| 314 } // namespace mus | 319 } // namespace mus |
| OLD | NEW |