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

Unified Diff: runtime/embedders/openglui/common/dart_host.cc

Issue 12186002: Canvas API. There are still a number of things to do: (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 10 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
« no previous file with comments | « runtime/embedders/openglui/common/canvas_state.cc ('k') | runtime/embedders/openglui/common/extension.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/embedders/openglui/common/dart_host.cc
===================================================================
--- runtime/embedders/openglui/common/dart_host.cc (revision 17737)
+++ runtime/embedders/openglui/common/dart_host.cc (working copy)
@@ -39,7 +39,7 @@
if (input_handler_->Start() != 0) {
return -1;
}
- timer_->reset();
+ timer_->Reset();
LOGI("Starting main isolate");
int result = vm_glue_->StartMainIsolate();
if (result != 0) {
@@ -47,7 +47,7 @@
return -1;
}
active_ = true;
- vm_glue_->CallSetup();
+ return vm_glue_->CallSetup();
}
return 0;
}
@@ -68,9 +68,9 @@
}
int32_t DartHost::OnStep() {
- timer_->update();
- vm_glue_->CallUpdate();
- if (graphics_handler_->Update() != 0) {
+ timer_->Update();
+ if (vm_glue_->CallUpdate() != 0 ||
+ graphics_handler_->Update() != 0) {
return -1;
}
return 0;
« no previous file with comments | « runtime/embedders/openglui/common/canvas_state.cc ('k') | runtime/embedders/openglui/common/extension.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698