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 <GLES2/gl2.h> | 5 #include <GLES2/gl2.h> |
6 #include <GLES2/gl2ext.h> | 6 #include <GLES2/gl2ext.h> |
7 #include <stdio.h> | 7 #include <stdio.h> |
8 #include <string.h> | 8 #include <string.h> |
9 | 9 |
10 #include <iostream> | 10 #include <iostream> |
(...skipping 11 matching lines...) Expand all Loading... |
22 #include "ppapi/cpp/rect.h" | 22 #include "ppapi/cpp/rect.h" |
23 #include "ppapi/cpp/var.h" | 23 #include "ppapi/cpp/var.h" |
24 #include "ppapi/cpp/video_decoder.h" | 24 #include "ppapi/cpp/video_decoder.h" |
25 #include "ppapi/utility/completion_callback_factory.h" | 25 #include "ppapi/utility/completion_callback_factory.h" |
26 | 26 |
27 // VP8 is more likely to work on different versions of Chrome. Undefine this | 27 // VP8 is more likely to work on different versions of Chrome. Undefine this |
28 // to decode H264. | 28 // to decode H264. |
29 #define USE_VP8_TESTDATA_INSTEAD_OF_H264 | 29 #define USE_VP8_TESTDATA_INSTEAD_OF_H264 |
30 #include "testdata.h" | 30 #include "testdata.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 | 37 |
38 // Assert |context_| isn't holding any GL Errors. Done as a macro instead of a | 38 // Assert |context_| isn't holding any GL Errors. Done as a macro instead of a |
39 // function to preserve line number information in the failure message. | 39 // function to preserve line number information in the failure message. |
40 #define assertNoGLError() assert(!gles2_if_->GetError(context_->pp_resource())); | 40 #define assertNoGLError() assert(!gles2_if_->GetError(context_->pp_resource())); |
41 | 41 |
42 namespace { | 42 namespace { |
(...skipping 684 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
727 }; | 727 }; |
728 | 728 |
729 } // anonymous namespace | 729 } // anonymous namespace |
730 | 730 |
731 namespace pp { | 731 namespace pp { |
732 // Factory function for your specialization of the Module object. | 732 // Factory function for your specialization of the Module object. |
733 Module* CreateModule() { | 733 Module* CreateModule() { |
734 return new MyModule(); | 734 return new MyModule(); |
735 } | 735 } |
736 } // namespace pp | 736 } // namespace pp |
OLD | NEW |