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

Side by Side Diff: sky/shell/instance.h

Issue 1187503003: Refactor SkyShell to allow multiple SkyViews (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 unified diff | Download patch
« no previous file with comments | « sky/shell/android/platform_view_android.cc ('k') | sky/shell/instance.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « sky/shell/android/platform_view_android.cc ('k') | sky/shell/instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698