| 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 16 matching lines...) Expand all Loading... |
| 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 poor-man's 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> |
| 38 #include <stdint.h> |
| 37 | 39 |
| 38 // When compiling natively on Windows, PostMessage can be #define-d to | 40 // When compiling natively on Windows, PostMessage can be #define-d to |
| 39 // something else. | 41 // something else. |
| 40 #ifdef PostMessage | 42 #ifdef PostMessage |
| 41 #undef PostMessage | 43 #undef PostMessage |
| 42 #endif | 44 #endif |
| 43 | 45 |
| 44 // Assert |context_| isn't holding any GL Errors. Done as a macro instead of a | 46 // Assert |context_| isn't holding any GL Errors. Done as a macro instead of a |
| 45 // function to preserve line number information in the failure message. | 47 // function to preserve line number information in the failure message. |
| 46 #define AssertNoGLError() \ | 48 #define AssertNoGLError() \ |
| (...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 442 }; | 444 }; |
| 443 | 445 |
| 444 } // anonymous namespace | 446 } // anonymous namespace |
| 445 | 447 |
| 446 namespace pp { | 448 namespace pp { |
| 447 // Factory function for your specialization of the Module object. | 449 // Factory function for your specialization of the Module object. |
| 448 Module* CreateModule() { | 450 Module* CreateModule() { |
| 449 return new DemoModule(); | 451 return new DemoModule(); |
| 450 } | 452 } |
| 451 } // namespace pp | 453 } // namespace pp |
| OLD | NEW |