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

Side by Side Diff: services/ui/view_manager/surface_manager.cc

Issue 1415493003: mozart: Initial commit of the view manager. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: applied review comments Created 5 years, 1 month 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
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "base/bind.h"
6 #include "base/bind_helpers.h"
7 #include "mojo/services/surfaces/cpp/surfaces_utils.h"
8 #include "mojo/services/surfaces/interfaces/quads.mojom.h"
9 #include "mojo/services/surfaces/interfaces/surfaces.mojom.h"
10 #include "services/ui/view_manager/surface_manager.h"
11
12 namespace view_manager {
13
14 SurfaceManager::SurfaceManager(mojo::SurfacePtr surfaces)
15 : surfaces_(surfaces.Pass()), surface_namespace_(0) {}
jamesr 2015/10/27 23:13:10 initialized unsigneds with '0u' please
jeffbrown 2015/10/28 01:37:29 Done.
16
17 SurfaceManager::~SurfaceManager() {}
18
19 mojo::SurfaceIdPtr SurfaceManager::CreateWrappedSurface(
20 mojo::SurfaceId* inner_surface_id) {
21 return inner_surface_id->Clone();
22 }
23
24 void SurfaceManager::DestroySurface(mojo::SurfaceIdPtr surface_id) {
25 // surfaces_->DestroySurface(surface_id->local);
26 }
27
28 } // namespace view_manager
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698