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

Issue 1093173002: Do not use libv4l if no plugin is registered. (Closed)

Created:
5 years, 8 months ago by wuchengli
Modified:
5 years, 8 months ago
Reviewers:
Pawel Osciak, henryhsu
CC:
chromium-reviews, posciak+watch_chromium.org, jam, mcasas+watch_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, piman+watch_chromium.org, wjia+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Do not use libv4l if no plugin is registered. v4l2_fd_open now returns -1 if no plugin is registered. Do not use v4l2_ioctl and v4l2_close when there is no plugin. This can reduce the overhead. BUG=chrome-os-partner:38761 TEST=Play videos on CrOS veyron_jerry. Committed: https://crrev.com/cd87e70f73b742263693831d42f4fed92d9b85c7 Cr-Commit-Position: refs/heads/master@{#326010}

Patch Set 1 : #

Total comments: 6

Patch Set 2 : address review comments #

Total comments: 4

Patch Set 3 : use ScopedGeneric::is_valid() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -28 lines) Patch
M content/common/gpu/media/generic_v4l2_device.h View 1 2 chunks +6 lines, -2 lines 0 comments Download
M content/common/gpu/media/generic_v4l2_device.cc View 1 2 7 chunks +27 lines, -26 lines 0 comments Download

Messages

Total messages: 14 (4 generated)
wuchengli
PTAL.
5 years, 8 months ago (2015-04-21 03:28:16 UTC) #3
Pawel Osciak
https://codereview.chromium.org/1093173002/diff/20001/content/common/gpu/media/generic_v4l2_device.cc File content/common/gpu/media/generic_v4l2_device.cc (right): https://codereview.chromium.org/1093173002/diff/20001/content/common/gpu/media/generic_v4l2_device.cc#newcode66 content/common/gpu/media/generic_v4l2_device.cc:66: close(device_fd_); Perhaps this would be a good time to ...
5 years, 8 months ago (2015-04-21 05:02:42 UTC) #4
wuchengli
All done. PTAL. https://codereview.chromium.org/1093173002/diff/20001/content/common/gpu/media/generic_v4l2_device.cc File content/common/gpu/media/generic_v4l2_device.cc (right): https://codereview.chromium.org/1093173002/diff/20001/content/common/gpu/media/generic_v4l2_device.cc#newcode66 content/common/gpu/media/generic_v4l2_device.cc:66: close(device_fd_); On 2015/04/21 05:02:42, Pawel Osciak ...
5 years, 8 months ago (2015-04-21 06:12:10 UTC) #6
Pawel Osciak
lgtm % nits https://codereview.chromium.org/1093173002/diff/60001/content/common/gpu/media/generic_v4l2_device.cc File content/common/gpu/media/generic_v4l2_device.cc (right): https://codereview.chromium.org/1093173002/diff/60001/content/common/gpu/media/generic_v4l2_device.cc#newcode51 content/common/gpu/media/generic_v4l2_device.cc:51: if (use_libv4l2_ && device_fd_ != -1) ...
5 years, 8 months ago (2015-04-21 09:19:47 UTC) #7
wuchengli
https://codereview.chromium.org/1093173002/diff/60001/content/common/gpu/media/generic_v4l2_device.cc File content/common/gpu/media/generic_v4l2_device.cc (right): https://codereview.chromium.org/1093173002/diff/60001/content/common/gpu/media/generic_v4l2_device.cc#newcode51 content/common/gpu/media/generic_v4l2_device.cc:51: if (use_libv4l2_ && device_fd_ != -1) On 2015/04/21 09:19:46, ...
5 years, 8 months ago (2015-04-21 09:25:24 UTC) #8
wuchengli
I upload a small new patchset to use ScopedGeneric::is_valid(). You can take a look if ...
5 years, 8 months ago (2015-04-21 09:38:32 UTC) #9
Pawel Osciak
lgtm
5 years, 8 months ago (2015-04-21 10:30:27 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1093173002/80001
5 years, 8 months ago (2015-04-21 11:41:14 UTC) #12
commit-bot: I haz the power
Committed patchset #3 (id:80001)
5 years, 8 months ago (2015-04-21 11:44:16 UTC) #13
commit-bot: I haz the power
5 years, 8 months ago (2015-04-21 11:45:08 UTC) #14
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/cd87e70f73b742263693831d42f4fed92d9b85c7
Cr-Commit-Position: refs/heads/master@{#326010}

Powered by Google App Engine
This is Rietveld 408576698