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

Side by Side Diff: components/mus/server_view.cc

Issue 1304063014: cc: Plumbing for BeginFrameSource based on Surfaces (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More use-after-free. Attempt to fix mojo. Created 5 years, 2 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 unified diff | Download patch
OLDNEW
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/server_view.h" 5 #include "components/mus/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/server_view_delegate.h" 10 #include "components/mus/server_view_delegate.h"
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 }
312
309 void ServerView::RemoveImpl(ServerView* view) { 313 void ServerView::RemoveImpl(ServerView* view) {
310 view->parent_ = NULL; 314 view->parent_ = NULL;
311 children_.erase(std::find(children_.begin(), children_.end(), view)); 315 children_.erase(std::find(children_.begin(), children_.end(), view));
312 } 316 }
313 317
314 } // namespace mus 318 } // namespace mus
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698