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

Issue 2688043002: Retain references to surfaces from both active AND pending CompositorFrames (Closed)

Created:
3 years, 10 months ago by Fady Samuel
Modified:
3 years, 10 months ago
Reviewers:
jam, vmpstr
CC:
chromium-reviews, cc-bugs_chromium.org, rjkroege, kylechar
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Retain references to surfaces from both active AND pending CompositorFrames A Surface may hold both an active and a pending CompositorFrame at once. Surfaces referenced by either CompositorFrame must be retained in order to ensure correctness once the pending frame is activated. This CL tracks references from both pending and active CompositorFrames within a surface. This CL also fixes a tear down issue in SurfaceDependencyTracker where Surfaces could continue to call back into SurfaceDependencyTracker after it was destroyed. SurfaceDependencyTracker stops observing Surfaces in its destructor. BUG=672962 TBR=jam@chromium.org for mechanical renaming in content/ CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2688043002 Cr-Commit-Position: refs/heads/master@{#449543} Committed: https://chromium.googlesource.com/chromium/src/+/033d9e89ed5ce8b5ee20d7a5d56256c0038fd9f5

Patch Set 1 #

Total comments: 6

Patch Set 2 : Added TODOs and addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+116 lines, -24 lines) Patch
M cc/surfaces/compositor_frame_sink_support.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M cc/surfaces/compositor_frame_sink_support.cc View 1 1 chunk +22 lines, -13 lines 0 comments Download
M cc/surfaces/compositor_frame_sink_support_unittest.cc View 1 3 chunks +57 lines, -1 line 0 comments Download
M cc/surfaces/surface.h View 1 2 chunks +19 lines, -4 lines 0 comments Download
M cc/surfaces/surface.cc View 1 3 chunks +4 lines, -1 line 0 comments Download
M cc/surfaces/surface_dependency_tracker.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M cc/surfaces/surface_manager.cc View 1 1 chunk +3 lines, -1 line 0 comments Download
M content/public/test/browser_test_utils.cc View 1 1 chunk +3 lines, -3 lines 0 comments Download
M content/test/content_browser_test_utils_internal.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 23 (16 generated)
Fady Samuel
+vmpstr@ for review. +rjkroege@, +kylechar@ FYI
3 years, 10 months ago (2017-02-10 00:03:37 UTC) #5
vmpstr
https://codereview.chromium.org/2688043002/diff/1/cc/surfaces/compositor_frame_sink_support.cc File cc/surfaces/compositor_frame_sink_support.cc (right): https://codereview.chromium.org/2688043002/diff/1/cc/surfaces/compositor_frame_sink_support.cc#newcode95 cc/surfaces/compositor_frame_sink_support.cc:95: referenced_surfaces.insert(referenced_surfaces.end(), This is, somewhat poor from an API perspective. ...
3 years, 10 months ago (2017-02-10 00:24:40 UTC) #6
Fady Samuel
PTAL Vlad! https://codereview.chromium.org/2688043002/diff/1/cc/surfaces/compositor_frame_sink_support.cc File cc/surfaces/compositor_frame_sink_support.cc (right): https://codereview.chromium.org/2688043002/diff/1/cc/surfaces/compositor_frame_sink_support.cc#newcode95 cc/surfaces/compositor_frame_sink_support.cc:95: referenced_surfaces.insert(referenced_surfaces.end(), On 2017/02/10 00:24:40, vmpstr wrote: > ...
3 years, 10 months ago (2017-02-10 00:55:31 UTC) #9
vmpstr
cc lgtm
3 years, 10 months ago (2017-02-10 01:15:37 UTC) #12
Fady Samuel
TBR'ing jam@ for a mechanical renaming in content/
3 years, 10 months ago (2017-02-10 01:54:49 UTC) #14
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/2688043002/20001
3 years, 10 months ago (2017-02-10 03:26:04 UTC) #19
commit-bot: I haz the power
3 years, 10 months ago (2017-02-10 03:31:10 UTC) #22
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/033d9e89ed5ce8b5ee20d7a5d562...

Powered by Google App Engine
This is Rietveld 408576698