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

Unified Diff: content/renderer/media/video_capture_impl.cc

Issue 10108009: Move VideoCapture::VideoCaptureCapability to video_capture_types.h (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix content_unittests build failure Created 8 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/media/video_capture_impl.h ('k') | content/renderer/media/video_capture_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/video_capture_impl.cc
diff --git a/content/renderer/media/video_capture_impl.cc b/content/renderer/media/video_capture_impl.cc
index 14ef94bf76e43fb6f3080007911c17455f333560..0479a401712affae844aef5b709c3d1de78256b6 100644
--- a/content/renderer/media/video_capture_impl.cc
+++ b/content/renderer/media/video_capture_impl.cc
@@ -94,8 +94,8 @@ void VideoCaptureImpl::DoDeInit(base::Closure task) {
void VideoCaptureImpl::StartCapture(
media::VideoCapture::EventHandler* handler,
- const VideoCaptureCapability& capability) {
- DCHECK_EQ(capability.raw_type, media::VideoFrame::I420);
+ const media::VideoCaptureCapability& capability) {
+ DCHECK_EQ(capability.color, media::VideoFrame::I420);
capture_message_loop_proxy_->PostTask(FROM_HERE,
base::Bind(&VideoCaptureImpl::DoStartCapture,
@@ -149,7 +149,7 @@ void VideoCaptureImpl::OnDelegateAdded(int32 device_id) {
void VideoCaptureImpl::DoStartCapture(
media::VideoCapture::EventHandler* handler,
- const VideoCaptureCapability& capability) {
+ const media::VideoCaptureCapability& capability) {
DCHECK(capture_message_loop_proxy_->BelongsToCurrentThread());
if (state_ == video_capture::kError) {
@@ -202,10 +202,10 @@ void VideoCaptureImpl::DoStartCapture(
clients_[handler] = capability;
DCHECK_EQ(clients_.size(), 1ul);
- video_type_ = capability.raw_type;
+ video_type_ = capability.color;
current_params_.width = capability.width;
current_params_.height = capability.height;
- current_params_.frame_per_second = capability.max_fps;
+ current_params_.frame_per_second = capability.frame_rate;
DVLOG(1) << "StartCapture: starting with first resolution ("
<< current_params_.width << ", " << current_params_.height << ")";
@@ -359,7 +359,7 @@ void VideoCaptureImpl::DoDelegateAdded(int32 device_id) {
for (ClientInfo::iterator it = clients_pending_on_filter_.begin();
it != clients_pending_on_filter_.end(); ) {
media::VideoCapture::EventHandler* handler = it->first;
- const VideoCaptureCapability capability = it->second;
+ const media::VideoCaptureCapability capability = it->second;
clients_pending_on_filter_.erase(it++);
StartCapture(handler, capability);
}
« no previous file with comments | « content/renderer/media/video_capture_impl.h ('k') | content/renderer/media/video_capture_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698