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

Side by Side Diff: media/capture/video/video_capture_device_client.h

Issue 2673373003: getUserMeida: report device starting states (Closed)
Patch Set: address comments on PS#3 Created 3 years, 10 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 MEDIA_CAPTURE_VIDEO_VIDEO_CAPTURE_DEVICE_CLIENT_H_ 5 #ifndef MEDIA_CAPTURE_VIDEO_VIDEO_CAPTURE_DEVICE_CLIENT_H_
6 #define MEDIA_CAPTURE_VIDEO_VIDEO_CAPTURE_DEVICE_CLIENT_H_ 6 #define MEDIA_CAPTURE_VIDEO_VIDEO_CAPTURE_DEVICE_CLIENT_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 base::TimeDelta timestamp, 74 base::TimeDelta timestamp,
75 gfx::Rect visible_rect, 75 gfx::Rect visible_rect,
76 const VideoFrameMetadata& additional_metadata) override; 76 const VideoFrameMetadata& additional_metadata) override;
77 Buffer ResurrectLastOutputBuffer(const gfx::Size& dimensions, 77 Buffer ResurrectLastOutputBuffer(const gfx::Size& dimensions,
78 media::VideoPixelFormat format, 78 media::VideoPixelFormat format,
79 media::VideoPixelStorage storage, 79 media::VideoPixelStorage storage,
80 int new_frame_feedback_id) override; 80 int new_frame_feedback_id) override;
81 void OnError(const tracked_objects::Location& from_here, 81 void OnError(const tracked_objects::Location& from_here,
82 const std::string& reason) override; 82 const std::string& reason) override;
83 void OnLog(const std::string& message) override; 83 void OnLog(const std::string& message) override;
84 void OnStarted() override;
84 double GetBufferPoolUtilization() const override; 85 double GetBufferPoolUtilization() const override;
85 86
86 private: 87 private:
87 void InitializeI420PlanePointers(const gfx::Size& dimensions, 88 void InitializeI420PlanePointers(const gfx::Size& dimensions,
88 uint8_t* const data, 89 uint8_t* const data,
89 uint8_t** y_plane_data, 90 uint8_t** y_plane_data,
90 uint8_t** u_plane_data, 91 uint8_t** u_plane_data,
91 uint8_t** v_plane_data); 92 uint8_t** v_plane_data);
92 93
93 // A branch of OnIncomingCapturedData for Y16 frame_format.pixel_format. 94 // A branch of OnIncomingCapturedData for Y16 frame_format.pixel_format.
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 // concurrently. Producers are allowed to call from multiple threads, but not 126 // concurrently. Producers are allowed to call from multiple threads, but not
126 // concurrently. 127 // concurrently.
127 DFAKE_MUTEX(call_from_producer_); 128 DFAKE_MUTEX(call_from_producer_);
128 129
129 DISALLOW_COPY_AND_ASSIGN(VideoCaptureDeviceClient); 130 DISALLOW_COPY_AND_ASSIGN(VideoCaptureDeviceClient);
130 }; 131 };
131 132
132 } // namespace media 133 } // namespace media
133 134
134 #endif // MEDIA_CAPTURE_VIDEO_VIDEO_CAPTURE_DEVICE_CLIENT_H_ 135 #endif // MEDIA_CAPTURE_VIDEO_VIDEO_CAPTURE_DEVICE_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698