OLD | NEW |
(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 } |
OLD | NEW |