Index: webkit/plugins/ppapi/resource_creation_impl.cc |
diff --git a/webkit/plugins/ppapi/resource_creation_impl.cc b/webkit/plugins/ppapi/resource_creation_impl.cc |
index 354e62c8972fd3684f251c4208438ae07a1b5e5a..42251fdfd3c7069eb9ba35267a7516840514b7d9 100644 |
--- a/webkit/plugins/ppapi/resource_creation_impl.cc |
+++ b/webkit/plugins/ppapi/resource_creation_impl.cc |
@@ -29,6 +29,7 @@ |
#include "webkit/plugins/ppapi/ppb_transport_impl.h" |
#include "webkit/plugins/ppapi/ppb_url_loader_impl.h" |
#include "webkit/plugins/ppapi/ppb_url_request_info_impl.h" |
+#include "webkit/plugins/ppapi/ppb_video_capture_impl.h" |
#include "webkit/plugins/ppapi/ppb_video_decoder_impl.h" |
#include "webkit/plugins/ppapi/ppb_video_layer_impl.h" |
@@ -284,6 +285,14 @@ PP_Resource ResourceCreationImpl::CreateURLRequestInfo(PP_Instance instance) { |
return ReturnResource(new PPB_URLRequestInfo_Impl(instance_)); |
} |
+PP_Resource ResourceCreationImpl::CreateVideoCapture(PP_Instance instance) { |
+ scoped_refptr<PPB_VideoCapture_Impl> video_capture = |
+ new PPB_VideoCapture_Impl(instance_); |
+ if (!video_capture->Init()) |
+ return 0; |
+ return ReturnResource(video_capture); |
+} |
+ |
PP_Resource ResourceCreationImpl::CreateVideoDecoder( |
PP_Instance instance, |
PP_Resource context3d_id, |