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

Issue 2737513003: Fix compositor_unittests with Ozone X11. (Closed)

Created:
3 years, 9 months ago by kylechar
Modified:
3 years, 9 months ago
Reviewers:
danakj, sadrul
CC:
chromium-reviews, jbauman+watch_chromium.org, kalyank, danakj+watch_chromium.org, Ian Vollick, piman+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix compositor_unittests with Ozone X11. Some of the tests in compositor_unittests use OSMesa to draw but TestCompositorHostOzone never creates an AccereleratedWidget. This works fine with the headless OSMesa implementation, since it never draws to the AcceleratedWidget, but won't work with GLSurfaceOSMesaX11 which draws to an XWindow. Create a PlatformWindow using the OzonePlatform object. This will produce an AcceleratedWidget appropriately. BUG=698780 Review-Url: https://codereview.chromium.org/2737513003 Cr-Commit-Position: refs/heads/master@{#455210} Committed: https://chromium.googlesource.com/chromium/src/+/bf2bb744c704f16735d19c617f69beaba236db9b

Patch Set 1 #

Patch Set 2 : Simplify. #

Patch Set 3 : Other. #

Total comments: 2

Patch Set 4 : Group. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -9 lines) Patch
M ui/compositor/BUILD.gn View 1 1 chunk +2 lines, -0 lines 0 comments Download
M ui/compositor/test/DEPS View 1 1 chunk +2 lines, -0 lines 0 comments Download
M ui/compositor/test/test_compositor_host_ozone.cc View 1 2 4 chunks +49 lines, -9 lines 0 comments Download
M ui/compositor/test/test_suite.cc View 1 2 3 2 chunks +8 lines, -0 lines 0 comments Download

Messages

Total messages: 33 (20 generated)
kylechar
+danakj for ui/compositor/* +sadrul for DEPS
3 years, 9 months ago (2017-03-06 19:51:40 UTC) #5
danakj
LGTM https://codereview.chromium.org/2737513003/diff/40001/ui/compositor/test/test_suite.cc File ui/compositor/test/test_suite.cc (right): https://codereview.chromium.org/2737513003/diff/40001/ui/compositor/test/test_suite.cc#newcode38 ui/compositor/test/test_suite.cc:38: #if defined(USE_OZONE) nit: group with GLSurface init
3 years, 9 months ago (2017-03-06 20:56:16 UTC) #6
sadrul
stamp lgtm
3 years, 9 months ago (2017-03-06 21:47:55 UTC) #7
kylechar
Thanks! https://codereview.chromium.org/2737513003/diff/40001/ui/compositor/test/test_suite.cc File ui/compositor/test/test_suite.cc (right): https://codereview.chromium.org/2737513003/diff/40001/ui/compositor/test/test_suite.cc#newcode38 ui/compositor/test/test_suite.cc:38: #if defined(USE_OZONE) On 2017/03/06 20:56:16, danakj wrote: > ...
3 years, 9 months ago (2017-03-06 21:50:39 UTC) #8
kylechar
Thanks! https://codereview.chromium.org/2737513003/diff/40001/ui/compositor/test/test_suite.cc File ui/compositor/test/test_suite.cc (right): https://codereview.chromium.org/2737513003/diff/40001/ui/compositor/test/test_suite.cc#newcode38 ui/compositor/test/test_suite.cc:38: #if defined(USE_OZONE) On 2017/03/06 20:56:16, danakj wrote: > ...
3 years, 9 months ago (2017-03-06 21:50:40 UTC) #9
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/2737513003/60001
3 years, 9 months ago (2017-03-06 21:52:06 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/395034)
3 years, 9 months ago (2017-03-06 23:05:08 UTC) #14
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/2737513003/60001
3 years, 9 months ago (2017-03-07 00:13:14 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/378859)
3 years, 9 months ago (2017-03-07 01:30:49 UTC) #18
kylechar
On 2017/03/07 01:30:49, commit-bot: I haz the power wrote: > Try jobs failed on following ...
3 years, 9 months ago (2017-03-07 14:53:46 UTC) #21
kylechar
On 2017/03/07 14:53:46, kylechar wrote: > On 2017/03/07 01:30:49, commit-bot: I haz the power wrote: ...
3 years, 9 months ago (2017-03-07 15:00:04 UTC) #22
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/2737513003/60001
3 years, 9 months ago (2017-03-07 19:01:08 UTC) #30
commit-bot: I haz the power
3 years, 9 months ago (2017-03-07 20:53:14 UTC) #33
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/bf2bb744c704f16735d19c617f69...

Powered by Google App Engine
This is Rietveld 408576698