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

Issue 2102443003: Break //ui/gl/ dependency on //ui/ozone. (Closed)

Created:
4 years, 5 months ago by kylechar
Modified:
4 years, 5 months ago
CC:
chromium-reviews, rjkroege, ozone-reviews_chromium.org, posciak+watch_chromium.org, feature-media-reviews_chromium.org, kalyank, piman+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@gl_bindings
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Break //ui/gl/ dependency on //ui/ozone. This CL removes the last code in //ui/gl that depends on //ui/ozone. It then inverts the dependency so that //ui/ozone depends on //ui/gl and each OzonePlatform can override GL specific classes. GLImageOzoneNativePixmap is moved into a new target //ui/ozone/gl. This is only possible now that the dependency problem has been fixed. There is an issue with tests for GLImageOzoneNativePixmap. They are still located in //ui/gl:gl_unittests as they depend on //ui/gl:test_support. Moving the tests into //ui/ozone:ozone_unittests has additional dependency problems. A new ozone_gl_unittests target could be added in the future to avoid this but the remaining tests are currently disabled anyways. This is the finally CL in step 2 of the associated bug. BUG=611142 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Committed: https://crrev.com/f63548fbd680e758624d51b9d330186442ecdc6c Cr-Commit-Position: refs/heads/master@{#406765}

Patch Set 1 #

Patch Set 2 : Remove callback. #

Patch Set 3 : Fix GYP Ozone. #

Patch Set 4 : GYP again. #

Total comments: 6

Patch Set 5 : Rebase/Split/Fixes. #

Patch Set 6 : Rebase. #

Patch Set 7 : Rebase again. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+153 lines, -382 lines) Patch
M gpu/gpu_ipc_service.gypi View 1 1 chunk +1 line, -0 lines 0 comments Download
M gpu/ipc/service/gpu_memory_buffer_factory_ozone_native_pixmap.cc View 1 2 3 4 5 6 2 chunks +3 lines, -3 lines 0 comments Download
M media/gpu/vaapi_drm_picture.cc View 1 2 3 4 5 6 2 chunks +3 lines, -3 lines 0 comments Download
M media/media_gpu.gypi View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M services/ui/gles2/command_buffer_driver.cc View 1 2 chunks +3 lines, -3 lines 0 comments Download
M ui/gl/BUILD.gn View 1 2 3 4 5 1 chunk +1 line, -7 lines 0 comments Download
M ui/gl/DEPS View 1 2 2 chunks +8 lines, -1 line 0 comments Download
M ui/gl/gl.gyp View 1 2 3 4 5 1 chunk +0 lines, -10 lines 0 comments Download
D ui/gl/gl_image_ozone_native_pixmap.h View 1 2 3 4 5 1 chunk +0 lines, -50 lines 0 comments Download
D ui/gl/gl_image_ozone_native_pixmap.cc View 1 2 3 4 5 1 chunk +0 lines, -267 lines 0 comments Download
M ui/gl/gl_image_ozone_native_pixmap_drm_unittest.cc View 1 2 3 4 5 6 2 chunks +3 lines, -3 lines 0 comments Download
M ui/gl/gl_image_ozone_native_pixmap_unittest.cc View 1 2 chunks +5 lines, -3 lines 0 comments Download
M ui/gl/gl_tests.gyp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A + ui/gl/init/DEPS View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M ui/gl/init/gl_init.gyp View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M ui/gl/init/gl_surface_ozone.cc View 1 2 3 4 5 3 chunks +3 lines, -3 lines 0 comments Download
M ui/gl/test/DEPS View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M ui/ozone/BUILD.gn View 1 2 chunks +2 lines, -0 lines 0 comments Download
M ui/ozone/DEPS View 1 chunk +2 lines, -1 line 0 comments Download
M ui/ozone/demo/ozone_demos.gyp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M ui/ozone/demo/surfaceless_gl_renderer.cc View 1 2 chunks +3 lines, -3 lines 0 comments Download
A ui/ozone/gl/BUILD.gn View 1 1 chunk +19 lines, -0 lines 0 comments Download
A + ui/ozone/gl/gl_image_ozone_native_pixmap.h View 1 2 3 4 5 2 chunks +12 lines, -10 lines 0 comments Download
A + ui/ozone/gl/gl_image_ozone_native_pixmap.cc View 1 2 3 4 5 6 8 chunks +15 lines, -15 lines 0 comments Download
A ui/ozone/gl/ozone_gl.gyp View 1 2 3 4 5 1 chunk +28 lines, -0 lines 0 comments Download
A ui/ozone/gl/ozone_gl_export.h View 1 1 chunk +29 lines, -0 lines 0 comments Download

Messages

Total messages: 57 (30 generated)
kylechar
Sending to spang@ for Ozone specific bits first. A few things to consider: 1. I ...
4 years, 5 months ago (2016-06-27 14:41:47 UTC) #3
spang
On 2016/06/27 14:41:47, kylechar wrote: > Sending to spang@ for Ozone specific bits first. A ...
4 years, 5 months ago (2016-06-27 20:37:22 UTC) #4
kylechar
On 2016/06/27 20:37:22, spang wrote: > On 2016/06/27 14:41:47, kylechar wrote: > > Sending to ...
4 years, 5 months ago (2016-06-28 18:14:13 UTC) #5
spang
On 2016/06/28 18:14:13, kylechar wrote: > On 2016/06/27 20:37:22, spang wrote: > > On 2016/06/27 ...
4 years, 5 months ago (2016-06-28 19:38:35 UTC) #6
kylechar
On 2016/06/28 19:38:35, spang wrote: > On 2016/06/28 18:14:13, kylechar wrote: > > On 2016/06/27 ...
4 years, 5 months ago (2016-06-28 19:44:33 UTC) #7
kylechar
On 2016/06/28 19:38:35, spang wrote: > On 2016/06/28 18:14:13, kylechar wrote: > > On 2016/06/27 ...
4 years, 5 months ago (2016-06-28 19:44:33 UTC) #8
kylechar
On 2016/06/28 19:44:33, kylechar wrote: > On 2016/06/28 19:38:35, spang wrote: > > On 2016/06/28 ...
4 years, 5 months ago (2016-06-28 19:48:21 UTC) #9
spang
On 2016/06/28 19:48:21, kylechar wrote: > On 2016/06/28 19:44:33, kylechar wrote: > > On 2016/06/28 ...
4 years, 5 months ago (2016-06-28 20:00:56 UTC) #10
kylechar
On 2016/06/28 20:00:56, spang wrote: > On 2016/06/28 19:48:21, kylechar wrote: > > On 2016/06/28 ...
4 years, 5 months ago (2016-06-28 20:02:56 UTC) #11
kylechar
So using EGL_DEFAULT_DISPLAY in tests works! I've got rid of the callback entirely which cleans ...
4 years, 5 months ago (2016-07-05 18:45:54 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2102443003/80001
4 years, 5 months ago (2016-07-06 15:57:45 UTC) #15
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/99067)
4 years, 5 months ago (2016-07-06 17:28:07 UTC) #17
kylechar
spang for ui/ozone/* piman for basically everything else
4 years, 5 months ago (2016-07-06 20:28:24 UTC) #20
piman
https://codereview.chromium.org/2102443003/diff/80001/ui/gl/gl_surface_egl.h File ui/gl/gl_surface_egl.h (right): https://codereview.chromium.org/2102443003/diff/80001/ui/gl/gl_surface_egl.h#newcode59 ui/gl/gl_surface_egl.h:59: static void SetNativeDisplay(EGLNativeDisplayType native_display); Could we instead pass the ...
4 years, 5 months ago (2016-07-06 21:02:16 UTC) #21
kylechar
https://codereview.chromium.org/2102443003/diff/80001/ui/gl/gl_surface_egl.h File ui/gl/gl_surface_egl.h (right): https://codereview.chromium.org/2102443003/diff/80001/ui/gl/gl_surface_egl.h#newcode59 ui/gl/gl_surface_egl.h:59: static void SetNativeDisplay(EGLNativeDisplayType native_display); On 2016/07/06 21:02:16, piman wrote: ...
4 years, 5 months ago (2016-07-07 13:18:05 UTC) #22
piman
https://codereview.chromium.org/2102443003/diff/80001/ui/gl/gl_surface_egl.h File ui/gl/gl_surface_egl.h (right): https://codereview.chromium.org/2102443003/diff/80001/ui/gl/gl_surface_egl.h#newcode59 ui/gl/gl_surface_egl.h:59: static void SetNativeDisplay(EGLNativeDisplayType native_display); On 2016/07/07 13:18:05, kylechar wrote: ...
4 years, 5 months ago (2016-07-07 20:37:17 UTC) #23
kylechar
I've addressed the comments and also moved the EGLNativeDisplay parts into a new CL. I'll ...
4 years, 5 months ago (2016-07-08 15:55:06 UTC) #26
piman
lgtm
4 years, 5 months ago (2016-07-08 16:48:59 UTC) #27
spang
lgtm
4 years, 5 months ago (2016-07-13 16:05:48 UTC) #28
kylechar
+fsamuel for services/ui/gles2/* +sanders2 for media/* +sadrul because I fixed the ordering in ui/ozone/DEPS and ...
4 years, 5 months ago (2016-07-18 17:22:13 UTC) #30
commit-bot: I haz the power
Your CL relies on deprecated CQ feature(s): * Specifying master names in CQ_INCLUDE_TRYBOTS part of ...
4 years, 5 months ago (2016-07-18 17:25:29 UTC) #33
sandersd (OOO until July 31)
media/ lgtm
4 years, 5 months ago (2016-07-18 22:42:17 UTC) #39
sadrul
lgtm
4 years, 5 months ago (2016-07-19 14:56:40 UTC) #40
Fady Samuel
services/ui lgtm
4 years, 5 months ago (2016-07-20 20:18:18 UTC) #49
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/2102443003/160001
4 years, 5 months ago (2016-07-21 01:34:08 UTC) #54
commit-bot: I haz the power
Committed patchset #7 (id:160001)
4 years, 5 months ago (2016-07-21 04:22:50 UTC) #55
commit-bot: I haz the power
4 years, 5 months ago (2016-07-21 04:24:34 UTC) #57
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/f63548fbd680e758624d51b9d330186442ecdc6c
Cr-Commit-Position: refs/heads/master@{#406765}

Powered by Google App Engine
This is Rietveld 408576698