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

Issue 2165303002: Convert Ozone GBM to use new surface API. (Closed)

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

Description

Convert Ozone GBM to use new surface API. The Ozone GBM platform now directly creates GLSurfaces instead of creating SurfaceOzoneEGL. The base classes for surfaceless and framebuffer backed GLSurfaces is moved into //ui/ozone/platform/drm. The old GbmSurfaceless class is replaced entirely despite retaining the same name. A new GbmSurface class is added for the framebuffer backed surface. Add a new version of ChooseEGLConfig() to egl_util.cc/h that doesn't rely on any callbacks now that deps problem as been fixed. The old version will be deleted when this refactor is done as it will be unused. BUG=611142 Committed: https://crrev.com/b3d66d0ac16f7569abe9be477e5ac58e50ca2362 Cr-Commit-Position: refs/heads/master@{#407574}

Patch Set 1 #

Patch Set 2 : Small fixes. #

Total comments: 4

Patch Set 3 : Change names. #

Patch Set 4 : Also GYP. #

Patch Set 5 : Rebase + fix style guide violations. #

Patch Set 6 : Add missing dep. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+599 lines, -620 lines) Patch
M ui/gl/init/gl_factory_ozone.cc View 2 chunks +6 lines, -16 lines 0 comments Download
M ui/gl/init/gl_surface_ozone.h View 1 chunk +0 lines, -6 lines 0 comments Download
M ui/gl/init/gl_surface_ozone.cc View 3 chunks +0 lines, -513 lines 0 comments Download
M ui/ozone/common/BUILD.gn View 1 chunk +4 lines, -0 lines 0 comments Download
M ui/ozone/common/egl_util.h View 1 chunk +4 lines, -0 lines 0 comments Download
M ui/ozone/common/egl_util.cc View 1 2 3 4 2 chunks +24 lines, -0 lines 0 comments Download
M ui/ozone/ozone.gyp View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M ui/ozone/platform/drm/BUILD.gn View 1 2 3 4 5 2 chunks +4 lines, -0 lines 0 comments Download
M ui/ozone/platform/drm/gbm.gypi View 1 2 3 4 5 3 chunks +4 lines, -0 lines 0 comments Download
A ui/ozone/platform/drm/gpu/gbm_surface.h View 1 2 3 4 1 chunk +57 lines, -0 lines 0 comments Download
A ui/ozone/platform/drm/gpu/gbm_surface.cc View 1 2 3 4 1 chunk +148 lines, -0 lines 0 comments Download
M ui/ozone/platform/drm/gpu/gbm_surface_factory.h View 1 2 3 chunks +14 lines, -4 lines 0 comments Download
M ui/ozone/platform/drm/gpu/gbm_surface_factory.cc View 1 2 3 chunks +52 lines, -15 lines 0 comments Download
D ui/ozone/platform/drm/gpu/gbm_surfaceless.h View 1 2 3 4 1 chunk +75 lines, -26 lines 0 comments Download
D ui/ozone/platform/drm/gpu/gbm_surfaceless.cc View 1 2 3 4 3 chunks +206 lines, -40 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 28 (16 generated)
kylechar
4 years, 5 months ago (2016-07-21 17:17:33 UTC) #2
dnicoara
+ spang@ for the common Ozone nits and for the naming bickeshed. lgtm otherwise https://codereview.chromium.org/2165303002/diff/20001/ui/ozone/platform/drm/gpu/gl_surface_gbm_surfaceless.cc ...
4 years, 5 months ago (2016-07-21 17:41:38 UTC) #4
spang
On 2016/07/21 17:41:38, dnicoara wrote: > + spang@ for the common Ozone nits and for ...
4 years, 5 months ago (2016-07-21 17:53:03 UTC) #5
kylechar
On 2016/07/21 17:53:03, spang wrote: > On 2016/07/21 17:41:38, dnicoara wrote: > > + spang@ ...
4 years, 5 months ago (2016-07-21 18:04:23 UTC) #6
dnicoara
On 2016/07/21 18:04:23, kylechar wrote: > On 2016/07/21 17:53:03, spang wrote: > > On 2016/07/21 ...
4 years, 5 months ago (2016-07-21 18:08:21 UTC) #7
kylechar
Changed the names to GbmSurfaceless and GbmSurface. https://codereview.chromium.org/2165303002/diff/20001/ui/ozone/platform/drm/gpu/gl_surface_gbm_surfaceless.cc File ui/ozone/platform/drm/gpu/gl_surface_gbm_surfaceless.cc (right): https://codereview.chromium.org/2165303002/diff/20001/ui/ozone/platform/drm/gpu/gl_surface_gbm_surfaceless.cc#newcode80 ui/ozone/platform/drm/gpu/gl_surface_gbm_surfaceless.cc:80: return gfx::SwapResult::SWAP_FAILED; ...
4 years, 5 months ago (2016-07-21 18:34:08 UTC) #8
spang
On 2016/07/21 18:08:21, dnicoara wrote: > On 2016/07/21 18:04:23, kylechar wrote: > > On 2016/07/21 ...
4 years, 5 months ago (2016-07-21 18:42:47 UTC) #9
spang
lgtm
4 years, 5 months ago (2016-07-21 19:05:28 UTC) #10
dnicoara
lgtm
4 years, 5 months ago (2016-07-21 19:05:47 UTC) #11
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/2165303002/100001
4 years, 5 months ago (2016-07-25 21:06:12 UTC) #24
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 5 months ago (2016-07-25 21:16:26 UTC) #26
commit-bot: I haz the power
4 years, 5 months ago (2016-07-25 21:19:57 UTC) #28
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/b3d66d0ac16f7569abe9be477e5ac58e50ca2362
Cr-Commit-Position: refs/heads/master@{#407574}

Powered by Google App Engine
This is Rietveld 408576698