OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef COMPONENTS_VIEW_MANAGER_SURFACES_SURFACES_STATE_H_ | 5 #ifndef COMPONENTS_MUS_SURFACES_SURFACES_STATE_H_ |
6 #define COMPONENTS_VIEW_MANAGER_SURFACES_SURFACES_STATE_H_ | 6 #define COMPONENTS_MUS_SURFACES_SURFACES_STATE_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "cc/surfaces/surface_manager.h" | 10 #include "cc/surfaces/surface_manager.h" |
11 #include "components/view_manager/surfaces/surfaces_scheduler.h" | 11 #include "components/mus/surfaces/surfaces_scheduler.h" |
12 | 12 |
13 namespace cc { | 13 namespace cc { |
14 class SurfaceManager; | 14 class SurfaceManager; |
15 } // namespace cc | 15 } // namespace cc |
16 | 16 |
17 namespace surfaces { | 17 namespace surfaces { |
18 | 18 |
19 // The SurfacesState object is an object global to the View Manager app that | 19 // The SurfacesState object is an object global to the View Manager app that |
20 // holds the SurfaceManager, SurfacesScheduler and allocates new Surfaces | 20 // holds the SurfaceManager, SurfacesScheduler and allocates new Surfaces |
21 // namespaces. This object lives on the main thread of the View Manager. | 21 // namespaces. This object lives on the main thread of the View Manager. |
(...skipping 18 matching lines...) Expand all Loading... |
40 // that requested the Surface. | 40 // that requested the Surface. |
41 uint32_t next_id_namespace_; | 41 uint32_t next_id_namespace_; |
42 cc::SurfaceManager manager_; | 42 cc::SurfaceManager manager_; |
43 SurfacesScheduler scheduler_; | 43 SurfacesScheduler scheduler_; |
44 | 44 |
45 DISALLOW_COPY_AND_ASSIGN(SurfacesState); | 45 DISALLOW_COPY_AND_ASSIGN(SurfacesState); |
46 }; | 46 }; |
47 | 47 |
48 } // namespace surfaces | 48 } // namespace surfaces |
49 | 49 |
50 #endif // COMPONENTS_VIEW_MANAGER_SURFACES_SURFACES_STATE_H_ | 50 #endif // COMPONENTS_MUS_SURFACES_SURFACES_STATE_H_ |
OLD | NEW |