summaryrefslogtreecommitdiffstats
path: root/gpu/demos/app_framework/platform.h
diff options
context:
space:
mode:
authoralokp@chromium.org <alokp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-06 20:32:57 +0000
committeralokp@chromium.org <alokp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-06 20:32:57 +0000
commit1dcd5e8c3061bcd016dd99a04b939ba23e60497f (patch)
tree03feb6727eb8ff36802c3d4b104b5fac42ef410a /gpu/demos/app_framework/platform.h
parent2d4d7d554ca674fe43159ff777d6f8f048cec44a (diff)
downloadchromium_src-1dcd5e8c3061bcd016dd99a04b939ba23e60497f.zip
chromium_src-1dcd5e8c3061bcd016dd99a04b939ba23e60497f.tar.gz
chromium_src-1dcd5e8c3061bcd016dd99a04b939ba23e60497f.tar.bz2
Resubmit 35500: Added an application framework for demos. Ported hellotriangle example in OpenGL ES book to use the application framework.
BUG=26099 TEST=Try running hello_triangle executable, you should see a red triangle. Review URL: http://codereview.chromium.org/525070 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35647 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/demos/app_framework/platform.h')
-rw-r--r--gpu/demos/app_framework/platform.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/gpu/demos/app_framework/platform.h b/gpu/demos/app_framework/platform.h
new file mode 100644
index 0000000..602979e
--- /dev/null
+++ b/gpu/demos/app_framework/platform.h
@@ -0,0 +1,23 @@
+// Copyright (c) 2006-2009 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.
+
+// Platform-specific types and definitions for native widget handles.
+
+#ifndef GPU_DEMOS_APP_FRAMEWORK_PLATFORM_H_
+#define GPU_DEMOS_APP_FRAMEWORK_PLATFORM_H_
+
+#ifdef _WINDOWS
+#include <windows.h>
+#endif // _WINDOWS
+
+#include "build/build_config.h"
+
+namespace gpu_demos {
+
+#if defined(OS_WIN)
+typedef HWND NativeWindowHandle;
+#endif // defined(OS_WIN)
+
+} // namespace gpu_demos
+#endif // GPU_DEMOS_APP_FRAMEWORK_PLATFORM_H_