| Index: mojo/ui/gl_view.cc
|
| diff --git a/mojo/ui/gl_view.cc b/mojo/ui/gl_view.cc
|
| index e3c80f57dc0cce1009f0b381568758aed9ef8c48..79b2c94b8df2e70a3e2f07a32f738dabb80bac14 100644
|
| --- a/mojo/ui/gl_view.cc
|
| +++ b/mojo/ui/gl_view.cc
|
| @@ -5,19 +5,15 @@
|
| #include "mojo/ui/gl_view.h"
|
|
|
| #include "base/logging.h"
|
| -#include "mojo/public/cpp/application/connect.h"
|
|
|
| namespace mojo {
|
| namespace ui {
|
|
|
| -GLView::GLView(mojo::ApplicationImpl* app_impl,
|
| - mojo::InterfaceRequest<mojo::ui::ViewOwner> view_owner_request,
|
| +GLView::GLView(InterfaceHandle<ApplicationConnector> app_connector,
|
| + InterfaceRequest<ViewOwner> view_owner_request,
|
| const std::string& label)
|
| - : BaseView(app_impl, view_owner_request.Pass(), label),
|
| - gl_renderer_(mojo::GLContext::CreateOffscreen(
|
| - ApplicationConnectorPtr::Create(
|
| - mojo::CreateApplicationConnector(app_impl->shell()))
|
| - .get())) {}
|
| + : BaseView(app_connector.Pass(), view_owner_request.Pass(), label),
|
| + gl_renderer_(GLContext::CreateOffscreen(BaseView::app_connector())) {}
|
|
|
| GLView::~GLView() {}
|
|
|
|
|