Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(480)

Side by Side Diff: ppapi/thunk/ppb_video_capture_api.h

Issue 11274036: Refactor video capture to new design (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: bind callback Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 #ifndef PPAPI_THUNK_VIDEO_CAPTURE_API_H_ 5 #ifndef PPAPI_THUNK_VIDEO_CAPTURE_API_H_
6 #define PPAPI_THUNK_VIDEO_CAPTURE_API_H_ 6 #define PPAPI_THUNK_VIDEO_CAPTURE_API_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 15 matching lines...) Expand all
26 scoped_refptr<TrackedCallback> callback) = 0; 26 scoped_refptr<TrackedCallback> callback) = 0;
27 virtual int32_t Open(const std::string& device_id, 27 virtual int32_t Open(const std::string& device_id,
28 const PP_VideoCaptureDeviceInfo_Dev& requested_info, 28 const PP_VideoCaptureDeviceInfo_Dev& requested_info,
29 uint32_t buffer_count, 29 uint32_t buffer_count,
30 scoped_refptr<TrackedCallback> callback) = 0; 30 scoped_refptr<TrackedCallback> callback) = 0;
31 virtual int32_t StartCapture() = 0; 31 virtual int32_t StartCapture() = 0;
32 virtual int32_t ReuseBuffer(uint32_t buffer) = 0; 32 virtual int32_t ReuseBuffer(uint32_t buffer) = 0;
33 virtual int32_t StopCapture() = 0; 33 virtual int32_t StopCapture() = 0;
34 virtual void Close() = 0; 34 virtual void Close() = 0;
35 35
36 // For backward compatibility.
37 virtual int32_t StartCapture0_1(
38 const PP_VideoCaptureDeviceInfo_Dev& requested_info,
39 uint32_t buffer_count) = 0;
40
41 // This function is not exposed through the C API, but returns the internal 36 // This function is not exposed through the C API, but returns the internal
42 // data for easy proxying. 37 // data for easy proxying.
43 virtual const std::vector<DeviceRefData>& GetDeviceRefData() const = 0; 38 virtual const std::vector<DeviceRefData>& GetDeviceRefData() const = 0;
yzshen1 2012/11/06 06:51:40 I don't think you still need this.
victorhsieh 2012/11/08 09:20:18 Done.
yzshen1 2012/11/10 01:14:40 As I said in the other file, we can remove it beca
44 }; 39 };
45 40
46 } // namespace thunk 41 } // namespace thunk
47 } // namespace ppapi 42 } // namespace ppapi
48 43
49 #endif // PPAPI_THUNK_VIDEO_CAPTURE_API_H_ 44 #endif // PPAPI_THUNK_VIDEO_CAPTURE_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698