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

Unified Diff: mojo/ui/ganesh_view.h

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/base_view.cc ('k') | mojo/ui/ganesh_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/ui/ganesh_view.h
diff --git a/mojo/ui/ganesh_view.h b/mojo/ui/ganesh_view.h
index 95c6c3630c7d2288ddeec1243ec3df96b1c3d923..f42551ca617fc5a499c8971a647b5cc4fc0bb5ed 100644
--- a/mojo/ui/ganesh_view.h
+++ b/mojo/ui/ganesh_view.h
@@ -6,6 +6,7 @@
#define MOJO_UI_GANESH_VIEW_H_
#include "mojo/gpu/gl_context.h"
+#include "mojo/public/cpp/bindings/interface_handle.h"
#include "mojo/skia/ganesh_context.h"
#include "mojo/ui/base_view.h"
#include "mojo/ui/ganesh_renderer.h"
@@ -20,27 +21,27 @@ namespace ui {
// content for the scene.
class GaneshView : public BaseView {
public:
- GaneshView(mojo::ApplicationImpl* app_impl,
- mojo::InterfaceRequest<mojo::ui::ViewOwner> view_owner_request,
+ GaneshView(InterfaceHandle<ApplicationConnector> app_connector,
+ InterfaceRequest<ViewOwner> view_owner_request,
const std::string& label);
~GaneshView() override;
// Gets the GL context, never null.
- const scoped_refptr<mojo::GLContext>& gl_context() const {
+ const scoped_refptr<GLContext>& gl_context() const {
return ganesh_renderer_.gl_context();
}
// Gets the Ganesh context, never null.
- const scoped_refptr<mojo::skia::GaneshContext>& ganesh_context() const {
+ const scoped_refptr<skia::GaneshContext>& ganesh_context() const {
return ganesh_renderer_.ganesh_context();
}
// Gets the Ganesh renderer, never null.
- mojo::ui::GaneshRenderer* ganesh_renderer() { return &ganesh_renderer_; }
+ GaneshRenderer* ganesh_renderer() { return &ganesh_renderer_; }
private:
- mojo::ui::GaneshRenderer ganesh_renderer_;
+ GaneshRenderer ganesh_renderer_;
DISALLOW_COPY_AND_ASSIGN(GaneshView);
};
« no previous file with comments | « mojo/ui/base_view.cc ('k') | mojo/ui/ganesh_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698