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

Unified Diff: mojo/ui/ganesh_view.cc

Issue 1991853003: Make BaseView et al. take an ApplicationConnector instead of an ApplicationImpl. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: doh Created 4 years, 7 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/ganesh_view.h ('k') | mojo/ui/gl_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/ui/ganesh_view.cc
diff --git a/mojo/ui/ganesh_view.cc b/mojo/ui/ganesh_view.cc
index 95b1170ee70b7c770a18fcd84fdc3c96eedf813b..857840d12f630d89aa734d89296e7bcfaa999a7b 100644
--- a/mojo/ui/ganesh_view.cc
+++ b/mojo/ui/ganesh_view.cc
@@ -5,23 +5,18 @@
#include "mojo/ui/ganesh_view.h"
#include "base/logging.h"
-#include "mojo/public/cpp/application/connect.h"
#include "mojo/skia/ganesh_texture_surface.h"
#include "third_party/skia/include/core/SkCanvas.h"
namespace mojo {
namespace ui {
-GaneshView::GaneshView(
- mojo::ApplicationImpl* app_impl,
- mojo::InterfaceRequest<mojo::ui::ViewOwner> view_owner_request,
- const std::string& label)
- : BaseView(app_impl, view_owner_request.Pass(), label),
- ganesh_renderer_(
- new mojo::skia::GaneshContext(mojo::GLContext::CreateOffscreen(
- mojo::ApplicationConnectorPtr::Create(
- mojo::CreateApplicationConnector(app_impl->shell()))
- .get()))) {}
+GaneshView::GaneshView(InterfaceHandle<ApplicationConnector> app_connector,
+ InterfaceRequest<ViewOwner> view_owner_request,
+ const std::string& label)
+ : BaseView(app_connector.Pass(), view_owner_request.Pass(), label),
+ ganesh_renderer_(new skia::GaneshContext(
+ GLContext::CreateOffscreen(BaseView::app_connector()))) {}
GaneshView::~GaneshView() {}
« no previous file with comments | « mojo/ui/ganesh_view.h ('k') | mojo/ui/gl_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698