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

Issue 2715973003: Refactor how temporary references are stored. (Closed)

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

Description

Refactor how temporary references are stored. This change is preparing to add an owner for temporary references. We need to store the SurfaceId and owner FrameSinkId for each temporary reference but also the order that temporary references from the FrameSinkId were added. To simplify this, a map is used to store the temporary reference and data about it. This data is unused in this CL. We still store the order in a separate map based on FrameSinkId. Reduce public methods on SurfaceManager to simplify API. Some minor test changes to work with the refactored SurfaceManager internals and to test a case I noticed was missing. BUG=683738 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2715973003 Cr-Commit-Position: refs/heads/master@{#453588} Committed: https://chromium.googlesource.com/chromium/src/+/85cbca558fe98eae0ddd61845ef5ebbadae19d4a

Patch Set 1 #

Patch Set 2 : Cleanup. #

Patch Set 3 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+200 lines, -197 lines) Patch
M cc/surfaces/compositor_frame_sink_support_unittest.cc View 1 2 5 chunks +7 lines, -8 lines 0 comments Download
M cc/surfaces/surface_manager.h View 3 chunks +25 lines, -14 lines 0 comments Download
M cc/surfaces/surface_manager.cc View 1 9 chunks +91 lines, -101 lines 0 comments Download
M cc/surfaces/surface_manager_ref_unittest.cc View 16 chunks +77 lines, -74 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 14 (9 generated)
kylechar
3 years, 10 months ago (2017-02-24 20:04:43 UTC) #3
jbauman
lgtm
3 years, 9 months ago (2017-02-28 01:48:54 UTC) #4
kylechar
Thanks!
3 years, 9 months ago (2017-02-28 03:51:50 UTC) #5
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/2715973003/40001
3 years, 9 months ago (2017-02-28 13:40:22 UTC) #11
commit-bot: I haz the power
3 years, 9 months ago (2017-02-28 13:45:24 UTC) #14
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/85cbca558fe98eae0ddd61845ef5...

Powered by Google App Engine
This is Rietveld 408576698