| 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" |
| 23 | 24 |
| 24 // Assert |context_| isn't holding any GL Errors. Done as a macro instead of a | 25 // Assert |context_| isn't holding any GL Errors. Done as a macro instead of a |
| 25 // function to preserve line number information in the failure message. | 26 // function to preserve line number information in the failure message. |
| 26 #define assertNoGLError() \ | 27 #define assertNoGLError() \ |
| 27 assert(!gles2_if_->GetError(context_->pp_resource())); | 28 assert(!gles2_if_->GetError(context_->pp_resource())); |
| 28 | 29 |
| 29 namespace { | 30 namespace { |
| 30 | 31 |
| 31 // This object is the global object representing this plugin library as long | 32 // This object is the global object representing this plugin library as long |
| 32 // as it is loaded. | 33 // as it is loaded. |
| (...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 368 } | 369 } |
| 369 | 370 |
| 370 } // anonymous namespace | 371 } // anonymous namespace |
| 371 | 372 |
| 372 namespace pp { | 373 namespace pp { |
| 373 // Factory function for your specialization of the Module object. | 374 // Factory function for your specialization of the Module object. |
| 374 Module* CreateModule() { | 375 Module* CreateModule() { |
| 375 return new VCDemoModule(); | 376 return new VCDemoModule(); |
| 376 } | 377 } |
| 377 } // namespace pp | 378 } // namespace pp |
| OLD | NEW |