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

Issue 2270463002: Add OzoneGLImpl interface. (Closed)

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

Description

Add GLOzone interface. Move the Ozone platform GL implementation code into a single interface. Right now the code to implement EGL for an Ozone platform is located part in //ui/gl/init and part in SurfaceFactoryOzone implementation. The current approach exposes EGL specific concepts in the shared Ozone code. This works fine currently because EGL is relatively platform agnostic. This gets much messier for GLX because it is not platform agnostic. Move the existing shared EGL code into an abstract class GLOzoneGL that implements GLOzone. Each Ozone platform can then finish the implementation. This has a nice side effect that SurfaceFactoryOzone no longer has to expose EGL concepts. Only the Ozone X11 platform is updated initially. The GBM, cast and wayland Ozone platforms will need to be updated to use the new interface in a subsequent CL. BUG=640613 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/036945276e54bd6d98d3e51ccfec21c56dc80b61 Cr-Commit-Position: refs/heads/master@{#416045}

Patch Set 1 #

Patch Set 2 : Naming/documentation. #

Patch Set 3 : Fix tests. #

Patch Set 4 : Actually fix test. #

Patch Set 5 : Fix GN check. #

Patch Set 6 : Rename. #

Total comments: 13

Patch Set 7 : Fix for comments. #

Patch Set 8 : Change initialization. #

Patch Set 9 : Undo initialization changes. #

Total comments: 8

Patch Set 10 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+389 lines, -75 lines) Patch
M ui/gl/BUILD.gn View 1 2 3 4 8 1 chunk +4 lines, -0 lines 0 comments Download
M ui/gl/init/BUILD.gn View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M ui/gl/init/gl_factory.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M ui/gl/init/gl_factory_ozone.cc View 1 2 3 4 5 6 7 8 9 5 chunks +34 lines, -13 lines 0 comments Download
M ui/gl/init/gl_initializer_ozone.cc View 1 2 3 4 5 6 7 8 9 5 chunks +21 lines, -7 lines 0 comments Download
A ui/gl/init/ozone_util.h View 1 2 3 4 5 6 7 8 9 1 chunk +45 lines, -0 lines 0 comments Download
M ui/gl/test/DEPS View 1 2 3 4 5 6 7 8 1 chunk +1 line, -6 lines 0 comments Download
M ui/gl/test/gl_surface_test_support.cc View 1 2 3 4 5 6 7 8 2 chunks +8 lines, -0 lines 0 comments Download
M ui/ozone/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M ui/ozone/common/BUILD.gn View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
A ui/ozone/common/gl_ozone_egl.h View 1 2 3 4 5 6 7 1 chunk +53 lines, -0 lines 0 comments Download
A ui/ozone/common/gl_ozone_egl.cc View 1 2 3 4 5 1 chunk +67 lines, -0 lines 0 comments Download
M ui/ozone/platform/x11/x11_surface_factory.h View 1 2 3 4 5 1 chunk +7 lines, -9 lines 0 comments Download
M ui/ozone/platform/x11/x11_surface_factory.cc View 1 2 3 4 5 6 7 2 chunks +39 lines, -23 lines 0 comments Download
A ui/ozone/public/gl_ozone.h View 1 2 3 4 5 1 chunk +75 lines, -0 lines 0 comments Download
M ui/ozone/public/surface_factory_ozone.h View 1 2 3 4 5 4 chunks +16 lines, -16 lines 0 comments Download
M ui/ozone/public/surface_factory_ozone.cc View 1 2 3 4 5 1 chunk +14 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (13 generated)
kylechar
rjkroege: what do you think of the general concept and review for ui/ozone/*?
4 years, 3 months ago (2016-08-26 15:18:31 UTC) #4
rjkroege
I like the approach. Some comments / ideas that we could discuss. https://codereview.chromium.org/2270463002/diff/120001/ui/gl/BUILD.gn File ui/gl/BUILD.gn ...
4 years, 3 months ago (2016-08-26 19:55:53 UTC) #5
kylechar
https://codereview.chromium.org/2270463002/diff/120001/ui/gl/BUILD.gn File ui/gl/BUILD.gn (right): https://codereview.chromium.org/2270463002/diff/120001/ui/gl/BUILD.gn#newcode316 ui/gl/BUILD.gn:316: deps += [ "//ui/ozone" ] On 2016/08/26 19:55:53, rjkroege ...
4 years, 3 months ago (2016-08-29 15:38:15 UTC) #6
rjkroege
Thanks for the explanations. lgtm. https://codereview.chromium.org/2270463002/diff/120001/ui/gl/init/gl_factory_ozone.cc File ui/gl/init/gl_factory_ozone.cc (right): https://codereview.chromium.org/2270463002/diff/120001/ui/gl/init/gl_factory_ozone.cc#newcode63 ui/gl/init/gl_factory_ozone.cc:63: ui::OzonePlatform::InitializeForGPU(); On 2016/08/29 15:38:14, ...
4 years, 3 months ago (2016-08-30 18:47:31 UTC) #7
kylechar
+piman for ui/gl/*. I'm not super happy about how OzonePlatform::InitializeForGPU() is called as a side ...
4 years, 3 months ago (2016-08-31 16:10:50 UTC) #11
piman
https://codereview.chromium.org/2270463002/diff/200001/ui/gl/init/gl_initializer_ozone.cc File ui/gl/init/gl_initializer_ozone.cc (left): https://codereview.chromium.org/2270463002/diff/200001/ui/gl/init/gl_initializer_ozone.cc#oldcode61 ui/gl/init/gl_initializer_ozone.cc:61: ui::OzonePlatform::InitializeForGPU(); nit: because this moves to >1 location, is ...
4 years, 3 months ago (2016-08-31 20:05:10 UTC) #12
kylechar
https://codereview.chromium.org/2270463002/diff/200001/ui/gl/init/gl_initializer_ozone.cc File ui/gl/init/gl_initializer_ozone.cc (left): https://codereview.chromium.org/2270463002/diff/200001/ui/gl/init/gl_initializer_ozone.cc#oldcode61 ui/gl/init/gl_initializer_ozone.cc:61: ui::OzonePlatform::InitializeForGPU(); On 2016/08/31 20:05:09, piman wrote: > nit: because ...
4 years, 3 months ago (2016-09-01 13:57:21 UTC) #13
piman
lgtm https://codereview.chromium.org/2270463002/diff/200001/ui/gl/init/gl_initializer_ozone.cc File ui/gl/init/gl_initializer_ozone.cc (left): https://codereview.chromium.org/2270463002/diff/200001/ui/gl/init/gl_initializer_ozone.cc#oldcode61 ui/gl/init/gl_initializer_ozone.cc:61: ui::OzonePlatform::InitializeForGPU(); On 2016/09/01 13:57:21, kylechar wrote: > On ...
4 years, 3 months ago (2016-09-01 17:43:04 UTC) #14
kylechar
On 2016/09/01 17:43:04, piman wrote: > lgtm > > https://codereview.chromium.org/2270463002/diff/200001/ui/gl/init/gl_initializer_ozone.cc > File ui/gl/init/gl_initializer_ozone.cc (left): > ...
4 years, 3 months ago (2016-09-01 20:43:46 UTC) #19
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/2270463002/220001
4 years, 3 months ago (2016-09-01 20:44:51 UTC) #22
commit-bot: I haz the power
Committed patchset #10 (id:220001)
4 years, 3 months ago (2016-09-01 20:51:21 UTC) #23
commit-bot: I haz the power
4 years, 3 months ago (2016-09-01 20:56:04 UTC) #25
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/036945276e54bd6d98d3e51ccfec21c56dc80b61
Cr-Commit-Position: refs/heads/master@{#416045}

Powered by Google App Engine
This is Rietveld 408576698