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

Side by Side Diff: content/renderer/media/mock_media_stream_video_source.h

Issue 287313002: Pass a TimeTicks along video capture pipeline to represent capture time (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merged and land Created 6 years, 6 months 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_VIDEO_SOURCE_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_VIDEO_SOURCE_H_
6 #define CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_VIDEO_SOURCE_H_ 6 #define CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_VIDEO_SOURCE_H_
7 7
8 #include "content/renderer/media/media_stream_video_source.h" 8 #include "content/renderer/media/media_stream_video_source.h"
9 9
10 namespace content { 10 namespace content {
(...skipping 24 matching lines...) Expand all
35 35
36 void CompleteGetSupportedFormats(); 36 void CompleteGetSupportedFormats();
37 37
38 const media::VideoCaptureParams& start_params() const { return params_; } 38 const media::VideoCaptureParams& start_params() const { return params_; }
39 int max_requested_height() const { return max_requested_height_; } 39 int max_requested_height() const { return max_requested_height_; }
40 int max_requested_width() const { return max_requested_width_; } 40 int max_requested_width() const { return max_requested_width_; }
41 41
42 protected: 42 protected:
43 void DeliverVideoFrameOnIO(const scoped_refptr<media::VideoFrame>& frame, 43 void DeliverVideoFrameOnIO(const scoped_refptr<media::VideoFrame>& frame,
44 media::VideoCaptureFormat format, 44 media::VideoCaptureFormat format,
45 const base::TimeTicks& estimated_capture_time,
45 const VideoCaptureDeliverFrameCB& frame_callback); 46 const VideoCaptureDeliverFrameCB& frame_callback);
46 47
47 // Implements MediaStreamVideoSource. 48 // Implements MediaStreamVideoSource.
48 virtual void GetCurrentSupportedFormats( 49 virtual void GetCurrentSupportedFormats(
49 int max_requested_height, 50 int max_requested_height,
50 int max_requested_width, 51 int max_requested_width,
51 const VideoCaptureDeviceFormatsCB& callback) OVERRIDE; 52 const VideoCaptureDeviceFormatsCB& callback) OVERRIDE;
52 virtual void StartSourceImpl( 53 virtual void StartSourceImpl(
53 const media::VideoCaptureParams& params, 54 const media::VideoCaptureParams& params,
54 const VideoCaptureDeliverFrameCB& frame_callback) OVERRIDE; 55 const VideoCaptureDeliverFrameCB& frame_callback) OVERRIDE;
55 virtual void StopSourceImpl() OVERRIDE; 56 virtual void StopSourceImpl() OVERRIDE;
56 57
57 private: 58 private:
58 media::VideoCaptureParams params_; 59 media::VideoCaptureParams params_;
59 media::VideoCaptureFormats supported_formats_; 60 media::VideoCaptureFormats supported_formats_;
60 bool manual_get_supported_formats_; 61 bool manual_get_supported_formats_;
61 int max_requested_height_; 62 int max_requested_height_;
62 int max_requested_width_; 63 int max_requested_width_;
63 bool attempted_to_start_; 64 bool attempted_to_start_;
64 VideoCaptureDeviceFormatsCB formats_callback_; 65 VideoCaptureDeviceFormatsCB formats_callback_;
65 VideoCaptureDeliverFrameCB frame_callback_; 66 VideoCaptureDeliverFrameCB frame_callback_;
66 67
67 DISALLOW_COPY_AND_ASSIGN(MockMediaStreamVideoSource); 68 DISALLOW_COPY_AND_ASSIGN(MockMediaStreamVideoSource);
68 }; 69 };
69 70
70 } // namespace content 71 } // namespace content
71 72
72 #endif // CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_VIDEO_SOURCE_H_ 73 #endif // CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_VIDEO_SOURCE_H_
OLDNEW
« no previous file with comments | « content/renderer/media/mock_media_stream_video_sink.cc ('k') | content/renderer/media/mock_media_stream_video_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698