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

Unified Diff: runtime/embedders/openglui/emulator/emulator_graphics_handler.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/emulator/emulator_graphics_handler.cc
diff --git a/runtime/embedders/openglui/emulator/emulator_graphics_handler.cc b/runtime/embedders/openglui/emulator/emulator_graphics_handler.cc
deleted file mode 100644
index 606dc76e110c78007170787d14f7e87626365fec..0000000000000000000000000000000000000000
--- a/runtime/embedders/openglui/emulator/emulator_graphics_handler.cc
+++ /dev/null
@@ -1,39 +0,0 @@
-// Copyright (c) 2013, 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/emulator/emulator_graphics_handler.h"
-
-#include <stdlib.h>
-#include <string.h>
-
-EmulatorGraphicsHandler::EmulatorGraphicsHandler(int argc,
- char** argv)
- : GraphicsHandler(".") {
- glutInit(&argc, argv);
- width_ = 800;
- height_ = 480;
- for (int i = 1; i < argc; i++) {
- if (argv[i][0] == '-') {
- int next_arg = i + 1;
- if (next_arg < argc && strcmp(argv[i], "-w") == 0) {
- width_ = static_cast<size_t>(atoi(argv[i = next_arg]));
- } else if (next_arg < argc && strcmp(argv[i], "-h") == 0) {
- height_ = static_cast<size_t>(atoi(argv[i = next_arg]));
- }
- }
- }
- SetViewport(0, 0, width_, height_);
- glutInitWindowSize(width_, height_);
- glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH | GLUT_STENCIL);
- glutCreateWindow("Dart");
-}
-
-int32_t EmulatorGraphicsHandler::Start() {
- return GraphicsHandler::Start();
-}
-
-void EmulatorGraphicsHandler::Stop() {
- GraphicsHandler::Stop();
-}
-

Powered by Google App Engine
This is Rietveld 408576698