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

Unified Diff: sky/compositor/surface_allocator.cc

Issue 1213683004: Move //sky/compositor to //sky/viewer/compositor (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/compositor/surface_allocator.h ('k') | sky/compositor/surface_holder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/compositor/surface_allocator.cc
diff --git a/sky/compositor/surface_allocator.cc b/sky/compositor/surface_allocator.cc
deleted file mode 100644
index 7b3d381b4110c6ad00dc90dadef421a0a243100f..0000000000000000000000000000000000000000
--- a/sky/compositor/surface_allocator.cc
+++ /dev/null
@@ -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 "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
« no previous file with comments | « sky/compositor/surface_allocator.h ('k') | sky/compositor/surface_holder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698