Remove SurfaceAllocator because it is unused.

This commit is contained in:
Jeff Brown
2015-09-18 12:06:27 -07:00
parent 8ed473901b
commit 5d4e44fa92
5 changed files with 0 additions and 60 deletions
-2
View File
@@ -18,8 +18,6 @@ source_set("compositor") {
"rasterizer_ganesh.h",
"resource_manager.cc",
"resource_manager.h",
"surface_allocator.cc",
"surface_allocator.h",
"surface_holder.cc",
"surface_holder.h",
"texture_cache.cc",
@@ -1,26 +0,0 @@
// Copyright 2014 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 "services/sky/compositor/surface_allocator.h"
#include "base/logging.h"
namespace sky {
SurfaceAllocator::SurfaceAllocator(uint32_t id_namespace)
: id_namespace_(id_namespace), next_id_(1) {
DCHECK(id_namespace);
}
SurfaceAllocator::~SurfaceAllocator() {
}
mojo::SurfaceIdPtr SurfaceAllocator::CreateSurfaceId() {
auto id = mojo::SurfaceId::New();
id->local = next_id_++;
id->id_namespace = id_namespace_;
return id.Pass();
}
} // namespace sky
@@ -1,29 +0,0 @@
// Copyright 2014 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.
#ifndef SKY_VIEWER_COMPOSITOR_SURFACE_ALLOCATOR_H_
#define SKY_VIEWER_COMPOSITOR_SURFACE_ALLOCATOR_H_
#include "base/basictypes.h"
#include "mojo/services/surfaces/public/interfaces/surface_id.mojom.h"
namespace sky {
class SurfaceAllocator {
public:
SurfaceAllocator(uint32_t id_namespace);
~SurfaceAllocator();
mojo::SurfaceIdPtr CreateSurfaceId();
private:
uint32_t id_namespace_;
uint32_t next_id_;
DISALLOW_COPY_AND_ASSIGN(SurfaceAllocator);
};
} // namespace sky
#endif // SKY_VIEWER_COMPOSITOR_SURFACE_ALLOCATOR_H_
@@ -9,7 +9,6 @@
#include "mojo/converters/geometry/geometry_type_converters.h"
#include "mojo/public/cpp/application/connect.h"
#include "mojo/public/interfaces/application/shell.mojom.h"
#include "services/sky/compositor/surface_allocator.h"
namespace sky {
-2
View File
@@ -18,8 +18,6 @@ class Shell;
}
namespace sky {
class SurfaceAllocator;
class SurfaceHolder : public mojo::ResourceReturner {
public:
class Client {