blob: bc42e6ca7522321ccb147d1303f7fbd2c02bdb57 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
// 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"
#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_;
gpu::demos::Window window;
CHECK(window.Init(kWindowWidth, kWindowHeight));
window.MainLoop();
return EXIT_SUCCESS;
}
|