OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <assert.h> | 5 #include <assert.h> |
6 #include <string.h> | 6 #include <string.h> |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "ppapi/c/pp_errors.h" | 11 #include "ppapi/c/pp_errors.h" |
12 #include "ppapi/c/ppb_opengles2.h" | 12 #include "ppapi/c/ppb_opengles2.h" |
13 #include "ppapi/cpp/dev/buffer_dev.h" | 13 #include "ppapi/cpp/dev/buffer_dev.h" |
14 #include "ppapi/cpp/dev/video_capture_dev.h" | 14 #include "ppapi/cpp/dev/video_capture_dev.h" |
15 #include "ppapi/cpp/dev/video_capture_client_dev.h" | 15 #include "ppapi/cpp/dev/video_capture_client_dev.h" |
16 #include "ppapi/cpp/completion_callback.h" | 16 #include "ppapi/cpp/completion_callback.h" |
17 #include "ppapi/cpp/graphics_3d_client.h" | 17 #include "ppapi/cpp/graphics_3d_client.h" |
18 #include "ppapi/cpp/graphics_3d.h" | 18 #include "ppapi/cpp/graphics_3d.h" |
19 #include "ppapi/cpp/instance.h" | 19 #include "ppapi/cpp/instance.h" |
20 #include "ppapi/cpp/module.h" | 20 #include "ppapi/cpp/module.h" |
21 #include "ppapi/cpp/rect.h" | 21 #include "ppapi/cpp/rect.h" |
22 #include "ppapi/lib/gl/include/GLES2/gl2.h" | 22 #include "ppapi/lib/gl/include/GLES2/gl2.h" |
23 #include "ppapi/utility/completion_callback_factory.h" | |
24 | 23 |
25 // Assert |context_| isn't holding any GL Errors. Done as a macro instead of a | 24 // Assert |context_| isn't holding any GL Errors. Done as a macro instead of a |
26 // function to preserve line number information in the failure message. | 25 // function to preserve line number information in the failure message. |
27 #define assertNoGLError() \ | 26 #define assertNoGLError() \ |
28 assert(!gles2_if_->GetError(context_->pp_resource())); | 27 assert(!gles2_if_->GetError(context_->pp_resource())); |
29 | 28 |
30 namespace { | 29 namespace { |
31 | 30 |
32 // This object is the global object representing this plugin library as long | 31 // This object is the global object representing this plugin library as long |
33 // as it is loaded. | 32 // as it is loaded. |
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
369 } | 368 } |
370 | 369 |
371 } // anonymous namespace | 370 } // anonymous namespace |
372 | 371 |
373 namespace pp { | 372 namespace pp { |
374 // Factory function for your specialization of the Module object. | 373 // Factory function for your specialization of the Module object. |
375 Module* CreateModule() { | 374 Module* CreateModule() { |
376 return new VCDemoModule(); | 375 return new VCDemoModule(); |
377 } | 376 } |
378 } // namespace pp | 377 } // namespace pp |
OLD | NEW |