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

Issue 2710073003: DelegatedFrameHost should not return old resources to renderer (Closed)

Created:
3 years, 10 months ago by Saman Sami
Modified:
3 years, 10 months ago
Reviewers:
Fady Samuel, jam, jbauman, jam1
CC:
chromium-reviews, yusukes+watch_chromium.org, shuchen+watch_chromium.org, jam, jbauman+watch_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, piman+watch_chromium.org, kalyank, danakj+watch_chromium.org, James Su, xjz+watch_chromium.org, miu+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

DelegatedFrameHost should not return old resources to renderer As you can see in RendererCompositorFrameSink::OnReclaimCompositorResources, the renderer will ignore the resources returned by DelegatedFrameHost that have an old compositor_frame_sink_id, so we might as well not return them. This CL also fixes a unit test that wrongfully tested that the resources must be returned even after context lost. BUG=692880 TBR=jam@chromium.org Review-Url: https://codereview.chromium.org/2710073003 Cr-Commit-Position: refs/heads/master@{#452394} Committed: https://chromium.googlesource.com/chromium/src/+/53815530f079d15e42d21571466156b40881ed58

Patch Set 1 #

Total comments: 2

Patch Set 2 : Updated comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -19 lines) Patch
M content/browser/renderer_host/delegated_frame_host.cc View 1 chunk +1 line, -5 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura_unittest.cc View 1 2 chunks +5 lines, -14 lines 0 comments Download

Messages

Total messages: 26 (16 generated)
Saman Sami
fsamuel@: Please review all files.
3 years, 10 months ago (2017-02-22 23:14:25 UTC) #5
Fady Samuel
LGTM + nit https://codereview.chromium.org/2710073003/diff/1/content/browser/renderer_host/render_widget_host_view_aura_unittest.cc File content/browser/renderer_host/render_widget_host_view_aura_unittest.cc (right): https://codereview.chromium.org/2710073003/diff/1/content/browser/renderer_host/render_widget_host_view_aura_unittest.cc#newcode1827 content/browser/renderer_host/render_widget_host_view_aura_unittest.cc:1827: // DelegateFrameHost returns compositor resources without ...
3 years, 10 months ago (2017-02-22 23:16:08 UTC) #6
Saman Sami
https://codereview.chromium.org/2710073003/diff/1/content/browser/renderer_host/render_widget_host_view_aura_unittest.cc File content/browser/renderer_host/render_widget_host_view_aura_unittest.cc (right): https://codereview.chromium.org/2710073003/diff/1/content/browser/renderer_host/render_widget_host_view_aura_unittest.cc#newcode1827 content/browser/renderer_host/render_widget_host_view_aura_unittest.cc:1827: // DelegateFrameHost returns compositor resources without a swap ack. ...
3 years, 10 months ago (2017-02-22 23:20:15 UTC) #7
Saman Sami
jbauman@: Please review both files.
3 years, 10 months ago (2017-02-22 23:26:40 UTC) #11
jbauman
lgtm
3 years, 10 months ago (2017-02-22 23:58:00 UTC) #12
Saman Sami
jam@: Please review both files.
3 years, 10 months ago (2017-02-23 00:47:11 UTC) #14
jam1
lgtm
3 years, 10 months ago (2017-02-23 04:37:05 UTC) #18
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/2710073003/20001
3 years, 10 months ago (2017-02-23 04:53:20 UTC) #22
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/chromium/src/+/53815530f079d15e42d21571466156b40881ed58
3 years, 10 months ago (2017-02-23 04:58:49 UTC) #25
jam
3 years, 10 months ago (2017-02-23 05:07:16 UTC) #26
Message was sent while issue was closed.
lgtm

Powered by Google App Engine
This is Rietveld 408576698