blob: 27b8c09a3430a8204774d68c5011e0fbd7d42096 [file] [log] [blame]
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "mojo/ui/gl_view.h"
#include "base/logging.h"
namespace mojo {
namespace ui {
GLView::GLView(mojo::ApplicationImpl* app_impl,
mojo::InterfaceRequest<mojo::ui::ViewOwner> view_owner_request,
const std::string& label)
: BaseView(app_impl, view_owner_request.Pass(), label),
gl_context_owner_(ApplicationConnectorPtr::Create(
app_impl->CreateApplicationConnector())
.get()),
gl_renderer_(gl_context_owner_.context()) {}
GLView::~GLView() {}
} // namespace ui
} // namespace mojo