OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef SKY_SHELL_INSTANCE_H_ | |
6 #define SKY_SHELL_INSTANCE_H_ | |
7 | |
8 #include "base/macros.h" | |
9 #include "base/memory/scoped_ptr.h" | |
10 | |
11 namespace sky { | |
12 namespace shell { | |
13 class Engine; | |
14 class PlatformView; | |
15 class Rasterizer; | |
16 class Shell; | |
17 | |
18 class Instance { | |
eseidel
2015/06/12 19:17:34
Instance is a pretty generic name. SkyView? Shel
| |
19 public: | |
20 explicit Instance(Shell& shell); | |
21 ~Instance(); | |
22 | |
23 PlatformView* view() const { return view_.get(); } | |
24 | |
25 private: | |
26 void CreateEngine(); | |
27 void CreateView(); | |
28 | |
29 Shell& shell_; | |
30 scoped_ptr<PlatformView> view_; | |
31 scoped_ptr<Rasterizer> rasterizer_; | |
32 scoped_ptr<Engine> engine_; | |
33 | |
34 DISALLOW_COPY_AND_ASSIGN(Instance); | |
35 }; | |
36 | |
37 } // namespace shell | |
38 } // namespace sky | |
39 | |
40 #endif // SKY_SHELL_INSTANCE_H_ | |
OLD | NEW |