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> |
11 #include <sstream> | 11 #include <sstream> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "ppapi/c/pp_errors.h" | 14 #include "ppapi/c/pp_errors.h" |
15 #include "ppapi/c/ppb_console.h" | 15 #include "ppapi/c/ppb_console.h" |
16 #include "ppapi/c/ppb_opengles2.h" | 16 #include "ppapi/c/ppb_opengles2.h" |
17 #include "ppapi/cpp/dev/video_decoder_client_dev.h" | 17 #include "ppapi/cpp/dev/video_decoder_client_dev.h" |
18 #include "ppapi/cpp/dev/video_decoder_dev.h" | 18 #include "ppapi/cpp/dev/video_decoder_dev.h" |
19 #include "ppapi/cpp/graphics_3d.h" | 19 #include "ppapi/cpp/graphics_3d.h" |
20 #include "ppapi/cpp/graphics_3d_client.h" | 20 #include "ppapi/cpp/graphics_3d_client.h" |
21 #include "ppapi/cpp/instance.h" | 21 #include "ppapi/cpp/instance.h" |
22 #include "ppapi/cpp/module.h" | 22 #include "ppapi/cpp/module.h" |
23 #include "ppapi/cpp/rect.h" | 23 #include "ppapi/cpp/rect.h" |
24 #include "ppapi/cpp/var.h" | 24 #include "ppapi/cpp/var.h" |
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 makeshift 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> | 35 #include <stddef.h> |
36 #include <stdint.h> | 36 #include <stdint.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() \ | 40 #define assertNoGLError() \ |
(...skipping 641 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
682 gles2_if_->DeleteShader(context_->pp_resource(), shader); | 682 gles2_if_->DeleteShader(context_->pp_resource(), shader); |
683 } | 683 } |
684 } // anonymous namespace | 684 } // anonymous namespace |
685 | 685 |
686 namespace pp { | 686 namespace pp { |
687 // Factory function for your specialization of the Module object. | 687 // Factory function for your specialization of the Module object. |
688 Module* CreateModule() { | 688 Module* CreateModule() { |
689 return new VideoDecodeDemoModule(); | 689 return new VideoDecodeDemoModule(); |
690 } | 690 } |
691 } // namespace pp | 691 } // namespace pp |
OLD | NEW |