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

Issue 259523008: Remove RenderWidgetHost::GetSnapshotFromRenderer. (Closed)

Created:
6 years, 8 months ago by danakj
Modified:
6 years, 8 months ago
Reviewers:
Lei Zhang, kenrb, jam, jbauman, piman
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, feature-media-reviews_chromium.org, jam, darin-cc_chromium.org, extensions-reviews_chromium.org, piman, jbauman
Visibility:
Public.

Description

Remove RenderWidgetHost::GetSnapshotFromRenderer. This functionality does not exist on aura or android anymore, and is going away soon on Mac. RWHViews are always composited now on all platforms, so the active tab is always able to be copied in the browser process with CopyFromBackingStore(). This removes the ViewMsg_Snapshot and ViewHostMsg_Snapshot IPCs. R=piman, thestig BUG=251966, 251960 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=266399

Patch Set 1 #

Total comments: 2

Patch Set 2 : getsnapshotfromrenderer: #

Total comments: 2

Patch Set 3 : getsnapshotfromrenderer: #

Patch Set 4 : getsnapshotfromrenderer: rm #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -213 lines) Patch
M chrome/browser/extensions/api/capture_web_contents_function.h View 1 2 3 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/capture_web_contents_function.cc View 1 2 1 chunk +1 line, -22 lines 0 comments Download
M chrome/browser/thumbnails/thumbnail_tab_helper.cc View 2 chunks +1 line, -18 lines 0 comments Download
M chrome/browser/ui/pdf/pdf_browsertest.cc View 2 chunks +6 lines, -4 lines 0 comments Download
M content/browser/media/capture/web_contents_video_capture_device.cc View 1 1 chunk +1 line, -9 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_browsertest.cc View 1 chunk +0 lines, -44 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.h View 2 chunks +0 lines, -6 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 3 chunks +0 lines, -39 lines 0 comments Download
M content/common/view_messages.h View 2 chunks +0 lines, -10 lines 0 comments Download
M content/public/browser/render_widget_host.h View 1 chunk +0 lines, -10 lines 0 comments Download
M content/renderer/render_widget.h View 2 chunks +0 lines, -4 lines 0 comments Download
M content/renderer/render_widget.cc View 2 chunks +0 lines, -45 lines 0 comments Download

Messages

Total messages: 30 (0 generated)
danakj
6 years, 8 months ago (2014-04-24 23:07:37 UTC) #1
piman
LGTM, begone. https://codereview.chromium.org/259523008/diff/1/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/259523008/diff/1/content/browser/media/capture/web_contents_video_capture_device.cc#newcode660 content/browser/media/capture/web_contents_video_capture_device.cc:660: DidCopyFromBackingStore( Is reentrancy ok?
6 years, 8 months ago (2014-04-24 23:17:06 UTC) #2
jbauman
Is GetSnapshotFromRenderer only ever used on the active tab?
6 years, 8 months ago (2014-04-24 23:19:06 UTC) #3
danakj
https://codereview.chromium.org/259523008/diff/1/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/259523008/diff/1/content/browser/media/capture/web_contents_video_capture_device.cc#newcode660 content/browser/media/capture/web_contents_video_capture_device.cc:660: DidCopyFromBackingStore( On 2014/04/24 23:17:06, piman wrote: > Is reentrancy ...
6 years, 8 months ago (2014-04-24 23:22:33 UTC) #4
danakj
On 2014/04/24 23:19:06, jbauman wrote: > Is GetSnapshotFromRenderer only ever used on the active tab? ...
6 years, 8 months ago (2014-04-24 23:28:18 UTC) #5
danakj
+thestig for chrome/
6 years, 8 months ago (2014-04-24 23:33:06 UTC) #6
danakj
+kenrb for view_messages.h removing IPCs
6 years, 8 months ago (2014-04-24 23:33:40 UTC) #7
Lei Zhang
chrome/ lgtm with possibly more code to delete: https://codereview.chromium.org/259523008/diff/20001/chrome/browser/extensions/api/capture_web_contents_function.cc File chrome/browser/extensions/api/capture_web_contents_function.cc (right): https://codereview.chromium.org/259523008/diff/20001/chrome/browser/extensions/api/capture_web_contents_function.cc#newcode92 chrome/browser/extensions/api/capture_web_contents_function.cc:92: WebContents* ...
6 years, 8 months ago (2014-04-24 23:50:43 UTC) #8
jam
lgtm
6 years, 8 months ago (2014-04-25 05:10:55 UTC) #9
kenrb
lgtm
6 years, 8 months ago (2014-04-25 12:38:58 UTC) #10
danakj
https://codereview.chromium.org/259523008/diff/20001/chrome/browser/extensions/api/capture_web_contents_function.cc File chrome/browser/extensions/api/capture_web_contents_function.cc (right): https://codereview.chromium.org/259523008/diff/20001/chrome/browser/extensions/api/capture_web_contents_function.cc#newcode92 chrome/browser/extensions/api/capture_web_contents_function.cc:92: WebContents* contents = GetWebContentsForID(context_id_); On 2014/04/24 23:50:43, Lei Zhang ...
6 years, 8 months ago (2014-04-25 15:20:15 UTC) #11
danakj
The CQ bit was checked by danakj@chromium.org
6 years, 8 months ago (2014-04-25 15:20:56 UTC) #12
danakj
The CQ bit was unchecked by danakj@chromium.org
6 years, 8 months ago (2014-04-25 18:47:36 UTC) #13
danakj
The CQ bit was checked by danakj@chromium.org
6 years, 8 months ago (2014-04-25 18:47:40 UTC) #14
danakj
The CQ bit was unchecked by danakj@chromium.org
6 years, 8 months ago (2014-04-25 19:36:34 UTC) #15
danakj
The CQ bit was checked by danakj@chromium.org
6 years, 8 months ago (2014-04-25 19:40:40 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/259523008/60001
6 years, 8 months ago (2014-04-25 22:09:51 UTC) #17
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-25 23:19:51 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_clang_dbg
6 years, 8 months ago (2014-04-25 23:19:51 UTC) #19
danakj
The CQ bit was checked by danakj@chromium.org
6 years, 8 months ago (2014-04-25 23:20:15 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/259523008/60001
6 years, 8 months ago (2014-04-25 23:21:55 UTC) #21
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-26 00:26:12 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on win_chromium_x64_rel
6 years, 8 months ago (2014-04-26 00:26:13 UTC) #23
Lei Zhang
The CQ bit was checked by thestig@chromium.org
6 years, 8 months ago (2014-04-26 00:29:15 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/259523008/60001
6 years, 8 months ago (2014-04-26 00:31:34 UTC) #25
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-26 06:33:59 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on win_chromium_x64_rel
6 years, 8 months ago (2014-04-26 06:33:59 UTC) #27
danakj
The CQ bit was checked by danakj@chromium.org
6 years, 8 months ago (2014-04-26 15:43:17 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/259523008/60001
6 years, 8 months ago (2014-04-26 15:44:19 UTC) #29
commit-bot: I haz the power
6 years, 8 months ago (2014-04-27 00:18:57 UTC) #30
Message was sent while issue was closed.
Change committed as 266399

Powered by Google App Engine
This is Rietveld 408576698