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

Issue 1388543004: aura: Support releasing the OutputSurface() (Closed)

Created:
5 years, 2 months ago by no sievers
Modified:
5 years, 2 months ago
Reviewers:
danakj, piman
CC:
chromium-reviews, Ian Vollick, sievers+watch_chromium.org, jbauman+watch_chromium.org, kalyank, piman+watch_chromium.org, danakj+watch_chromium.org, cc-bugs_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@startcomp
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

aura: Support releasing the OutputSurface() BUG=513540 Committed: https://crrev.com/13e78285cc3448216fdd401e0bcdf23471e86a95 Cr-Commit-Position: refs/heads/master@{#352511}

Patch Set 1 #

Patch Set 2 : #

Total comments: 1

Patch Set 3 : comments #

Patch Set 4 : rebase #

Patch Set 5 : #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -0 lines) Patch
M ui/compositor/compositor.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M ui/compositor/compositor.cc View 1 2 3 4 1 chunk +11 lines, -0 lines 0 comments Download
M ui/compositor/compositor_unittest.cc View 1 2 2 chunks +28 lines, -0 lines 3 comments Download

Messages

Total messages: 16 (6 generated)
no sievers
ptal
5 years, 2 months ago (2015-10-02 23:15:19 UTC) #2
piman
LGTM+nit https://codereview.chromium.org/1388543004/diff/20001/ui/compositor/compositor_unittest.cc File ui/compositor/compositor_unittest.cc (right): https://codereview.chromium.org/1388543004/diff/20001/ui/compositor/compositor_unittest.cc#newcode72 ui/compositor/compositor_unittest.cc:72: compositor()->RemoveObserver(&observer); I think you can use DrawWaiterForTest::WaitForCommit(compositor()); instead ...
5 years, 2 months ago (2015-10-05 22:21:27 UTC) #3
no sievers
On 2015/10/05 22:21:27, piman (slow to review) wrote: > LGTM+nit > > https://codereview.chromium.org/1388543004/diff/20001/ui/compositor/compositor_unittest.cc > File ...
5 years, 2 months ago (2015-10-05 23:25:39 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1388543004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1388543004/60001
5 years, 2 months ago (2015-10-05 23:45:51 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1388543004/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1388543004/80001
5 years, 2 months ago (2015-10-05 23:49:49 UTC) #11
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 2 months ago (2015-10-06 01:54:51 UTC) #12
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/13e78285cc3448216fdd401e0bcdf23471e86a95 Cr-Commit-Position: refs/heads/master@{#352511}
5 years, 2 months ago (2015-10-06 01:55:51 UTC) #13
danakj
LGTM https://codereview.chromium.org/1388543004/diff/80001/ui/compositor/compositor_unittest.cc File ui/compositor/compositor_unittest.cc (right): https://codereview.chromium.org/1388543004/diff/80001/ui/compositor/compositor_unittest.cc#newcode147 ui/compositor/compositor_unittest.cc:147: EXPECT_EQ(gfx::kNullAcceleratedWidget, might be worth a test that verifies ...
5 years, 2 months ago (2015-10-06 18:28:13 UTC) #14
no sievers
https://codereview.chromium.org/1388543004/diff/80001/ui/compositor/compositor_unittest.cc File ui/compositor/compositor_unittest.cc (right): https://codereview.chromium.org/1388543004/diff/80001/ui/compositor/compositor_unittest.cc#newcode147 ui/compositor/compositor_unittest.cc:147: EXPECT_EQ(gfx::kNullAcceleratedWidget, On 2015/10/06 18:28:12, danakj_OOO_til_10-12 wrote: > might be ...
5 years, 2 months ago (2015-10-06 23:46:28 UTC) #15
danakj
5 years, 2 months ago (2015-10-07 20:44:42 UTC) #16
Message was sent while issue was closed.
https://codereview.chromium.org/1388543004/diff/80001/ui/compositor/composito...
File ui/compositor/compositor_unittest.cc (right):

https://codereview.chromium.org/1388543004/diff/80001/ui/compositor/composito...
ui/compositor/compositor_unittest.cc:147: EXPECT_EQ(gfx::kNullAcceleratedWidget,
On 2015/10/06 23:46:27, sievers wrote:
> On 2015/10/06 18:28:12, danakj_OOO_til_10-12 wrote:
> > might be worth a test that verifies it gets back the right widget for
non-null
> > case? maybe not, pretty simple
> 
> But it goes into the non-offscreen creation path then, so I'd actually have to
> pass a valid view surface handle here.

I was thinking of
https://code.google.com/p/chromium/codesearch#chromium/src/ui/compositor/laye...
these tests, not sure that would work here, but might. I don't see where we give
a widget to the compositor there, but they do draw to a xwindow..

Powered by Google App Engine
This is Rietveld 408576698