| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <string.h> | 5 #include <string.h> |
| 6 | 6 |
| 7 #include <iostream> | 7 #include <iostream> |
| 8 #include <list> | 8 #include <list> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 #include "ppapi/examples/video_decode/testdata.h" | 25 #include "ppapi/examples/video_decode/testdata.h" |
| 26 #include "ppapi/lib/gl/include/GLES2/gl2.h" | 26 #include "ppapi/lib/gl/include/GLES2/gl2.h" |
| 27 #include "ppapi/lib/gl/include/GLES2/gl2ext.h" | 27 #include "ppapi/lib/gl/include/GLES2/gl2ext.h" |
| 28 #include "ppapi/utility/completion_callback_factory.h" | 28 #include "ppapi/utility/completion_callback_factory.h" |
| 29 | 29 |
| 30 // Use assert as a poor-man's CHECK, even in non-debug mode. | 30 // Use assert as a poor-man's CHECK, even in non-debug mode. |
| 31 // Since <assert.h> redefines assert on every inclusion (it doesn't use | 31 // Since <assert.h> redefines assert on every inclusion (it doesn't use |
| 32 // include-guards), make sure this is the last file #include'd in this file. | 32 // include-guards), make sure this is the last file #include'd in this file. |
| 33 #undef NDEBUG | 33 #undef NDEBUG |
| 34 #include <assert.h> | 34 #include <assert.h> |
| 35 #include <stddef.h> |
| 36 #include <stdint.h> |
| 35 | 37 |
| 36 // 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 |
| 37 // function to preserve line number information in the failure message. | 39 // function to preserve line number information in the failure message. |
| 38 #define assertNoGLError() \ | 40 #define assertNoGLError() \ |
| 39 assert(!gles2_if_->GetError(context_->pp_resource())); | 41 assert(!gles2_if_->GetError(context_->pp_resource())); |
| 40 | 42 |
| 41 namespace { | 43 namespace { |
| 42 | 44 |
| 43 struct PictureBufferInfo { | 45 struct PictureBufferInfo { |
| 44 PP_PictureBuffer_Dev buffer; | 46 PP_PictureBuffer_Dev buffer; |
| (...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 680 gles2_if_->DeleteShader(context_->pp_resource(), shader); | 682 gles2_if_->DeleteShader(context_->pp_resource(), shader); |
| 681 } | 683 } |
| 682 } // anonymous namespace | 684 } // anonymous namespace |
| 683 | 685 |
| 684 namespace pp { | 686 namespace pp { |
| 685 // Factory function for your specialization of the Module object. | 687 // Factory function for your specialization of the Module object. |
| 686 Module* CreateModule() { | 688 Module* CreateModule() { |
| 687 return new VideoDecodeDemoModule(); | 689 return new VideoDecodeDemoModule(); |
| 688 } | 690 } |
| 689 } // namespace pp | 691 } // namespace pp |
| OLD | NEW |