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

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

Issue 2419793003: media: Use native video enum types in media mojo interfaces (Closed)
Patch Set: media: Use native video enum types in media mojo interfaces Created 4 years, 2 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/common/video_capture.mojom ('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 48dab4cbb1d143564c71fad9b4030cc36a1d968a..ee76c612ed10b6a427e38ece00b1a944d6ecf8b1 100644
--- a/content/renderer/media/video_capture_impl.cc
+++ b/content/renderer/media/video_capture_impl.cc
@@ -261,11 +261,11 @@ void VideoCaptureImpl::OnBufferReady(int32_t buffer_id,
DVLOG(1) << __func__ << " buffer_id: " << buffer_id;
DCHECK(io_task_runner_->BelongsToCurrentThread());
- DCHECK_EQ(media::mojom::VideoFormat::I420, info->pixel_format);
+ DCHECK_EQ(media::PIXEL_FORMAT_I420, info->pixel_format);
DCHECK_EQ(media::PIXEL_STORAGE_CPU, info->storage_type);
if (state_ != VIDEO_CAPTURE_STATE_STARTED ||
- info->pixel_format != media::mojom::VideoFormat::I420 ||
+ info->pixel_format != media::PIXEL_FORMAT_I420 ||
info->storage_type != media::PIXEL_STORAGE_CPU) {
GetVideoCaptureHost()->ReleaseBuffer(device_id_, buffer_id,
gpu::SyncToken(), -1.0);
« no previous file with comments | « content/common/video_capture.mojom ('k') | content/renderer/media/video_capture_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698