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

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: 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
« no previous file with comments | « services/ui/view_manager/surface_manager.h ('k') | services/ui/view_manager/view_host_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_(0u) {}
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
« no previous file with comments | « services/ui/view_manager/surface_manager.h ('k') | services/ui/view_manager/view_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698