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 12 matching lines...) Expand all Loading... |
23 | 23 |
24 // VP8 is more likely to work on different versions of Chrome. Undefine this | 24 // VP8 is more likely to work on different versions of Chrome. Undefine this |
25 // to decode H264. | 25 // to decode H264. |
26 #define USE_VP8_TESTDATA_INSTEAD_OF_H264 | 26 #define USE_VP8_TESTDATA_INSTEAD_OF_H264 |
27 #include "ppapi/examples/video_decode/testdata.h" | 27 #include "ppapi/examples/video_decode/testdata.h" |
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 makeshift 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> | 38 #include <stddef.h> |
39 #include <stdint.h> | 39 #include <stdint.h> |
40 | 40 |
41 // 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 |
42 // function to preserve line number information in the failure message. | 42 // function to preserve line number information in the failure message. |
43 #define assertNoGLError() assert(!gles2_if_->GetError(context_->pp_resource())); | 43 #define assertNoGLError() assert(!gles2_if_->GetError(context_->pp_resource())); |
(...skipping 687 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
731 }; | 731 }; |
732 | 732 |
733 } // anonymous namespace | 733 } // anonymous namespace |
734 | 734 |
735 namespace pp { | 735 namespace pp { |
736 // Factory function for your specialization of the Module object. | 736 // Factory function for your specialization of the Module object. |
737 Module* CreateModule() { | 737 Module* CreateModule() { |
738 return new MyModule(); | 738 return new MyModule(); |
739 } | 739 } |
740 } // namespace pp | 740 } // namespace pp |
OLD | NEW |