Index: sky/shell/shell.h |
diff --git a/sky/shell/shell.h b/sky/shell/shell.h |
index 6f77c2aa6589dbc3b8db56ae9b4a85630bbb9412..a8901ed92c0246a95a76dea35b34ee7f76058199 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,28 @@ 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(); |
+ static Shell& Current(); |
void Init(); |
+ PlatformView* view() const { return view_.get(); } |
+ |
private: |
+ 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_; |