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

Side by Side Diff: runtime/embedders/openglui/android/main.cc

Issue 13345002: Cleaned up OpenGLUI samples and added Blasteroids. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "embedders/openglui/android/android_graphics_handler.h" 5 #include "embedders/openglui/android/android_graphics_handler.h"
6 #include "embedders/openglui/android/android_input_handler.h" 6 #include "embedders/openglui/android/android_input_handler.h"
7 #include "embedders/openglui/android/android_resource.h" 7 #include "embedders/openglui/android/android_resource.h"
8 #include "embedders/openglui/android/android_sensor.h"
9 #include "embedders/openglui/android/android_sound_handler.h" 8 #include "embedders/openglui/android/android_sound_handler.h"
10 #include "embedders/openglui/android/eventloop.h" 9 #include "embedders/openglui/android/eventloop.h"
11 #include "embedders/openglui/common/context.h" 10 #include "embedders/openglui/common/context.h"
12 #include "embedders/openglui/common/dart_host.h" 11 #include "embedders/openglui/common/dart_host.h"
13 #include "embedders/openglui/common/vm_glue.h" 12 #include "embedders/openglui/common/vm_glue.h"
14 13
15 android_app* application_ = NULL; 14 android_app* application_ = NULL;
16 15
17 Resource* MakePlatformResource(const char *path) { 16 Resource* MakePlatformResource(const char *path) {
18 return new AndroidResource(application_, path); 17 return new AndroidResource(application_, path);
(...skipping 12 matching lines...) Expand all
31 Context app_context; 30 Context app_context;
32 app_context.graphics_handler = &graphics_handler; 31 app_context.graphics_handler = &graphics_handler;
33 app_context.input_handler = &input_handler; 32 app_context.input_handler = &input_handler;
34 app_context.sound_handler = &sound_handler; 33 app_context.sound_handler = &sound_handler;
35 app_context.timer = &timer; 34 app_context.timer = &timer;
36 app_context.vm_glue = &vm_glue; 35 app_context.vm_glue = &vm_glue;
37 DartHost host(&app_context); 36 DartHost host(&app_context);
38 eventLoop.Run(&host, &input_handler); 37 eventLoop.Run(&host, &input_handler);
39 } 38 }
40 39
OLDNEW
« no previous file with comments | « runtime/embedders/openglui/android/android_sound_handler.cc ('k') | runtime/embedders/openglui/common/gl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698