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

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

Issue 565041: Implemented window class on linux. Standalone demos are working on linux now. (Closed) Base URL: svn://chrome-svn/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/demos.gyp ('k') | gpu/demos/framework/window_linux.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 37981)
+++ gpu/demos/framework/main_exe.cc (working copy)
@@ -6,12 +6,20 @@
#include "base/logging.h"
#include "gpu/demos/framework/window.h"
+#if defined(OS_LINUX)
+#include <gtk/gtk.h>
+#endif // OS_LINUX
+
namespace {
static const int kWindowWidth = 512;
static const int kWindowHeight = 512;
} // namespace.
int main(int argc, char *argv[]) {
+#if defined(OS_LINUX)
+ gtk_init(&argc, &argv);
+#endif // OS_LINUX
+
// AtExitManager is used by singleton classes to delete themselves when
// the program terminates.
base::AtExitManager at_exit_manager_;
@@ -22,3 +30,4 @@
window.MainLoop();
return EXIT_SUCCESS;
}
+
« no previous file with comments | « gpu/demos/demos.gyp ('k') | gpu/demos/framework/window_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698