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

Issue 1723303002: Implement GLX for Ozone X11. (Closed)

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

Description

Implement GLX for Ozone X11. This CL adds GLX support to the Ozone X11 platform. Ozone X11 will attempt to use GLX by default. It reuses the existing GLX GLSurface and GLContext. Changes to NativeViewSurfaceGLX are necessary as it handles Expose events from the PlatformEventSource. The class is split into an abstract base class with two small event handling implementations for USE_X11 and USE_OZONE. BUG=361137, 640613 Committed: https://crrev.com/47699347f0d4decc0d1ef082a2597e399c57f636 Cr-Commit-Position: refs/heads/master@{#418575}

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : Handle Expose + draft. #

Patch Set 4 : Fix USE_X11 compile. #

Patch Set 5 : Updated. #

Patch Set 6 : Only include/use GLX if Ozone X11. #

Patch Set 7 : Fix broken tests. #

Patch Set 8 : Rebase/refactor. #

Total comments: 2

Patch Set 9 : Rebase. #

Total comments: 7

Patch Set 10 : Rebase + fixes. #

Total comments: 4

Patch Set 11 : Move refactor to new CL. #

Total comments: 7

Patch Set 12 : Redo. #

Patch Set 13 : Rebase and cleanup. #

Total comments: 8

Patch Set 14 : Change to use #define #

Unified diffs Side-by-side diffs Delta from patch set Stats (+356 lines, -58 lines) Patch
M content/gpu/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +5 lines, -0 lines 0 comments Download
M content/gpu/gpu_main.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +9 lines, -3 lines 0 comments Download
M ui/events/platform/x11/x11_event_source_libevent.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M ui/events/platform/x11/x11_event_source_libevent.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +8 lines, -0 lines 0 comments Download
M ui/gl/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +4 lines, -1 line 0 comments Download
M ui/gl/gl_surface_glx.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +14 lines, -7 lines 0 comments Download
M ui/gl/gl_surface_glx.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +14 lines, -23 lines 0 comments Download
A ui/gl/gl_surface_glx_x11.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +40 lines, -0 lines 0 comments Download
A ui/gl/gl_surface_glx_x11.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +45 lines, -0 lines 0 comments Download
M ui/gl/init/gl_factory_x11.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -1 line 0 comments Download
M ui/ozone/platform/x11/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -0 lines 0 comments Download
A + ui/ozone/platform/x11/gl_ozone_glx.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +9 lines, -20 lines 0 comments Download
A ui/ozone/platform/x11/gl_ozone_glx.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +108 lines, -0 lines 0 comments Download
A ui/ozone/platform/x11/gl_surface_glx_ozone.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +37 lines, -0 lines 0 comments Download
A ui/ozone/platform/x11/gl_surface_glx_ozone.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +41 lines, -0 lines 0 comments Download
M ui/ozone/platform/x11/ozone_platform_x11.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +8 lines, -3 lines 0 comments Download
M ui/ozone/platform/x11/x11_surface_factory.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M ui/ozone/platform/x11/x11_surface_factory.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 47 (25 generated)
kylechar
Working GLX for Ozone X11. I left two comments on things to possibly change. https://codereview.chromium.org/1723303002/diff/160001/ui/gl/gl_implementation_ozone.cc ...
4 years, 9 months ago (2016-03-23 15:40:09 UTC) #6
sadrul
+rjkroege@ I haven't worked with ui/gl/ much, so I wouldn't be a good reviewer for ...
4 years, 8 months ago (2016-04-19 14:49:50 UTC) #9
kylechar
Thanks sadrul. Updated based on your comments. There are also some comments I left on ...
4 years, 8 months ago (2016-04-19 16:00:20 UTC) #10
sadrul
https://codereview.chromium.org/1723303002/diff/180001/ui/ozone/platform/x11/ozone_platform_x11.cc File ui/ozone/platform/x11/ozone_platform_x11.cc (right): https://codereview.chromium.org/1723303002/diff/180001/ui/ozone/platform/x11/ozone_platform_x11.cc#newcode104 ui/ozone/platform/x11/ozone_platform_x11.cc:104: if (!event_source_) On 2016/04/19 16:00:20, kylechar wrote: > On ...
4 years, 8 months ago (2016-04-19 16:13:37 UTC) #11
kylechar
On 2016/04/19 16:13:37, sadrul wrote: > https://codereview.chromium.org/1723303002/diff/180001/ui/ozone/platform/x11/ozone_platform_x11.cc > File ui/ozone/platform/x11/ozone_platform_x11.cc (right): > > https://codereview.chromium.org/1723303002/diff/180001/ui/ozone/platform/x11/ozone_platform_x11.cc#newcode104 > ...
4 years, 8 months ago (2016-04-19 16:45:59 UTC) #12
kylechar
This CL should be a bit simpler now. I've moved the //ui/gl refactor parts out ...
4 years, 8 months ago (2016-04-25 16:47:38 UTC) #13
kylechar
Adding piman for gpu/* and ui/gl/*.
4 years, 7 months ago (2016-04-27 15:27:16 UTC) #16
rjkroege
I'd prefer a different approach. I'm not sure what that should be. Maybe we can ...
4 years, 7 months ago (2016-04-27 19:08:13 UTC) #17
kylechar
An offline discussion might be useful. I've replied with some more questions of my own ...
4 years, 7 months ago (2016-04-27 19:36:33 UTC) #18
kylechar
Alright, this is finally back at the point where adding GLX support to Ozone X11 ...
4 years, 3 months ago (2016-09-06 20:43:48 UTC) #26
piman
https://codereview.chromium.org/1723303002/diff/260001/content/gpu/gpu_main.cc File content/gpu/gpu_main.cc (right): https://codereview.chromium.org/1723303002/diff/260001/content/gpu/gpu_main.cc#newcode194 content/gpu/gpu_main.cc:194: #elif defined(USE_OZONE) Is it the case that Ozone + ...
4 years, 3 months ago (2016-09-06 22:17:55 UTC) #28
kylechar
https://codereview.chromium.org/1723303002/diff/260001/content/gpu/gpu_main.cc File content/gpu/gpu_main.cc (right): https://codereview.chromium.org/1723303002/diff/260001/content/gpu/gpu_main.cc#newcode194 content/gpu/gpu_main.cc:194: #elif defined(USE_OZONE) On 2016/09/06 22:17:55, piman wrote: > Is ...
4 years, 3 months ago (2016-09-07 13:47:16 UTC) #29
piman
https://codereview.chromium.org/1723303002/diff/260001/content/gpu/gpu_main.cc File content/gpu/gpu_main.cc (right): https://codereview.chromium.org/1723303002/diff/260001/content/gpu/gpu_main.cc#newcode194 content/gpu/gpu_main.cc:194: #elif defined(USE_OZONE) On 2016/09/07 13:47:16, kylechar wrote: > On ...
4 years, 3 months ago (2016-09-07 17:07:09 UTC) #30
kylechar
https://codereview.chromium.org/1723303002/diff/260001/content/gpu/gpu_main.cc File content/gpu/gpu_main.cc (right): https://codereview.chromium.org/1723303002/diff/260001/content/gpu/gpu_main.cc#newcode194 content/gpu/gpu_main.cc:194: #elif defined(USE_OZONE) On 2016/09/07 17:07:09, piman wrote: > On ...
4 years, 3 months ago (2016-09-07 21:10:42 UTC) #31
piman
https://codereview.chromium.org/1723303002/diff/260001/content/gpu/gpu_main.cc File content/gpu/gpu_main.cc (right): https://codereview.chromium.org/1723303002/diff/260001/content/gpu/gpu_main.cc#newcode194 content/gpu/gpu_main.cc:194: #elif defined(USE_OZONE) On 2016/09/07 21:10:42, kylechar wrote: > On ...
4 years, 3 months ago (2016-09-07 21:44:30 UTC) #32
kylechar
https://codereview.chromium.org/1723303002/diff/260001/content/gpu/gpu_main.cc File content/gpu/gpu_main.cc (right): https://codereview.chromium.org/1723303002/diff/260001/content/gpu/gpu_main.cc#newcode194 content/gpu/gpu_main.cc:194: #elif defined(USE_OZONE) On 2016/09/07 21:44:30, piman OOO back 2016-09-12 ...
4 years, 3 months ago (2016-09-13 19:59:12 UTC) #33
piman
lgtm
4 years, 3 months ago (2016-09-13 22:42:32 UTC) #34
kylechar
+sadrul ui/events/*
4 years, 3 months ago (2016-09-14 13:34:17 UTC) #36
sadrul
lgtm
4 years, 3 months ago (2016-09-14 14:59:22 UTC) #39
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/1723303002/280001
4 years, 3 months ago (2016-09-14 15:57:51 UTC) #43
commit-bot: I haz the power
Committed patchset #14 (id:280001)
4 years, 3 months ago (2016-09-14 16:04:16 UTC) #45
commit-bot: I haz the power
4 years, 3 months ago (2016-09-14 16:06:40 UTC) #47
Message was sent while issue was closed.
Patchset 14 (id:??) landed as
https://crrev.com/47699347f0d4decc0d1ef082a2597e399c57f636
Cr-Commit-Position: refs/heads/master@{#418575}

Powered by Google App Engine
This is Rietveld 408576698