summaryrefslogtreecommitdiffstats
path: root/ppapi/thunk/ppb_video_capture_api.h
diff options
context:
space:
mode:
authorvictorhsieh@chromium.org <victorhsieh@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-16 07:53:08 +0000
committervictorhsieh@chromium.org <victorhsieh@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-16 07:53:08 +0000
commitcc12387e17998f7d1dc467f06f60fa1b0be88d73 (patch)
tree31d1548f140a56eee2879e5c7c51a688fdc1a4ff /ppapi/thunk/ppb_video_capture_api.h
parent0fa16e26f25c6680499146492003a374174023fe (diff)
downloadchromium_src-cc12387e17998f7d1dc467f06f60fa1b0be88d73.zip
chromium_src-cc12387e17998f7d1dc467f06f60fa1b0be88d73.tar.gz
chromium_src-cc12387e17998f7d1dc467f06f60fa1b0be88d73.tar.bz2
Refactor video capture to new design, as part of the whole Pepper resource redesign.
New design provides higher performance and involves writing much less code. See the pepper implementation doc for detail. http://www.chromium.org/developers/design-documents/pepper-plugin-implementation BUG= Review URL: https://chromiumcodereview.appspot.com/11274036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@168163 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/thunk/ppb_video_capture_api.h')
-rw-r--r--ppapi/thunk/ppb_video_capture_api.h13
1 files changed, 5 insertions, 8 deletions
diff --git a/ppapi/thunk/ppb_video_capture_api.h b/ppapi/thunk/ppb_video_capture_api.h
index 117b495..a12e201 100644
--- a/ppapi/thunk/ppb_video_capture_api.h
+++ b/ppapi/thunk/ppb_video_capture_api.h
@@ -10,6 +10,8 @@
#include "base/memory/ref_counted.h"
#include "ppapi/c/dev/ppb_video_capture_dev.h"
+#include "ppapi/c/pp_array_output.h"
+#include "ppapi/c/pp_resource.h"
namespace ppapi {
@@ -33,14 +35,9 @@ class PPB_VideoCapture_API {
virtual int32_t StopCapture() = 0;
virtual void Close() = 0;
- // For backward compatibility.
- virtual int32_t StartCapture0_1(
- const PP_VideoCaptureDeviceInfo_Dev& requested_info,
- uint32_t buffer_count) = 0;
-
- // This function is not exposed through the C API, but returns the internal
- // data for easy proxying.
- virtual const std::vector<DeviceRefData>& GetDeviceRefData() const = 0;
+ // This function is not exposed through the C API. It is only used by flash
+ // to make synchronous device enumeration.
+ virtual int32_t EnumerateDevicesSync(const PP_ArrayOutput& devices) = 0;
};
} // namespace thunk