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

Side by Side Diff: runtime/embedders/openglui/common/vm_glue.cc

Issue 14819009: Add extra Dart_FileReadCallback argument to android embedder (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <math.h> 5 #include <math.h>
6 #include <stdarg.h> 6 #include <stdarg.h>
7 #include <stdio.h> 7 #include <stdio.h>
8 #include <stdlib.h> 8 #include <stdlib.h>
9 #include <string.h> 9 #include <string.h>
10 #include <sys/stat.h> 10 #include <sys/stat.h>
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 136
137 // Initialize the Dart VM, providing the callbacks to use for 137 // Initialize the Dart VM, providing the callbacks to use for
138 // creating and shutting down isolates. 138 // creating and shutting down isolates.
139 LOGI("Initializing Dart"); 139 LOGI("Initializing Dart");
140 if (!Dart_Initialize(CreateIsolateAndSetup, 140 if (!Dart_Initialize(CreateIsolateAndSetup,
141 NULL, 141 NULL,
142 NULL, 142 NULL,
143 NULL, 143 NULL,
144 NULL, 144 NULL,
145 NULL, 145 NULL,
146 NULL,
146 NULL)) { 147 NULL)) {
147 LOGE("VM initialization failed\n"); 148 LOGE("VM initialization failed\n");
148 return -1; 149 return -1;
149 } 150 }
150 initialized_vm_ = true; 151 initialized_vm_ = true;
151 152
152 return 0; 153 return 0;
153 } 154 }
154 155
155 Dart_Handle VMGlue::LoadSourceFromFile(const char* url) { 156 Dart_Handle VMGlue::LoadSourceFromFile(const char* url) {
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 358
358 void VMGlue::FinishMainIsolate() { 359 void VMGlue::FinishMainIsolate() {
359 LOGI("Finish main isolate"); 360 LOGI("Finish main isolate");
360 Dart_EnterIsolate(isolate_); 361 Dart_EnterIsolate(isolate_);
361 // Shutdown the isolate. 362 // Shutdown the isolate.
362 Dart_ShutdownIsolate(); 363 Dart_ShutdownIsolate();
363 isolate_ = NULL; 364 isolate_ = NULL;
364 initialized_script_ = false; 365 initialized_script_ = false;
365 } 366 }
366 367
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698