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

Unified Diff: components/view_manager/surfaces/surfaces_state.h

Issue 1344573002: Mandoline: Rename components/view_manager to components/mus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 5 years, 3 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
Index: components/view_manager/surfaces/surfaces_state.h
diff --git a/components/view_manager/surfaces/surfaces_state.h b/components/view_manager/surfaces/surfaces_state.h
deleted file mode 100644
index 9bc26ea5f03020e0d3423e3800f1afb6ffaf0037..0000000000000000000000000000000000000000
--- a/components/view_manager/surfaces/surfaces_state.h
+++ /dev/null
@@ -1,50 +0,0 @@
-// 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.
-
-#ifndef COMPONENTS_VIEW_MANAGER_SURFACES_SURFACES_STATE_H_
-#define COMPONENTS_VIEW_MANAGER_SURFACES_SURFACES_STATE_H_
-
-#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
-#include "cc/surfaces/surface_manager.h"
-#include "components/view_manager/surfaces/surfaces_scheduler.h"
-
-namespace cc {
-class SurfaceManager;
-} // namespace cc
-
-namespace surfaces {
-
-// The SurfacesState object is an object global to the View Manager app that
-// holds the SurfaceManager, SurfacesScheduler and allocates new Surfaces
-// namespaces. This object lives on the main thread of the View Manager.
-// TODO(rjkroege, fsamuel): This object will need to change to support multiple
-// displays.
-class SurfacesState : public base::RefCounted<SurfacesState> {
- public:
- SurfacesState();
-
- uint32_t next_id_namespace() { return next_id_namespace_++; }
-
- cc::SurfaceManager* manager() { return &manager_; }
-
- SurfacesScheduler* scheduler() { return &scheduler_; }
-
- private:
- friend class base::RefCounted<SurfacesState>;
- ~SurfacesState();
-
- // A Surface ID is an unsigned 64-bit int where the high 32-bits are generated
- // by the Surfaces service, and the low 32-bits are generated by the process
- // that requested the Surface.
- uint32_t next_id_namespace_;
- cc::SurfaceManager manager_;
- SurfacesScheduler scheduler_;
-
- DISALLOW_COPY_AND_ASSIGN(SurfacesState);
-};
-
-} // namespace surfaces
-
-#endif // COMPONENTS_VIEW_MANAGER_SURFACES_SURFACES_STATE_H_
« no previous file with comments | « components/view_manager/surfaces/surfaces_scheduler.cc ('k') | components/view_manager/surfaces/surfaces_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698