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

Unified Diff: runtime/embedders/openglui/android/main.cc

Issue 25081002: Remove openglui embedder code (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 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
Index: runtime/embedders/openglui/android/main.cc
diff --git a/runtime/embedders/openglui/android/main.cc b/runtime/embedders/openglui/android/main.cc
deleted file mode 100644
index c0c386bb162f0546244450a8e3bfc74e56bb18b3..0000000000000000000000000000000000000000
--- a/runtime/embedders/openglui/android/main.cc
+++ /dev/null
@@ -1,39 +0,0 @@
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-#include "embedders/openglui/android/android_graphics_handler.h"
-#include "embedders/openglui/android/android_input_handler.h"
-#include "embedders/openglui/android/android_resource.h"
-#include "embedders/openglui/android/android_sound_handler.h"
-#include "embedders/openglui/android/eventloop.h"
-#include "embedders/openglui/common/context.h"
-#include "embedders/openglui/common/dart_host.h"
-#include "embedders/openglui/common/vm_glue.h"
-
-android_app* application_ = NULL;
-
-Resource* MakePlatformResource(const char *path) {
- return new AndroidResource(application_, path);
-}
-
-void android_main(android_app* application) {
- application_ = application;
- app_dummy(); // Link in native_app_glue.
- const char* resource_path = "/data/data/com.google.dartndk/app_dart";
- EventLoop eventLoop(application);
- AndroidGraphicsHandler graphics_handler(application, resource_path);
- VMGlue vm_glue(&graphics_handler, resource_path);
- AndroidInputHandler input_handler(&vm_glue, &graphics_handler);
- AndroidSoundHandler sound_handler(application);
- Timer timer;
- Context app_context;
- app_context.graphics_handler = &graphics_handler;
- app_context.input_handler = &input_handler;
- app_context.sound_handler = &sound_handler;
- app_context.timer = &timer;
- app_context.vm_glue = &vm_glue;
- DartHost host(&app_context);
- eventLoop.Run(&host, &input_handler);
-}
-
« no previous file with comments | « runtime/embedders/openglui/android/eventloop.cc ('k') | runtime/embedders/openglui/android/support_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698