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

Unified Diff: runtime/embedders/openglui/emulator/emulator_graphics_handler.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
Index: runtime/embedders/openglui/emulator/emulator_graphics_handler.cc
===================================================================
--- runtime/embedders/openglui/emulator/emulator_graphics_handler.cc (revision 17737)
+++ runtime/embedders/openglui/emulator/emulator_graphics_handler.cc (working copy)
@@ -9,10 +9,9 @@
EmulatorGraphicsHandler::EmulatorGraphicsHandler(int argc,
char** argv)
- : GLGraphicsHandler() {
+ : GraphicsHandler() {
glutInit(&argc, argv);
- width_ = 480;
- height_ = 800;
+ SetViewport(0, 0, 480, 800);
for (int i = 1; i < argc; i++) {
if (argv[i][0] == '-') {
int next_arg = i + 1;
@@ -23,16 +22,17 @@
}
}
}
+ glutInitWindowSize(width_, height_);
+ glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH | GLUT_STENCIL);
+ glutCreateWindow("Dart");
}
int32_t EmulatorGraphicsHandler::Start() {
- glutInitWindowSize(width_, height_);
- glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH);
- glutCreateWindow("Dart");
- return 0;
+ return GraphicsHandler::Start();
}
void EmulatorGraphicsHandler::Stop() {
+ GraphicsHandler::Stop();
exit(0);
}
« no previous file with comments | « runtime/embedders/openglui/emulator/emulator_graphics_handler.h ('k') | runtime/embedders/openglui/openglui_embedder.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698