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 makeshift 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 #include <stdint.h> |
23 | 23 |
24 namespace { | 24 namespace { |
25 | 25 |
26 class DemoInstance : public pp::Instance, public pp::Graphics3DClient { | 26 class DemoInstance : public pp::Instance, public pp::Graphics3DClient { |
27 public: | 27 public: |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 }; | 142 }; |
143 | 143 |
144 } // anonymous namespace | 144 } // anonymous namespace |
145 | 145 |
146 namespace pp { | 146 namespace pp { |
147 // Factory function for your specialization of the Module object. | 147 // Factory function for your specialization of the Module object. |
148 Module* CreateModule() { | 148 Module* CreateModule() { |
149 return new DemoModule(); | 149 return new DemoModule(); |
150 } | 150 } |
151 } // namespace pp | 151 } // namespace pp |
OLD | NEW |