diff options
author | gman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-08 23:28:25 +0000 |
---|---|---|
committer | gman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-08 23:28:25 +0000 |
commit | 821f30a6306333b76c594ba8cc34d6a24008d62f (patch) | |
tree | 2fd3c30288bbc3f45f3be5a3b138f1b1518e2676 /gpu | |
parent | 211a3ffcbe86cd75b6c6053d87df43b574b52ab2 (diff) | |
download | chromium_src-821f30a6306333b76c594ba8cc34d6a24008d62f.zip chromium_src-821f30a6306333b76c594ba8cc34d6a24008d62f.tar.gz chromium_src-821f30a6306333b76c594ba8cc34d6a24008d62f.tar.bz2 |
Update initialization of gles2_demo.cc to match
requirements of using Chrome base.
TEST=none
BUG=none
Review URL: http://codereview.chromium.org/463052
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34107 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu')
-rw-r--r-- | gpu/command_buffer/client/gles2_demo.cc | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/gpu/command_buffer/client/gles2_demo.cc b/gpu/command_buffer/client/gles2_demo.cc index d213792..86f31b5 100644 --- a/gpu/command_buffer/client/gles2_demo.cc +++ b/gpu/command_buffer/client/gles2_demo.cc @@ -2,14 +2,18 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -// This file is here so other GLES2 related files can have a common set of -// includes where appropriate. +// This file implements a standalone executable demo of using GLES2 over +// command buffers. This code is temporary as the setup that happens +// here is in a state of flux. Eventually there will be several versions of +// setup, one for trusted code, one for pepper, one for NaCl, and maybe others. #include <windows.h> #include <windowsx.h> #include <shellapi.h> #include <stdlib.h> #include <stdio.h> +#include "base/at_exit.h" +#include "base/message_loop.h" #include "base/ref_counted.h" #include "base/shared_memory.h" #include "base/scoped_ptr.h" @@ -192,6 +196,10 @@ void* SetupWindow() { int main(int argc, const char** argv) { const int32 kCommandBufferSize = 1024 * 1024; + + base::AtExitManager at_exit_manager; + MessageLoopForUI message_loop; + GLES2Demo* demo = new GLES2Demo(); void* hwnd = SetupWindow(); |