| OLD | NEW |
| 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 <stdio.h> | 5 #include <stdio.h> |
| 6 #include <string.h> | 6 #include <string.h> |
| 7 | 7 |
| 8 #include <iostream> | 8 #include <iostream> |
| 9 #include <queue> | 9 #include <queue> |
| 10 #include <sstream> | 10 #include <sstream> |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 | 28 |
| 29 #include "ppapi/lib/gl/include/GLES2/gl2.h" | 29 #include "ppapi/lib/gl/include/GLES2/gl2.h" |
| 30 #include "ppapi/lib/gl/include/GLES2/gl2ext.h" | 30 #include "ppapi/lib/gl/include/GLES2/gl2ext.h" |
| 31 #include "ppapi/utility/completion_callback_factory.h" | 31 #include "ppapi/utility/completion_callback_factory.h" |
| 32 | 32 |
| 33 // Use assert as a poor-man's CHECK, even in non-debug mode. | 33 // Use assert as a poor-man's CHECK, even in non-debug mode. |
| 34 // Since <assert.h> redefines assert on every inclusion (it doesn't use | 34 // Since <assert.h> redefines assert on every inclusion (it doesn't use |
| 35 // include-guards), make sure this is the last file #include'd in this file. | 35 // include-guards), make sure this is the last file #include'd in this file. |
| 36 #undef NDEBUG | 36 #undef NDEBUG |
| 37 #include <assert.h> | 37 #include <assert.h> |
| 38 #include <stddef.h> |
| 39 #include <stdint.h> |
| 38 | 40 |
| 39 // Assert |context_| isn't holding any GL Errors. Done as a macro instead of a | 41 // Assert |context_| isn't holding any GL Errors. Done as a macro instead of a |
| 40 // function to preserve line number information in the failure message. | 42 // function to preserve line number information in the failure message. |
| 41 #define assertNoGLError() assert(!gles2_if_->GetError(context_->pp_resource())); | 43 #define assertNoGLError() assert(!gles2_if_->GetError(context_->pp_resource())); |
| 42 | 44 |
| 43 namespace { | 45 namespace { |
| 44 | 46 |
| 45 struct Shader { | 47 struct Shader { |
| 46 Shader() : program(0), texcoord_scale_location(0) {} | 48 Shader() : program(0), texcoord_scale_location(0) {} |
| 47 ~Shader() {} | 49 ~Shader() {} |
| (...skipping 681 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 729 }; | 731 }; |
| 730 | 732 |
| 731 } // anonymous namespace | 733 } // anonymous namespace |
| 732 | 734 |
| 733 namespace pp { | 735 namespace pp { |
| 734 // Factory function for your specialization of the Module object. | 736 // Factory function for your specialization of the Module object. |
| 735 Module* CreateModule() { | 737 Module* CreateModule() { |
| 736 return new MyModule(); | 738 return new MyModule(); |
| 737 } | 739 } |
| 738 } // namespace pp | 740 } // namespace pp |
| OLD | NEW |