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

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

Issue 1552043002: Make Mozart view manager use the new compositor. (Closed) Base URL: git@github.com:domokit/mojo.git@moz-12
Patch Set: Created 4 years, 11 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
(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

Powered by Google App Engine
This is Rietveld 408576698