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 2520513002: Add DisplayCompositorTest. (Closed)

Created:
4 years, 1 month ago by kylechar
Modified:
4 years ago
Reviewers:
Fady Samuel, sky, vmpstr
CC:
chromium-reviews, rjkroege, cc-bugs_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add DisplayCompositorTest. Implement tests to ensure that DisplayCompositor has correct interaction with DisplayCompositorClient and add/removes temporary references appropriately. Add interface SurfaceReferenceManager that encapsulates part of SurfaceManager functionality. SurfaceManager implements this interface without changes and we can create a test only version to verify that DisplayCompositor makes the correct calls. BUG=659227 Committed: https://crrev.com/4f2334d832ffe204b1702dcb652846519874a461 Cr-Commit-Position: refs/heads/master@{#435840}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fixes. #

Patch Set 3 : Cleanup and rebase. #

Patch Set 4 : Rebase + improve. #

Total comments: 4

Patch Set 5 : Fixes. #

Patch Set 6 : Add non-exported base. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+369 lines, -34 lines) Patch
M cc/surfaces/BUILD.gn View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M cc/surfaces/surface_manager.h View 1 2 3 4 5 4 chunks +13 lines, -21 lines 0 comments Download
M cc/surfaces/surface_manager.cc View 1 chunk +4 lines, -0 lines 0 comments Download
A cc/surfaces/surface_reference_manager.h View 1 2 3 1 chunk +46 lines, -0 lines 0 comments Download
M services/ui/surfaces/display_compositor.h View 1 2 3 4 4 chunks +15 lines, -0 lines 0 comments Download
M services/ui/surfaces/display_compositor.cc View 1 2 3 4 11 chunks +19 lines, -13 lines 0 comments Download
A services/ui/surfaces/display_compositor_unittest.cc View 1 2 3 4 1 chunk +266 lines, -0 lines 0 comments Download
M services/ui/ws/BUILD.gn View 1 2 3 4 2 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 33 (19 generated)
kylechar
4 years, 1 month ago (2016-11-18 19:38:25 UTC) #3
Fady Samuel
lgtm + comment. https://codereview.chromium.org/2520513002/diff/1/services/ui/surfaces/display_compositor.h File services/ui/surfaces/display_compositor.h (right): https://codereview.chromium.org/2520513002/diff/1/services/ui/surfaces/display_compositor.h#newcode72 services/ui/surfaces/display_compositor.h:72: cc::SurfaceReferenceManager* reference_manager_; Can we avoid having ...
4 years, 1 month ago (2016-11-18 20:18:24 UTC) #4
kylechar
https://codereview.chromium.org/2520513002/diff/1/services/ui/surfaces/display_compositor.h File services/ui/surfaces/display_compositor.h (right): https://codereview.chromium.org/2520513002/diff/1/services/ui/surfaces/display_compositor.h#newcode72 services/ui/surfaces/display_compositor.h:72: cc::SurfaceReferenceManager* reference_manager_; On 2016/11/18 20:18:24, Fady Samuel wrote: > ...
4 years ago (2016-11-24 20:43:15 UTC) #6
kylechar
+enne for cc/surfaces/* +sky for services/ui/ws/BUILD.gn. Not sure how you feel about adding the test ...
4 years ago (2016-11-28 15:30:25 UTC) #8
sky
On 2016/11/28 15:30:25, kylechar wrote: > +enne for cc/surfaces/* > > +sky for services/ui/ws/BUILD.gn. Not ...
4 years ago (2016-11-28 16:30:07 UTC) #9
Fady Samuel
On 2016/11/28 16:30:07, sky wrote: > On 2016/11/28 15:30:25, kylechar wrote: > > +enne for ...
4 years ago (2016-11-28 16:33:44 UTC) #10
sky
On 2016/11/28 16:33:44, Fady Samuel wrote: > On 2016/11/28 16:30:07, sky wrote: > > On ...
4 years ago (2016-11-28 16:40:01 UTC) #11
kylechar
Think you'll have a chance to look today enne?
4 years ago (2016-11-30 15:40:31 UTC) #12
kylechar
+vmpstr for cc/surfaces/*
4 years ago (2016-11-30 22:48:03 UTC) #14
vmpstr
cc/ lgtm https://codereview.chromium.org/2520513002/diff/80001/services/ui/surfaces/display_compositor_unittest.cc File services/ui/surfaces/display_compositor_unittest.cc (right): https://codereview.chromium.org/2520513002/diff/80001/services/ui/surfaces/display_compositor_unittest.cc#newcode25 services/ui/surfaces/display_compositor_unittest.cc:25: using cc::SurfaceId; You have a mix of ...
4 years ago (2016-12-01 21:15:23 UTC) #15
kylechar
Thanks! https://codereview.chromium.org/2520513002/diff/80001/services/ui/surfaces/display_compositor_unittest.cc File services/ui/surfaces/display_compositor_unittest.cc (right): https://codereview.chromium.org/2520513002/diff/80001/services/ui/surfaces/display_compositor_unittest.cc#newcode25 services/ui/surfaces/display_compositor_unittest.cc:25: using cc::SurfaceId; On 2016/12/01 21:15:23, vmpstr wrote: > ...
4 years ago (2016-12-01 21:53:29 UTC) #16
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/2520513002/120001
4 years ago (2016-12-02 02:47:18 UTC) #28
commit-bot: I haz the power
Committed patchset #6 (id:120001)
4 years ago (2016-12-02 03:14:02 UTC) #31
commit-bot: I haz the power
4 years ago (2016-12-02 03:16:02 UTC) #33
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/4f2334d832ffe204b1702dcb652846519874a461
Cr-Commit-Position: refs/heads/master@{#435840}

Powered by Google App Engine
This is Rietveld 408576698