Chromium Code Reviews| Index: services/ui/view_manager/surface_manager.cc |
| diff --git a/services/ui/view_manager/surface_manager.cc b/services/ui/view_manager/surface_manager.cc |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..8c0daba483eeaf9558a3e09c05b4b00cf6cd2d96 |
| --- /dev/null |
| +++ b/services/ui/view_manager/surface_manager.cc |
| @@ -0,0 +1,28 @@ |
| +// Copyright 2015 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#include "base/bind.h" |
| +#include "base/bind_helpers.h" |
| +#include "mojo/services/surfaces/cpp/surfaces_utils.h" |
| +#include "mojo/services/surfaces/interfaces/quads.mojom.h" |
| +#include "mojo/services/surfaces/interfaces/surfaces.mojom.h" |
| +#include "services/ui/view_manager/surface_manager.h" |
| + |
| +namespace view_manager { |
| + |
| +SurfaceManager::SurfaceManager(mojo::SurfacePtr surfaces) |
| + : 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.
|
| + |
| +SurfaceManager::~SurfaceManager() {} |
| + |
| +mojo::SurfaceIdPtr SurfaceManager::CreateWrappedSurface( |
| + mojo::SurfaceId* inner_surface_id) { |
| + return inner_surface_id->Clone(); |
| +} |
| + |
| +void SurfaceManager::DestroySurface(mojo::SurfaceIdPtr surface_id) { |
| + // surfaces_->DestroySurface(surface_id->local); |
| +} |
| + |
| +} // namespace view_manager |