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

Unified Diff: media/video/capture/video_capture_types.cc

Issue 83793004: Implement IPCs and VideoCapture::Client interfaces for texture capture (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 5744a8bbb Nits. Created 6 years, 11 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
Index: media/video/capture/video_capture_types.cc
diff --git a/media/video/capture/video_capture_types.cc b/media/video/capture/video_capture_types.cc
index aee3865a57be3f0e4f22017ee2c3e6a22b0052a8..98958e5760c118afd2c24463933820227ff1fa00 100644
--- a/media/video/capture/video_capture_types.cc
+++ b/media/video/capture/video_capture_types.cc
@@ -21,7 +21,7 @@ VideoCaptureFormat::VideoCaptureFormat(const gfx::Size& frame_size,
bool VideoCaptureFormat::IsValid() const {
return (frame_size.width() < media::limits::kMaxDimension) &&
(frame_size.height() < media::limits::kMaxDimension) &&
- (frame_size.GetArea() > 0) &&
+ (frame_size.GetArea() >= 0) &&
mcasas 2014/01/21 14:34:02 I think a frame with dimensions (0,0) is correct i
(frame_size.GetArea() < media::limits::kMaxCanvas) &&
(frame_rate > 0) &&
(frame_rate < media::limits::kMaxFramesPerSecond) &&

Powered by Google App Engine
This is Rietveld 408576698