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

Side by Side Diff: content/browser/renderer_host/media/video_capture_device_client_unittest.cc

Issue 2121043002: 16 bpp video stream capture, render and WebGL usage - Realsense R200 & SR300 support. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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 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 #include "media/capture/video/video_capture_device_client.h" 5 #include "media/capture/video/video_capture_device_client.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <memory> 9 #include <memory>
10 10
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 media::PIXEL_FORMAT_I420, 160 media::PIXEL_FORMAT_I420,
161 media::PIXEL_FORMAT_YV12, 161 media::PIXEL_FORMAT_YV12,
162 media::PIXEL_FORMAT_NV12, 162 media::PIXEL_FORMAT_NV12,
163 media::PIXEL_FORMAT_NV21, 163 media::PIXEL_FORMAT_NV21,
164 media::PIXEL_FORMAT_YUY2, 164 media::PIXEL_FORMAT_YUY2,
165 media::PIXEL_FORMAT_UYVY, 165 media::PIXEL_FORMAT_UYVY,
166 #if defined(OS_WIN) || defined(OS_LINUX) 166 #if defined(OS_WIN) || defined(OS_LINUX)
167 media::PIXEL_FORMAT_RGB24, 167 media::PIXEL_FORMAT_RGB24,
168 #endif 168 #endif
169 media::PIXEL_FORMAT_RGB32, 169 media::PIXEL_FORMAT_RGB32,
170 media::PIXEL_FORMAT_ARGB 170 media::PIXEL_FORMAT_ARGB,
171 media::PIXEL_FORMAT_Y16,
171 }; 172 };
172 173
173 for (media::VideoPixelFormat format : kSupportedFormats) { 174 for (media::VideoPixelFormat format : kSupportedFormats) {
174 params.requested_format.pixel_format = format; 175 params.requested_format.pixel_format = format;
175 176
176 EXPECT_CALL(*controller_, OnLog(_)).Times(1); 177 EXPECT_CALL(*controller_, OnLog(_)).Times(1);
177 EXPECT_CALL(*controller_, MockOnIncomingCapturedVideoFrame(_)).Times(1); 178 EXPECT_CALL(*controller_, MockOnIncomingCapturedVideoFrame(_)).Times(1);
178 device_client_->OnIncomingCapturedData( 179 device_client_->OnIncomingCapturedData(
179 data, params.requested_format.ImageAllocationSize(), 180 data, params.requested_format.ImageAllocationSize(),
180 params.requested_format, 0 /* clockwise_rotation */, base::TimeTicks(), 181 params.requested_format, 0 /* clockwise_rotation */, base::TimeTicks(),
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 230
230 EXPECT_EQ(coded_size.width(), size_and_rotation.output_resolution.width()); 231 EXPECT_EQ(coded_size.width(), size_and_rotation.output_resolution.width());
231 EXPECT_EQ(coded_size.height(), 232 EXPECT_EQ(coded_size.height(),
232 size_and_rotation.output_resolution.height()); 233 size_and_rotation.output_resolution.height());
233 234
234 Mock::VerifyAndClearExpectations(controller_.get()); 235 Mock::VerifyAndClearExpectations(controller_.get());
235 } 236 }
236 } 237 }
237 238
238 } // namespace content 239 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698