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 // Needed on Windows to get |M_PI| from math.h. | 5 // Needed on Windows to get |M_PI| from math.h. |
6 #ifdef _WIN32 | 6 #ifdef _WIN32 |
7 #define _USE_MATH_DEFINES | 7 #define _USE_MATH_DEFINES |
8 #endif | 8 #endif |
9 | 9 |
10 #include <math.h> | 10 #include <math.h> |
(...skipping 11 matching lines...) Expand all Loading... |
22 #include "ppapi/cpp/instance.h" | 22 #include "ppapi/cpp/instance.h" |
23 #include "ppapi/cpp/module.h" | 23 #include "ppapi/cpp/module.h" |
24 #include "ppapi/cpp/rect.h" | 24 #include "ppapi/cpp/rect.h" |
25 #include "ppapi/cpp/var_dictionary.h" | 25 #include "ppapi/cpp/var_dictionary.h" |
26 #include "ppapi/examples/compositor/spinning_cube.h" | 26 #include "ppapi/examples/compositor/spinning_cube.h" |
27 #include "ppapi/lib/gl/gles2/gl2ext_ppapi.h" | 27 #include "ppapi/lib/gl/gles2/gl2ext_ppapi.h" |
28 #include "ppapi/lib/gl/include/GLES2/gl2.h" | 28 #include "ppapi/lib/gl/include/GLES2/gl2.h" |
29 #include "ppapi/lib/gl/include/GLES2/gl2ext.h" | 29 #include "ppapi/lib/gl/include/GLES2/gl2ext.h" |
30 #include "ppapi/utility/completion_callback_factory.h" | 30 #include "ppapi/utility/completion_callback_factory.h" |
31 | 31 |
32 // Use assert as a poor-man's CHECK, even in non-debug mode. | 32 // Use assert as a makeshift CHECK, even in non-debug mode. |
33 // Since <assert.h> redefines assert on every inclusion (it doesn't use | 33 // Since <assert.h> redefines assert on every inclusion (it doesn't use |
34 // include-guards), make sure this is the last file #include'd in this file. | 34 // include-guards), make sure this is the last file #include'd in this file. |
35 #undef NDEBUG | 35 #undef NDEBUG |
36 #include <assert.h> | 36 #include <assert.h> |
37 #include <stddef.h> | 37 #include <stddef.h> |
38 #include <stdint.h> | 38 #include <stdint.h> |
39 | 39 |
40 // When compiling natively on Windows, PostMessage can be #define-d to | 40 // When compiling natively on Windows, PostMessage can be #define-d to |
41 // something else. | 41 // something else. |
42 #ifdef PostMessage | 42 #ifdef PostMessage |
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
444 }; | 444 }; |
445 | 445 |
446 } // anonymous namespace | 446 } // anonymous namespace |
447 | 447 |
448 namespace pp { | 448 namespace pp { |
449 // Factory function for your specialization of the Module object. | 449 // Factory function for your specialization of the Module object. |
450 Module* CreateModule() { | 450 Module* CreateModule() { |
451 return new DemoModule(); | 451 return new DemoModule(); |
452 } | 452 } |
453 } // namespace pp | 453 } // namespace pp |
OLD | NEW |