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

Unified Diff: gpu/demos/framework/main_exe.cc

Issue 554053: Added infrastructure to run gpu demos under Pepper3D. Created a Demo class th... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 11 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 | « gpu/demos/framework/demo_factory.h ('k') | gpu/demos/framework/main_pepper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/demos/framework/main_exe.cc
===================================================================
--- gpu/demos/framework/main_exe.cc (revision 0)
+++ gpu/demos/framework/main_exe.cc (revision 0)
@@ -0,0 +1,24 @@
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "base/at_exit.h"
+#include "base/logging.h"
+#include "gpu/demos/framework/window.h"
+
+namespace {
+static const int kWindowWidth = 512;
+static const int kWindowHeight = 512;
+} // namespace.
+
+int main(int argc, char *argv[]) {
+ // AtExitManager is used by singleton classes to delete themselves when
+ // the program terminates.
+ base::AtExitManager at_exit_manager_;
+
+ gpu::demos::Window window;
+ CHECK(window.Init(kWindowWidth, kWindowHeight));
+
+ window.MainLoop();
+ return EXIT_SUCCESS;
+}
Property changes on: gpu\demos\framework\main_exe.cc
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « gpu/demos/framework/demo_factory.h ('k') | gpu/demos/framework/main_pepper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698