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

Unified Diff: mojo/ui/gl_view.cc

Issue 1556803002: Add helpers for creating UI components. (Closed) Base URL: git@github.com:domokit/mojo.git@moz-13
Patch Set: address feedback Created 4 years, 11 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 | « mojo/ui/gl_view.h ('k') | mojo/ui/input_handler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/ui/gl_view.cc
diff --git a/mojo/ui/gl_view.cc b/mojo/ui/gl_view.cc
new file mode 100644
index 0000000000000000000000000000000000000000..3e7fea39dcfeefc361b33fad8c3e2bd667359ac7
--- /dev/null
+++ b/mojo/ui/gl_view.cc
@@ -0,0 +1,24 @@
+// 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,
+ const std::string& label,
+ const mojo::ui::ViewProvider::CreateViewCallback& create_view_callback)
+ : BaseView(app_impl, label, create_view_callback),
+ gl_context_owner_(mojo::MakeProxy(app_impl->CreateApplicationConnector())
+ .get()),
+ gl_renderer_(gl_context_owner_.context()) {}
+
+GLView::~GLView() {}
+
+} // namespace ui
+} // namespace mojo
« no previous file with comments | « mojo/ui/gl_view.h ('k') | mojo/ui/input_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698