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

Issue 2167313002: ImageCapture: introduce image_capture Blob to allow move-only semantics (Closed)

Created:
4 years, 5 months ago by mcasas
Modified:
4 years, 5 months ago
Reviewers:
Tom Sepez, yzshen1, Wez, foolip
CC:
chromium-reviews, qsr+mojo_chromium.org, Aaron Boodman, posciak+watch_chromium.org, viettrungluu+watch_chromium.org, jam, yzshen+watch_chromium.org, abarth-chromium, haraken, feature-media-reviews_chromium.org, darin-cc_chromium.org, mcasas+watch+vc_chromium.org, blink-reviews, alokp+watch_chromium.org, darin (slow to review), ben+mojo_chromium.org, miu+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ImageCapture: introduce image_capture Blob to allow move-only semantics https://crrev.com/2166713002 introduce usage of STL/WTF types for image_capture. But that translated bindings of array<> to const std::vector<>& which forced strange const_cast<>s to avoid copies. This CL bundles mime_type and data into a mojo::Struct that is move-only, hence avoiding the copies of, potentially large, photo frames. BUG=630040 Committed: https://crrev.com/431ae31e66ce1251570828f5a2c2773696774d58 Cr-Commit-Position: refs/heads/master@{#407333}

Patch Set 1 : #

Total comments: 4

Patch Set 2 : foolip comments and rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -50 lines) Patch
M content/browser/media/capture/image_capture_impl.cc View 1 chunk +3 lines, -7 lines 0 comments Download
M media/capture/video/android/video_capture_device_android.cc View 1 1 chunk +4 lines, -4 lines 0 comments Download
M media/capture/video/fake_video_capture_device.cc View 1 1 chunk +4 lines, -3 lines 0 comments Download
M media/capture/video/fake_video_capture_device_unittest.cc View 1 1 chunk +7 lines, -9 lines 0 comments Download
M media/capture/video/mac/video_capture_device_mac.mm View 1 chunk +4 lines, -2 lines 0 comments Download
M media/capture/video/video_capture_device.h View 1 chunk +2 lines, -2 lines 0 comments Download
M media/capture/video/video_capture_device_unittest.cc View 1 chunk +8 lines, -10 lines 0 comments Download
M media/mojo/interfaces/image_capture.mojom View 1 2 chunks +9 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/imagecapture/resources/mock-imagecapture.js View 1 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/imagecapture/takephoto.html View 1 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/imagecapture/ImageCapture.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/imagecapture/ImageCapture.cpp View 1 1 chunk +4 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/imagecapture/PhotoCapabilities.idl View 1 1 chunk +0 lines, -3 lines 0 comments Download

Messages

Total messages: 25 (15 generated)
mcasas
yzshen@ PTAL (finally managed to get the LayoutTests to work; it was, indeed, a silly ...
4 years, 5 months ago (2016-07-21 23:03:57 UTC) #8
yzshen1
lgtm
4 years, 5 months ago (2016-07-22 19:06:57 UTC) #11
mcasas
wez@ image_capture_impl.cc please foolip@ WebKit changes plz
4 years, 5 months ago (2016-07-22 21:03:30 UTC) #13
Wez
image_capture_impl.cc LGTM
4 years, 5 months ago (2016-07-22 22:11:38 UTC) #14
foolip
WebKit RS LGTM https://codereview.chromium.org/2167313002/diff/40001/third_party/WebKit/LayoutTests/imagecapture/takephoto.html File third_party/WebKit/LayoutTests/imagecapture/takephoto.html (right): https://codereview.chromium.org/2167313002/diff/40001/third_party/WebKit/LayoutTests/imagecapture/takephoto.html#newcode33 third_party/WebKit/LayoutTests/imagecapture/takephoto.html:33: assert_true('image/cat' === blob.type); assert_equals(blob.type, 'image/cat') for ...
4 years, 5 months ago (2016-07-22 23:35:19 UTC) #15
Tom Sepez
mojom lgtm
4 years, 5 months ago (2016-07-23 01:08:35 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2167313002/60001
4 years, 5 months ago (2016-07-23 02:32:27 UTC) #20
mcasas
https://codereview.chromium.org/2167313002/diff/40001/third_party/WebKit/LayoutTests/imagecapture/takephoto.html File third_party/WebKit/LayoutTests/imagecapture/takephoto.html (right): https://codereview.chromium.org/2167313002/diff/40001/third_party/WebKit/LayoutTests/imagecapture/takephoto.html#newcode33 third_party/WebKit/LayoutTests/imagecapture/takephoto.html:33: assert_true('image/cat' === blob.type); On 2016/07/22 23:35:18, foolip wrote: > ...
4 years, 5 months ago (2016-07-23 02:58:10 UTC) #21
commit-bot: I haz the power
Committed patchset #2 (id:60001)
4 years, 5 months ago (2016-07-23 03:30:51 UTC) #23
commit-bot: I haz the power
4 years, 5 months ago (2016-07-23 03:34:14 UTC) #25
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/431ae31e66ce1251570828f5a2c2773696774d58
Cr-Commit-Position: refs/heads/master@{#407333}

Powered by Google App Engine
This is Rietveld 408576698