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

Side by Side Diff: components/view_manager/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: SurfaceAggregator tests; fix some bugs revealed by tests 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/view_manager/server_view.h" 5 #include "components/view_manager/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/view_manager/server_view_delegate.h" 10 #include "components/view_manager/server_view_delegate.h"
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 #endif 303 #endif
304 304
305 void ServerView::ReturnResources( 305 void ServerView::ReturnResources(
306 const cc::ReturnedResourceArray& resources) { 306 const cc::ReturnedResourceArray& resources) {
307 if (!client_) 307 if (!client_)
308 return; 308 return;
309 client_->ReturnResources( 309 client_->ReturnResources(
310 mojo::Array<mojo::ReturnedResourcePtr>::From(resources)); 310 mojo::Array<mojo::ReturnedResourcePtr>::From(resources));
311 } 311 }
312 312
313 void ServerView::SetBeginFrameSource(cc::BeginFrameSource* begin_frame_source) {
314 // TODO(tansell): Implement this.
sky 2015/09/24 23:58:20 NOTIMPLEMENTED if it won't be too spammy.
315 }
316
313 void ServerView::RemoveImpl(ServerView* view) { 317 void ServerView::RemoveImpl(ServerView* view) {
314 view->parent_ = NULL; 318 view->parent_ = NULL;
315 children_.erase(std::find(children_.begin(), children_.end(), view)); 319 children_.erase(std::find(children_.begin(), children_.end(), view));
316 } 320 }
317 321
318 } // namespace view_manager 322 } // namespace view_manager
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698