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

Issue 1738973004: Fix EGL configs with GLSurfaceOzoneSurfaceless. (Closed)

Created:
4 years, 10 months ago by kylechar
Modified:
4 years, 9 months ago
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

Fix EGL configs with ozone and surfaceless surfaces. This CL fixes a bug where GLSurfaceOzoneSurfaceless was not calling SurfaceOzoneEGL::GetEGLSurfaceConfig(). Instead, the default implementation in GLSurfaceEGL::GetConfig() would be used to pick an EGL config. This resulted in "No suitable EGL configs found." being logged everytime a GLSurfaceOzoneSurfaceless was created. Instead it now calls SurfaceOzoneEGL::GetEGLSurfaceConfig(). For offscreen surfaces SurfacelessEGL is used. This produced the same error message on creation. SurfaceOzoneEGL::GetEGLSurfaceConfig() can't be used with offscren surfaces as there is no window associated with the offscreen surface. Instead, the EGL_SURFACE_TYPE attribute is set to EGL_DONT_CARE in GLSurfaceEGL::GetConfig() for surfaceless surfaces. The bug doesn't seem to cause problems beyond the logged error messages as drawing still works under Ozone. BUG=591064 Committed: https://crrev.com/445089ac3c1b949fb4248f3aef3ce5e7acd66d92 Cr-Commit-Position: refs/heads/master@{#380171}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add back factory method. #

Total comments: 2

Patch Set 3 : Fixes for comments. #

Patch Set 4 : Different solution for offscreen. #

Patch Set 5 : Fix config map. #

Patch Set 6 : Only for surfaceless. #

Total comments: 2

Patch Set 7 : Added format SURFACE_SURFACELESS. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -14 lines) Patch
M ui/gl/gl_surface.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M ui/gl/gl_surface_egl.h View 1 2 3 4 5 6 2 chunks +3 lines, -2 lines 0 comments Download
M ui/gl/gl_surface_egl.cc View 1 2 3 4 5 6 5 chunks +12 lines, -4 lines 0 comments Download
M ui/gl/gl_surface_ozone.cc View 4 chunks +22 lines, -8 lines 0 comments Download

Messages

Total messages: 37 (15 generated)
kylechar
4 years, 10 months ago (2016-02-25 23:17:15 UTC) #3
dnicoara
+ spang@ https://codereview.chromium.org/1738973004/diff/1/ui/gl/gl_surface_ozone.cc File ui/gl/gl_surface_ozone.cc (right): https://codereview.chromium.org/1738973004/diff/1/ui/gl/gl_surface_ozone.cc#newcode755 ui/gl/gl_surface_ozone.cc:755: surface = new SurfacelessEGL(size); I'm still worried ...
4 years, 10 months ago (2016-02-26 16:15:01 UTC) #5
kylechar
I added back SurfaceFactoryOzone::GetEGLSurfaceProperties(). This should fix any problems but it's not the cleanest solution. ...
4 years, 9 months ago (2016-03-01 18:02:33 UTC) #7
dnicoara
lgtm It may be best to provide some extra documentation in SurfaceFactoryOzone. Specifically that each ...
4 years, 9 months ago (2016-03-01 18:15:56 UTC) #8
kylechar
Added documentation back to SurfaceFactoryOzone. Does this work for you spang@? https://codereview.chromium.org/1738973004/diff/20001/ui/ozone/platform/drm/gpu/gbm_surface_factory.cc File ui/ozone/platform/drm/gpu/gbm_surface_factory.cc (right): ...
4 years, 9 months ago (2016-03-03 16:09:23 UTC) #9
spang
On 2016/02/26 16:15:01, dnicoara wrote: > + spang@ > > https://codereview.chromium.org/1738973004/diff/1/ui/gl/gl_surface_ozone.cc > File ui/gl/gl_surface_ozone.cc (right): ...
4 years, 9 months ago (2016-03-03 18:29:54 UTC) #10
rjkroege
On 2016/03/03 18:29:54, spang wrote: > On 2016/02/26 16:15:01, dnicoara wrote: > > + spang@ ...
4 years, 9 months ago (2016-03-03 18:57:09 UTC) #11
spang
On 2016/03/03 18:57:09, rjkroege wrote: > On 2016/03/03 18:29:54, spang wrote: > > On 2016/02/26 ...
4 years, 9 months ago (2016-03-03 20:07:44 UTC) #12
kylechar
On 2016/03/03 at 20:07:44, spang wrote: > On 2016/03/03 18:57:09, rjkroege wrote: > > On ...
4 years, 9 months ago (2016-03-04 14:37:38 UTC) #13
spang
On 2016/03/04 14:37:38, kylechar wrote: > On 2016/03/03 at 20:07:44, spang wrote: > > On ...
4 years, 9 months ago (2016-03-04 15:29:15 UTC) #14
kylechar
Here is a different solution for the offscreen surfaces and ELG errors. The only problematic ...
4 years, 9 months ago (2016-03-04 16:08:09 UTC) #15
kylechar
Ugh. The config_map part of ChooseConfig will have to be changed to track onscreen/offscreen too.
4 years, 9 months ago (2016-03-04 16:13:44 UTC) #16
alexst (slow to review)
This looks reasonable to me.
4 years, 9 months ago (2016-03-08 03:09:15 UTC) #24
spang
lgtm
4 years, 9 months ago (2016-03-08 16:14:11 UTC) #25
kylechar
Hi sievers@, can you look at gl_surface_egl.cc? It fixes the error message that was occurring ...
4 years, 9 months ago (2016-03-08 17:16:44 UTC) #27
no sievers
https://codereview.chromium.org/1738973004/diff/100001/ui/gl/gl_surface_egl.cc File ui/gl/gl_surface_egl.cc (right): https://codereview.chromium.org/1738973004/diff/100001/ui/gl/gl_surface_egl.cc#newcode255 ui/gl/gl_surface_egl.cc:255: static std::map<std::pair<GLSurface::Format, bool>, EGLConfig> config_map; It seems odd that ...
4 years, 9 months ago (2016-03-08 22:02:00 UTC) #28
kylechar
https://codereview.chromium.org/1738973004/diff/100001/ui/gl/gl_surface_egl.cc File ui/gl/gl_surface_egl.cc (right): https://codereview.chromium.org/1738973004/diff/100001/ui/gl/gl_surface_egl.cc#newcode255 ui/gl/gl_surface_egl.cc:255: static std::map<std::pair<GLSurface::Format, bool>, EGLConfig> config_map; On 2016/03/08 at 22:02:00, ...
4 years, 9 months ago (2016-03-09 15:07:30 UTC) #29
kylechar
Trybots seem happy with SURFACE_SURFACELESS.
4 years, 9 months ago (2016-03-09 17:38:10 UTC) #30
no sievers
On 2016/03/09 15:07:30, kylechar wrote: > https://codereview.chromium.org/1738973004/diff/100001/ui/gl/gl_surface_egl.cc > File ui/gl/gl_surface_egl.cc (right): > > https://codereview.chromium.org/1738973004/diff/100001/ui/gl/gl_surface_egl.cc#newcode255 > ...
4 years, 9 months ago (2016-03-09 18:52:16 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1738973004/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1738973004/120001
4 years, 9 months ago (2016-03-09 19:17:13 UTC) #34
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 9 months ago (2016-03-09 19:23:52 UTC) #35
commit-bot: I haz the power
4 years, 9 months ago (2016-03-09 19:24:58 UTC) #37
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/445089ac3c1b949fb4248f3aef3ce5e7acd66d92
Cr-Commit-Position: refs/heads/master@{#380171}

Powered by Google App Engine
This is Rietveld 408576698