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

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

Issue 12506004: Added window.requestAnimationFrame. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 9 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 | « runtime/embedders/openglui/common/gl.dart ('k') | samples/openglui/android/android.gyp » ('j') | 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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 LOGI("Done setup"); 230 LOGI("Done setup");
231 return rtn; 231 return rtn;
232 } 232 }
233 return 0; 233 return 0;
234 } 234 }
235 235
236 int VMGlue::CallUpdate() { 236 int VMGlue::CallUpdate() {
237 if (initialized_script_) { 237 if (initialized_script_) {
238 Dart_EnterIsolate(isolate_); 238 Dart_EnterIsolate(isolate_);
239 Dart_EnterScope(); 239 Dart_EnterScope();
240 int rtn = Invoke("update", 0, 0); 240 int rtn = Invoke("update_", 0, 0);
241 Dart_ExitScope(); 241 Dart_ExitScope();
242 Dart_ExitIsolate(); 242 Dart_ExitIsolate();
243 return rtn; 243 return rtn;
244 } 244 }
245 return -1; 245 return -1;
246 } 246 }
247 247
248 int VMGlue::CallShutdown() { 248 int VMGlue::CallShutdown() {
249 if (initialized_script_) { 249 if (initialized_script_) {
250 Dart_EnterIsolate(isolate_); 250 Dart_EnterIsolate(isolate_);
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 335
336 void VMGlue::FinishMainIsolate() { 336 void VMGlue::FinishMainIsolate() {
337 LOGI("Finish main isolate"); 337 LOGI("Finish main isolate");
338 Dart_EnterIsolate(isolate_); 338 Dart_EnterIsolate(isolate_);
339 // Shutdown the isolate. 339 // Shutdown the isolate.
340 Dart_ShutdownIsolate(); 340 Dart_ShutdownIsolate();
341 isolate_ = NULL; 341 isolate_ = NULL;
342 initialized_script_ = false; 342 initialized_script_ = false;
343 } 343 }
344 344
OLDNEW
« no previous file with comments | « runtime/embedders/openglui/common/gl.dart ('k') | samples/openglui/android/android.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698