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

Issue 2638833002: Moving temporary reference logic to SurfaceManager (Closed)

Created:
3 years, 11 months ago by Saman Sami
Modified:
3 years, 11 months ago
CC:
chromium-reviews, rjkroege, cc-bugs_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Moving temporary reference logic to SurfaceManager This CL moves the logic of temporary surface references from DisplayCompositor into SurfaceManager in order to centralize the management of SurfaceReferences and to make the code available outside of display compositor. BUG=676384, 670454 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2638833002 Cr-Commit-Position: refs/heads/master@{#444486} Committed: https://chromium.googlesource.com/chromium/src/+/f32903d5d3d0ca5dd5a45c3110f95f47cac02c86

Patch Set 1 #

Patch Set 2 : c #

Total comments: 5

Patch Set 3 : c #

Total comments: 16

Patch Set 4 : c #

Total comments: 2

Patch Set 5 : c #

Total comments: 38

Patch Set 6 : c #

Total comments: 2

Patch Set 7 : c #

Patch Set 8 : c #

Unified diffs Side-by-side diffs Delta from patch set Stats (+279 lines, -469 lines) Patch
M cc/surfaces/surface_manager.h View 1 2 3 4 5 6 7 3 chunks +15 lines, -0 lines 0 comments Download
M cc/surfaces/surface_manager.cc View 1 2 3 4 5 6 7 5 chunks +82 lines, -5 lines 0 comments Download
M cc/surfaces/surface_manager_ref_unittest.cc View 1 2 3 4 5 9 chunks +173 lines, -39 lines 0 comments Download
M services/ui/surfaces/display_compositor.h View 1 2 3 3 chunks +0 lines, -20 lines 0 comments Download
M services/ui/surfaces/display_compositor.cc View 1 2 3 4 5 5 chunks +9 lines, -80 lines 0 comments Download
D services/ui/surfaces/display_compositor_unittest.cc View 1 chunk +0 lines, -320 lines 0 comments Download
M services/ui/ws/BUILD.gn View 1 2 3 2 chunks +0 lines, -5 lines 0 comments Download

Messages

Total messages: 56 (35 generated)
Saman Sami
fsamuel and kylechar: Please review all files.
3 years, 11 months ago (2017-01-16 23:59:59 UTC) #8
Fady Samuel
lgtm
3 years, 11 months ago (2017-01-17 01:14:49 UTC) #12
Fady Samuel
Please pass this along to jbauman@ or danakj@ for cc OWNER review.
3 years, 11 months ago (2017-01-17 01:15:07 UTC) #13
kylechar
https://codereview.chromium.org/2638833002/diff/20001/cc/surfaces/surface_manager.cc File cc/surfaces/surface_manager.cc (right): https://codereview.chromium.org/2638833002/diff/20001/cc/surfaces/surface_manager.cc#newcode177 cc/surfaces/surface_manager.cc:177: DCHECK(thread_checker_.CalledOnValidThread()); The DCHECK + if statements should go on ...
3 years, 11 months ago (2017-01-17 15:04:19 UTC) #14
Saman Sami
PTAL sky: Please review services/ danakj: Please review cc/ https://codereview.chromium.org/2638833002/diff/20001/cc/surfaces/surface_manager.cc File cc/surfaces/surface_manager.cc (right): https://codereview.chromium.org/2638833002/diff/20001/cc/surfaces/surface_manager.cc#newcode177 cc/surfaces/surface_manager.cc:177: ...
3 years, 11 months ago (2017-01-17 15:32:25 UTC) #18
kylechar
https://codereview.chromium.org/2638833002/diff/20001/cc/surfaces/surface_manager_ref_unittest.cc File cc/surfaces/surface_manager_ref_unittest.cc (right): https://codereview.chromium.org/2638833002/diff/20001/cc/surfaces/surface_manager_ref_unittest.cc#newcode48 cc/surfaces/surface_manager_ref_unittest.cc:48: SurfaceId CreateSurface(uint32_t client_id, On 2017/01/17 15:32:25, Saman Sami wrote: ...
3 years, 11 months ago (2017-01-17 16:15:36 UTC) #19
sky
LGTM
3 years, 11 months ago (2017-01-17 18:08:23 UTC) #22
Saman Sami
PTAL I addressed the comments. https://codereview.chromium.org/2638833002/diff/40001/cc/surfaces/surface_manager.cc File cc/surfaces/surface_manager.cc (right): https://codereview.chromium.org/2638833002/diff/40001/cc/surfaces/surface_manager.cc#newcode194 cc/surfaces/surface_manager.cc:194: DCHECK(thread_checker_.CalledOnValidThread()); On 2017/01/17 16:15:35, ...
3 years, 11 months ago (2017-01-17 18:29:06 UTC) #25
kylechar
lgtm, you might want to add crbug.com/670454 to the bug line as this will resolve ...
3 years, 11 months ago (2017-01-17 18:44:02 UTC) #26
Saman Sami
https://codereview.chromium.org/2638833002/diff/60001/cc/surfaces/surface_manager_ref_unittest.cc File cc/surfaces/surface_manager_ref_unittest.cc (right): https://codereview.chromium.org/2638833002/diff/60001/cc/surfaces/surface_manager_ref_unittest.cc#newcode17 cc/surfaces/surface_manager_ref_unittest.cc:17: #include "testing/gmock/include/gmock/gmock-generated-matchers.h" On 2017/01/17 18:44:02, kylechar wrote: > I ...
3 years, 11 months ago (2017-01-17 18:47:20 UTC) #28
danakj
This CL description is extremely terse. Can you explain motivations, what is moving and why ...
3 years, 11 months ago (2017-01-17 19:34:53 UTC) #31
danakj
Nice tests :) Few comments mostly about comments https://codereview.chromium.org/2638833002/diff/80001/cc/surfaces/surface_manager.cc File cc/surfaces/surface_manager.cc (right): https://codereview.chromium.org/2638833002/diff/80001/cc/surfaces/surface_manager.cc#newcode48 cc/surfaces/surface_manager.cc:48: for ...
3 years, 11 months ago (2017-01-17 21:56:42 UTC) #36
kylechar
https://codereview.chromium.org/2638833002/diff/80001/cc/surfaces/surface_manager_ref_unittest.cc File cc/surfaces/surface_manager_ref_unittest.cc (right): https://codereview.chromium.org/2638833002/diff/80001/cc/surfaces/surface_manager_ref_unittest.cc#newcode296 cc/surfaces/surface_manager_ref_unittest.cc:296: // Add a self reference. // Try to add ...
3 years, 11 months ago (2017-01-18 15:36:44 UTC) #37
danakj
https://codereview.chromium.org/2638833002/diff/80001/cc/surfaces/surface_manager_ref_unittest.cc File cc/surfaces/surface_manager_ref_unittest.cc (right): https://codereview.chromium.org/2638833002/diff/80001/cc/surfaces/surface_manager_ref_unittest.cc#newcode296 cc/surfaces/surface_manager_ref_unittest.cc:296: // Add a self reference. On 2017/01/18 15:36:44, kylechar ...
3 years, 11 months ago (2017-01-18 16:31:32 UTC) #38
Saman Sami
PTAL https://codereview.chromium.org/2638833002/diff/80001/cc/surfaces/surface_manager.cc File cc/surfaces/surface_manager.cc (right): https://codereview.chromium.org/2638833002/diff/80001/cc/surfaces/surface_manager.cc#newcode48 cc/surfaces/surface_manager.cc:48: for (auto& map_entry : temp_references_) { On 2017/01/17 ...
3 years, 11 months ago (2017-01-18 18:03:36 UTC) #40
danakj
Thanks, LGTM! https://codereview.chromium.org/2638833002/diff/100001/cc/surfaces/surface_manager.cc File cc/surfaces/surface_manager.cc (right): https://codereview.chromium.org/2638833002/diff/100001/cc/surfaces/surface_manager.cc#newcode166 cc/surfaces/surface_manager.cc:166: // nothing because the reference already exists. ...
3 years, 11 months ago (2017-01-18 19:53:11 UTC) #44
Saman Sami
https://codereview.chromium.org/2638833002/diff/100001/cc/surfaces/surface_manager.cc File cc/surfaces/surface_manager.cc (right): https://codereview.chromium.org/2638833002/diff/100001/cc/surfaces/surface_manager.cc#newcode166 cc/surfaces/surface_manager.cc:166: // nothing because the reference already exists. On 2017/01/18 ...
3 years, 11 months ago (2017-01-18 19:55:43 UTC) #45
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/2638833002/120001
3 years, 11 months ago (2017-01-18 19:56:50 UTC) #48
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/137923) ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 11 months ago (2017-01-18 19:59:44 UTC) #50
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/2638833002/140001
3 years, 11 months ago (2017-01-18 20:08:52 UTC) #53
commit-bot: I haz the power
3 years, 11 months ago (2017-01-18 21:22:44 UTC) #56
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/f32903d5d3d0ca5dd5a45c3110f9...

Powered by Google App Engine
This is Rietveld 408576698