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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « gpu/demos/framework/demo_factory.h ('k') | gpu/demos/framework/main_pepper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "base/at_exit.h"
6 #include "base/logging.h"
7 #include "gpu/demos/framework/window.h"
8
9 namespace {
10 static const int kWindowWidth = 512;
11 static const int kWindowHeight = 512;
12 } // namespace.
13
14 int main(int argc, char *argv[]) {
15 // AtExitManager is used by singleton classes to delete themselves when
16 // the program terminates.
17 base::AtExitManager at_exit_manager_;
18
19 gpu::demos::Window window;
20 CHECK(window.Init(kWindowWidth, kWindowHeight));
21
22 window.MainLoop();
23 return EXIT_SUCCESS;
24 }
OLDNEW
« 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