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

Unified Diff: sky/shell/shell.h

Issue 936883002: Connect Sky and Ganesh in SkyShell (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Address review comments Created 5 years, 10 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/shell/platform_view.cc ('k') | sky/shell/shell.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/shell/shell.h
diff --git a/sky/shell/shell.h b/sky/shell/shell.h
index 6f77c2aa6589dbc3b8db56ae9b4a85630bbb9412..4ac112c1fff86c732e6d0f9407bb8d0fdca33228 100644
--- a/sky/shell/shell.h
+++ b/sky/shell/shell.h
@@ -8,9 +8,9 @@
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
+#include "base/threading/thread.h"
namespace base {
-class Thread;
class SingleThreadTaskRunner;
}
@@ -18,21 +18,30 @@ namespace sky {
namespace shell {
class Engine;
class Rasterizer;
-class SkyView;
+class PlatformView;
class Shell {
public:
- explicit Shell(scoped_refptr<base::SingleThreadTaskRunner> java_task_runner);
~Shell();
- void Init();
+ static void Init(
+ scoped_refptr<base::SingleThreadTaskRunner> java_task_runner);
+ static Shell& Shared();
+
+ PlatformView* view() const { return view_.get(); }
private:
+ explicit Shell(scoped_refptr<base::SingleThreadTaskRunner> java_task_runner);
+
+ void InitGPU(const base::Thread::Options& options);
+ void InitUI(const base::Thread::Options& options);
+ void InitView();
+
scoped_refptr<base::SingleThreadTaskRunner> java_task_runner_;
scoped_ptr<base::Thread> gpu_thread_;
scoped_ptr<base::Thread> ui_thread_;
- scoped_ptr<SkyView> view_;
+ scoped_ptr<PlatformView> view_;
scoped_ptr<Rasterizer> rasterizer_;
scoped_ptr<Engine> engine_;
« no previous file with comments | « sky/shell/platform_view.cc ('k') | sky/shell/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698