OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ppapi/c/pp_errors.h" | 5 #include "ppapi/c/pp_errors.h" |
6 #include "ppapi/cpp/core.h" | 6 #include "ppapi/cpp/core.h" |
7 #include "ppapi/cpp/graphics_3d.h" | 7 #include "ppapi/cpp/graphics_3d.h" |
8 #include "ppapi/cpp/graphics_3d_client.h" | 8 #include "ppapi/cpp/graphics_3d_client.h" |
9 #include "ppapi/cpp/input_event.h" | 9 #include "ppapi/cpp/input_event.h" |
10 #include "ppapi/cpp/instance.h" | 10 #include "ppapi/cpp/instance.h" |
11 #include "ppapi/cpp/module.h" | 11 #include "ppapi/cpp/module.h" |
12 #include "ppapi/cpp/rect.h" | 12 #include "ppapi/cpp/rect.h" |
13 #include "ppapi/examples/gles2_spinning_cube/spinning_cube.h" | 13 #include "ppapi/examples/gles2_spinning_cube/spinning_cube.h" |
14 #include "ppapi/lib/gl/gles2/gl2ext_ppapi.h" | 14 #include "ppapi/lib/gl/gles2/gl2ext_ppapi.h" |
15 #include "ppapi/utility/completion_callback_factory.h" | 15 #include "ppapi/utility/completion_callback_factory.h" |
16 | 16 |
17 // Use assert as a poor-man's CHECK, even in non-debug mode. | 17 // Use assert as a poor-man's CHECK, even in non-debug mode. |
18 // Since <assert.h> redefines assert on every inclusion (it doesn't use | 18 // Since <assert.h> redefines assert on every inclusion (it doesn't use |
19 // include-guards), make sure this is the last file #include'd in this file. | 19 // include-guards), make sure this is the last file #include'd in this file. |
20 #undef NDEBUG | 20 #undef NDEBUG |
21 #include <assert.h> | 21 #include <assert.h> |
| 22 #include <stdint.h> |
22 | 23 |
23 namespace { | 24 namespace { |
24 | 25 |
25 class DemoInstance : public pp::Instance, public pp::Graphics3DClient { | 26 class DemoInstance : public pp::Instance, public pp::Graphics3DClient { |
26 public: | 27 public: |
27 DemoInstance(PP_Instance instance); | 28 DemoInstance(PP_Instance instance); |
28 virtual ~DemoInstance(); | 29 virtual ~DemoInstance(); |
29 | 30 |
30 // pp::Instance implementation (see PPP_Instance). | 31 // pp::Instance implementation (see PPP_Instance). |
31 virtual bool Init(uint32_t argc, const char* argn[], const char* argv[]); | 32 virtual bool Init(uint32_t argc, const char* argn[], const char* argv[]); |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 }; | 142 }; |
142 | 143 |
143 } // anonymous namespace | 144 } // anonymous namespace |
144 | 145 |
145 namespace pp { | 146 namespace pp { |
146 // Factory function for your specialization of the Module object. | 147 // Factory function for your specialization of the Module object. |
147 Module* CreateModule() { | 148 Module* CreateModule() { |
148 return new DemoModule(); | 149 return new DemoModule(); |
149 } | 150 } |
150 } // namespace pp | 151 } // namespace pp |
OLD | NEW |