|
Add helpers for creating UI components.
These helpers make it easier to use Mozart in C++ and greatly
reduce the amount of boilerplate involved in writing simple
applications.
View implementations:
- BaseView: A base implementation of the View interface.
- GLView: A View with an associated GLRenderer which takes care
of allocating, binding, and recycling textures.
- GaneshView: A View with an associated GaneshRenderer which takes
care of setting up a GaneshContext and drawing to canvas.
View providers:
- ViewProviderApp: Skeleton of a simple app which offers the
ViewProvider interface and vends Views on demand.
- ContextViewerApp: Skeleton of a simple app which offers the
ContentHandler interface and vends ViewProviders on demand.
Helpers:
- Choreographer: Coordinates the scheduling of drawing operations
on behalf of a View and compensates for lag.
- InputHandler: Binds an InputListener on behalf of a View.
BUG=
R=abarth@google.com, viettrungluu@chromium.org
Committed: https://chromium.googlesource.com/external/mojo/+/7c8fe6539eb6dc65f2030d9008d2ea65b28be543
Total comments: 13
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+1578 lines, -0 lines) |
Patch |
 |
M |
mojo/BUILD.gn
|
View
|
1
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
mojo/common/strong_binding_set.h
|
View
|
|
1 chunk |
+10 lines, -0 lines |
0 comments
|
Download
|
 |
A |
mojo/ui/BUILD.gn
|
View
|
1
2
|
1 chunk |
+112 lines, -0 lines |
0 comments
|
Download
|
 |
A |
mojo/ui/base_view.h
|
View
|
1
2
|
1 chunk |
+80 lines, -0 lines |
0 comments
|
Download
|
 |
A |
mojo/ui/base_view.cc
|
View
|
|
1 chunk |
+36 lines, -0 lines |
0 comments
|
Download
|
 |
A |
mojo/ui/choreographer.h
|
View
|
|
1 chunk |
+98 lines, -0 lines |
0 comments
|
Download
|
 |
A |
mojo/ui/choreographer.cc
|
View
|
|
1 chunk |
+119 lines, -0 lines |
0 comments
|
Download
|
 |
A |
mojo/ui/content_viewer_app.h
|
View
|
|
1 chunk |
+72 lines, -0 lines |
0 comments
|
Download
|
 |
A |
mojo/ui/content_viewer_app.cc
|
View
|
|
1 chunk |
+74 lines, -0 lines |
0 comments
|
Download
|
 |
A |
mojo/ui/ganesh_renderer.h
|
View
|
1
2
|
1 chunk |
+59 lines, -0 lines |
0 comments
|
Download
|
 |
A |
mojo/ui/ganesh_renderer.cc
|
View
|
1
2
|
1 chunk |
+57 lines, -0 lines |
0 comments
|
Download
|
 |
A |
mojo/ui/ganesh_view.h
|
View
|
|
1 chunk |
+53 lines, -0 lines |
0 comments
|
Download
|
 |
A |
mojo/ui/ganesh_view.cc
|
View
|
|
1 chunk |
+27 lines, -0 lines |
0 comments
|
Download
|
 |
A |
mojo/ui/gl_renderer.h
|
View
|
|
1 chunk |
+99 lines, -0 lines |
0 comments
|
Download
|
 |
A |
mojo/ui/gl_renderer.cc
|
View
|
|
1 chunk |
+161 lines, -0 lines |
0 comments
|
Download
|
 |
A |
mojo/ui/gl_renderer_unittest.cc
|
View
|
|
1 chunk |
+209 lines, -0 lines |
0 comments
|
Download
|
 |
A |
mojo/ui/gl_view.h
|
View
|
|
1 chunk |
+46 lines, -0 lines |
0 comments
|
Download
|
 |
A |
mojo/ui/gl_view.cc
|
View
|
|
1 chunk |
+24 lines, -0 lines |
0 comments
|
Download
|
 |
A |
mojo/ui/input_handler.h
|
View
|
|
1 chunk |
+59 lines, -0 lines |
0 comments
|
Download
|
 |
A |
mojo/ui/input_handler.cc
|
View
|
|
1 chunk |
+29 lines, -0 lines |
0 comments
|
Download
|
 |
A |
mojo/ui/view_provider_app.h
|
View
|
|
1 chunk |
+74 lines, -0 lines |
0 comments
|
Download
|
 |
A |
mojo/ui/view_provider_app.cc
|
View
|
|
1 chunk |
+79 lines, -0 lines |
0 comments
|
Download
|
Depends on Patchset:
Dependent Patchsets:
Total messages: 10 (2 generated)
|