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

Side by Side Diff: samples/android_sample/jni/main.cc

Issue 11434046: Android rayshader sample. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 #include "context.h"
2 #include "dart_host.h"
3 #include "eventloop.h"
4 #include "graphics.h"
5 #include "input_service.h"
6 #include "vm_glue.h"
7
8 void android_main(android_app* pApplication) {
9 Timer timer;
10 Graphics graphics(pApplication, &timer);
11 VMGlue vmGlue(&graphics);
12 InputService inputService(pApplication, &vmGlue,
13 graphics.getWidth(), graphics.getHeight());
14 Context context = { &graphics, &vmGlue, &inputService, &timer };
15 EventLoop eventLoop(pApplication);
16 DartHost host(&context);
17 eventLoop.run(&host, &context);
18 }
19
20
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698