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

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
« no previous file with comments | « samples/android_sample/jni/input_service.cc ('k') | samples/android_sample/jni/timer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #include "jni/context.h"
2 #include "jni/dart_host.h"
3 #include "jni/eventloop.h"
4 #include "jni/graphics.h"
5 #include "jni/input_service.h"
6 #include "jni/vm_glue.h"
7
8 void android_main(android_app* application) {
9 Timer timer;
10 Graphics graphics(application, &timer);
11 VMGlue vmGlue(&graphics);
12 InputService inputService(application, &vmGlue,
13 graphics.width(), graphics.height());
14 Context context = { &graphics, &vmGlue, &inputService, &timer };
15 EventLoop eventLoop(application);
16 DartHost host(&context);
17 eventLoop.Run(&host, &context);
18 }
19
20
OLDNEW
« no previous file with comments | « samples/android_sample/jni/input_service.cc ('k') | samples/android_sample/jni/timer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698