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

Issue 2652343003: Replace source pointer in cc::CopyOutputRequest with a base::UnguessableToken (Closed)

Created:
3 years, 10 months ago by Saman Sami
Modified:
3 years, 10 months ago
Reviewers:
danakj, Fady Samuel, jam, vmpstr, miu
CC:
chromium-reviews, danakj+watch_chromium.org, posciak+watch_chromium.org, chfremer+watch_chromium.org, jam, jbauman+watch_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, mcasas+watch+vc_chromium.org, piman+watch_chromium.org, kalyank, cc-bugs_chromium.org, xjz+watch_chromium.org, miu+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Replace source pointer in cc::CopyOutputRequest with a base::UnguessableToken Soon we will be sending cc::CopyOutputRequests over IPC, but a copy request can contain a source pointer which basically indicates who is the creator of the request (no dereferencing occurs), and sending this raw pointer over IPC is not a good idea. This CL replaces the raw pointer with a base::UnguessableToken which acts a source ID. BUG=672071 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2652343003 Cr-Commit-Position: refs/heads/master@{#447174} Committed: https://chromium.googlesource.com/chromium/src/+/5846cb2c8ad77620776878f93a2b25be3b26449f

Patch Set 1 #

Patch Set 2 : c #

Patch Set 3 : c #

Total comments: 14

Patch Set 4 : c #

Total comments: 4

Patch Set 5 : c #

Total comments: 2

Patch Set 6 : c #

Patch Set 7 : c #

Total comments: 5

Patch Set 8 : c #

Total comments: 1

Patch Set 9 : c #

Unified diffs Side-by-side diffs Delta from patch set Stats (+113 lines, -153 lines) Patch
M cc/layers/layer.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -3 lines 0 comments Download
M cc/layers/layer_unittest.cc View 1 2 3 4 5 6 7 8 3 chunks +11 lines, -6 lines 0 comments Download
M cc/output/copy_output_request.h View 1 2 3 3 chunks +8 lines, -5 lines 0 comments Download
M cc/output/copy_output_request.cc View 1 chunk +2 lines, -4 lines 0 comments Download
M cc/surfaces/surface.cc View 1 2 3 4 5 6 7 1 chunk +7 lines, -6 lines 0 comments Download
M cc/surfaces/surface_factory_unittest.cc View 1 2 3 4 5 6 7 8 4 chunks +7 lines, -5 lines 0 comments Download
M content/browser/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/gpu/gpu_process_host.cc View 1 2 3 4 5 2 chunks +1 line, -1 line 0 comments Download
M content/browser/media/capture/web_contents_video_capture_device.cc View 1 2 3 4 5 6 chunks +38 lines, -30 lines 0 comments Download
M content/browser/media/capture/web_contents_video_capture_device_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/delegated_frame_host.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 6 7 8 2 chunks +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 2 3 4 5 6 7 8 2 chunks +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura_unittest.cc View 1 2 3 4 5 6 7 8 5 chunks +10 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_base.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_browsertest.cc View 1 2 3 4 5 3 chunks +9 lines, -4 lines 0 comments Download
A + content/browser/renderer_host/render_widget_host_view_frame_subscriber.h View 1 2 3 4 5 6 7 3 chunks +8 lines, -4 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.mm View 1 2 3 4 5 6 7 8 2 chunks +1 line, -1 line 0 comments Download
M content/public/browser/BUILD.gn View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M content/public/browser/render_widget_host_view_frame_subscriber.h View 1 2 3 4 5 1 chunk +0 lines, -75 lines 0 comments Download

Messages

Total messages: 61 (44 generated)
Fady Samuel
https://codereview.chromium.org/2652343003/diff/40001/cc/output/copy_output_request.h File cc/output/copy_output_request.h (right): https://codereview.chromium.org/2652343003/diff/40001/cc/output/copy_output_request.h#newcode51 cc/output/copy_output_request.h:51: void set_source(base::UnguessableToken source) { source_ = source; } const ...
3 years, 10 months ago (2017-01-26 21:22:42 UTC) #17
Saman Sami
PTAL https://codereview.chromium.org/2652343003/diff/40001/cc/output/copy_output_request.h File cc/output/copy_output_request.h (right): https://codereview.chromium.org/2652343003/diff/40001/cc/output/copy_output_request.h#newcode51 cc/output/copy_output_request.h:51: void set_source(base::UnguessableToken source) { source_ = source; } ...
3 years, 10 months ago (2017-01-26 21:47:28 UTC) #20
Fady Samuel
lgtm + nits https://codereview.chromium.org/2652343003/diff/60001/cc/layers/layer.cc File cc/layers/layer.cc (right): https://codereview.chromium.org/2652343003/diff/60001/cc/layers/layer.cc#newcode359 cc/layers/layer.cc:359: auto source = request->source(); const base::UnguessableToken& ...
3 years, 10 months ago (2017-01-26 21:49:34 UTC) #21
Saman Sami
danakj@: Please review cc/ jam@: Please review content/
3 years, 10 months ago (2017-01-26 21:51:06 UTC) #23
Saman Sami
https://codereview.chromium.org/2652343003/diff/60001/cc/layers/layer.cc File cc/layers/layer.cc (right): https://codereview.chromium.org/2652343003/diff/60001/cc/layers/layer.cc#newcode359 cc/layers/layer.cc:359: auto source = request->source(); On 2017/01/26 21:49:34, Fady Samuel ...
3 years, 10 months ago (2017-01-26 22:23:22 UTC) #24
jam
https://codereview.chromium.org/2652343003/diff/80001/content/public/browser/render_widget_host_view_frame_subscriber.h File content/public/browser/render_widget_host_view_frame_subscriber.h (right): https://codereview.chromium.org/2652343003/diff/80001/content/public/browser/render_widget_host_view_frame_subscriber.h#newcode1 content/public/browser/render_widget_host_view_frame_subscriber.h:1: // Copyright (c) 2012 The Chromium Authors. All rights ...
3 years, 10 months ago (2017-01-26 23:51:02 UTC) #27
Saman Sami
vmpstr@: Please review cc/
3 years, 10 months ago (2017-01-27 18:46:29 UTC) #31
Saman Sami
PTAL https://codereview.chromium.org/2652343003/diff/80001/content/public/browser/render_widget_host_view_frame_subscriber.h File content/public/browser/render_widget_host_view_frame_subscriber.h (right): https://codereview.chromium.org/2652343003/diff/80001/content/public/browser/render_widget_host_view_frame_subscriber.h#newcode1 content/public/browser/render_widget_host_view_frame_subscriber.h:1: // Copyright (c) 2012 The Chromium Authors. All ...
3 years, 10 months ago (2017-01-27 19:22:05 UTC) #36
vmpstr
cc lgtm with nits https://codereview.chromium.org/2652343003/diff/120001/cc/layers/layer.cc File cc/layers/layer.cc (right): https://codereview.chromium.org/2652343003/diff/120001/cc/layers/layer.cc#newcode362 cc/layers/layer.cc:362: [source](const std::unique_ptr<CopyOutputRequest>& x) { nit: ...
3 years, 10 months ago (2017-01-27 19:41:25 UTC) #37
Saman Sami
https://codereview.chromium.org/2652343003/diff/120001/cc/layers/layer.cc File cc/layers/layer.cc (right): https://codereview.chromium.org/2652343003/diff/120001/cc/layers/layer.cc#newcode362 cc/layers/layer.cc:362: [source](const std::unique_ptr<CopyOutputRequest>& x) { On 2017/01/27 19:41:25, vmpstr wrote: ...
3 years, 10 months ago (2017-01-27 20:03:20 UTC) #39
miu
lgtm https://codereview.chromium.org/2652343003/diff/140001/content/browser/media/capture/web_contents_video_capture_device.cc File content/browser/media/capture/web_contents_video_capture_device.cc (right): https://codereview.chromium.org/2652343003/diff/140001/content/browser/media/capture/web_contents_video_capture_device.cc#newcode556 content/browser/media/capture/web_contents_video_capture_device.cc:556: view->CopyFromCompositingSurfaceToVideoFrame( Note: It would be nice if this ...
3 years, 10 months ago (2017-01-30 22:01:42 UTC) #44
Fady Samuel
On 2017/01/30 22:01:42, miu wrote: > lgtm > > https://codereview.chromium.org/2652343003/diff/140001/content/browser/media/capture/web_contents_video_capture_device.cc > File content/browser/media/capture/web_contents_video_capture_device.cc (right): > ...
3 years, 10 months ago (2017-01-30 22:04:37 UTC) #45
jam
lgtm
3 years, 10 months ago (2017-01-31 01:03:47 UTC) #46
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/2652343003/140001
3 years, 10 months ago (2017-01-31 01:08:00 UTC) #49
commit-bot: I haz the power
Try jobs failed on following builders: ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device-xcode-clang/builds/30184) ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 10 months ago (2017-01-31 01:10:23 UTC) #51
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/2652343003/160001
3 years, 10 months ago (2017-01-31 01:59:04 UTC) #58
commit-bot: I haz the power
3 years, 10 months ago (2017-01-31 03:10:27 UTC) #61
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/5846cb2c8ad77620776878f93a2b...

Powered by Google App Engine
This is Rietveld 408576698