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 2610063007: Separate client surface reference tracking from FrameGenerator. (Closed)

Created:
3 years, 11 months ago by kylechar
Modified:
3 years, 10 months ago
Reviewers:
danakj, Fady Samuel, jbauman, sky, Wez
CC:
chromium-reviews, rjkroege, Saman Sami
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Separate client surface reference tracking from FrameGenerator. The logic to track surface references for surface embeddings was built as part of FrameGenerator. Generalize the logic and remove from FrameGenerator, creating the class EmbeddedSurfaceTracker. EmbeddedSurfaceTracker keeps track of surface references from one client surface to many embedded surfaces. It also handles generating new references when the client surface changes. Includes unit tests. This simplifies FrameGenerator and should make it easier to use surface references in other clients. BUG=659227 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2610063007 Cr-Commit-Position: refs/heads/master@{#442997} Committed: https://chromium.googlesource.com/chromium/src/+/d358fb4f2ad43329a2109fde0f84e9ffe4f1feae

Patch Set 1 #

Patch Set 2 : Cleanup / rename. #

Patch Set 3 : Cleanup tests. #

Total comments: 4

Patch Set 4 : Fixes for comments + update. #

Total comments: 2

Patch Set 5 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+477 lines, -176 lines) Patch
M cc/BUILD.gn View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M cc/surfaces/BUILD.gn View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
A cc/surfaces/embedded_surface_tracker.h View 1 2 3 1 chunk +97 lines, -0 lines 0 comments Download
A cc/surfaces/embedded_surface_tracker.cc View 1 2 3 1 chunk +95 lines, -0 lines 0 comments Download
A cc/surfaces/embedded_surface_tracker_unittest.cc View 1 2 3 1 chunk +192 lines, -0 lines 0 comments Download
M services/ui/ws/frame_generator.h View 1 2 3 4 4 chunks +6 lines, -50 lines 0 comments Download
M services/ui/ws/frame_generator.cc View 1 2 3 4 7 chunks +84 lines, -126 lines 0 comments Download

Messages

Total messages: 29 (17 generated)
kylechar
3 years, 11 months ago (2017-01-05 19:30:40 UTC) #4
Fady Samuel
Looks great, but it would be nice for this to live in cc/surfaces so we ...
3 years, 11 months ago (2017-01-05 19:36:19 UTC) #5
kylechar
https://codereview.chromium.org/2610063007/diff/60001/services/ui/ws/embedded_surface_tracker.h File services/ui/ws/embedded_surface_tracker.h (right): https://codereview.chromium.org/2610063007/diff/60001/services/ui/ws/embedded_surface_tracker.h#newcode27 services/ui/ws/embedded_surface_tracker.h:27: class EmbeddedSurfaceTracker { On 2017/01/05 19:36:19, Fady Samuel wrote: ...
3 years, 11 months ago (2017-01-06 17:58:41 UTC) #7
Fady Samuel
lgtm
3 years, 11 months ago (2017-01-06 20:43:53 UTC) #8
kylechar
+jbauman for cc/surfaces/* +sky for services/ui/ws/*
3 years, 11 months ago (2017-01-10 16:50:16 UTC) #10
sky
LGTM
3 years, 11 months ago (2017-01-10 18:23:55 UTC) #11
jbauman
lgtm https://codereview.chromium.org/2610063007/diff/80001/services/ui/ws/frame_generator.cc File services/ui/ws/frame_generator.cc (right): https://codereview.chromium.org/2610063007/diff/80001/services/ui/ws/frame_generator.cc#newcode37 services/ui/ws/frame_generator.cc:37: // unreachable so it can be garbage collected. ...
3 years, 11 months ago (2017-01-11 00:26:25 UTC) #12
kylechar
Thanks! https://codereview.chromium.org/2610063007/diff/80001/services/ui/ws/frame_generator.cc File services/ui/ws/frame_generator.cc (right): https://codereview.chromium.org/2610063007/diff/80001/services/ui/ws/frame_generator.cc#newcode37 services/ui/ws/frame_generator.cc:37: // unreachable so it can be garbage collected. ...
3 years, 11 months ago (2017-01-11 18:04:49 UTC) #13
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/2610063007/100001
3 years, 11 months ago (2017-01-11 20:20:25 UTC) #23
commit-bot: I haz the power
Committed patchset #5 (id:100001) as https://chromium.googlesource.com/chromium/src/+/d358fb4f2ad43329a2109fde0f84e9ffe4f1feae
3 years, 11 months ago (2017-01-11 21:54:40 UTC) #26
Wez
Hallo danakj@chromium.org! Due to a depot_tools patch which mistakenly removed the OWNERS check for non-source ...
3 years, 10 months ago (2017-02-07 05:57:00 UTC) #28
danakj
3 years, 10 months ago (2017-02-07 15:56:11 UTC) #29
Message was sent while issue was closed.
cc/ LGTM

Powered by Google App Engine
This is Rietveld 408576698