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

Issue 1051253008: gpu: Upgrade to new ANGLE Platform Display init. (Closed)

Created:
5 years, 8 months ago by Jamie Madill
Modified:
5 years, 7 months ago
Reviewers:
zmo, Zhenyao Mo, 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

gpu: Upgrade to new ANGLE Platform Display init. This allows us to select which ANGLE back-end to use more flexibly, and controls the selection process entirely in Chrome. The logic for when to try a backup renderer is a bit more complex because we query the display extensions in the static binding init code. BUG=457325 Committed: https://crrev.com/fefb7cfcf73c07b5f2774266bda02e839a829ef1 Cr-Commit-Position: refs/heads/master@{#327315}

Patch Set 1 #

Patch Set 2 : Fix double "command_line" #

Total comments: 6

Patch Set 3 : Updated with review feedback #

Patch Set 4 : Init display with eglInitialize #

Patch Set 5 : Avoid repeated eglInitialize in gl_bindings #

Total comments: 9

Patch Set 6 : Addressed zmo's feedback #

Total comments: 2

Patch Set 7 : Addressing Antoine's feedback #

Patch Set 8 : Remove OS_WIN ifdefs #

Patch Set 9 : Fix for ChromeOS build #

Unified diffs Side-by-side diffs Delta from patch set Stats (+141 lines, -66 lines) Patch
M ui/gl/gl_bindings.cc View 1 2 3 4 5 6 2 chunks +4 lines, -8 lines 0 comments Download
M ui/gl/gl_surface_egl.h View 1 2 3 4 5 6 2 chunks +1 line, -5 lines 0 comments Download
M ui/gl/gl_surface_egl.cc View 1 2 3 4 5 6 7 8 5 chunks +135 lines, -48 lines 0 comments Download
M ui/gl/gl_surface_win.cc View 1 2 3 4 5 6 1 chunk +1 line, -5 lines 0 comments Download

Messages

Total messages: 21 (4 generated)
Jamie Madill
Mo & Antoine, Can you PTAL and see if the approach here is sensible? I ...
5 years, 8 months ago (2015-04-16 18:28:36 UTC) #2
piman
LGTM + nits overall. Worth a comment somewhere about why GetPlatformDisplay is needed (for the ...
5 years, 8 months ago (2015-04-16 21:51:05 UTC) #3
zmo
LGTM with nits https://codereview.chromium.org/1051253008/diff/20001/ui/gl/gl_surface_egl.cc File ui/gl/gl_surface_egl.cc (right): https://codereview.chromium.org/1051253008/diff/20001/ui/gl/gl_surface_egl.cc#newcode378 ui/gl/gl_surface_egl.cc:378: if (client_extensions) nit: use {} if ...
5 years, 8 months ago (2015-04-16 21:52:34 UTC) #5
Jamie Madill
Thanks for feedback, PTAL. Antoine (and/or Mo), is it a concern that the D3D11-failing-D3D9-fallback systems ...
5 years, 8 months ago (2015-04-17 19:14:13 UTC) #6
piman
On Fri, Apr 17, 2015 at 12:14 PM, <jmadill@chromium.org> wrote: > Thanks for feedback, PTAL. ...
5 years, 8 months ago (2015-04-17 19:24:58 UTC) #7
Jamie Madill
> Do they differ between D3D9 and D3D11? > > Antoine Yes, they can differ. ...
5 years, 8 months ago (2015-04-17 19:31:12 UTC) #8
piman
On Fri, Apr 17, 2015 at 12:31 PM, <jmadill@chromium.org> wrote: > Do they differ between ...
5 years, 8 months ago (2015-04-17 19:39:27 UTC) #9
Jamie Madill
PTAL, I redesigned this code somewhat to initialize the display on Windows before querying for ...
5 years, 8 months ago (2015-04-20 18:33:11 UTC) #10
Zhenyao Mo
LGTM https://codereview.chromium.org/1051253008/diff/80001/ui/gl/gl_bindings.cc File ui/gl/gl_bindings.cc (right): https://codereview.chromium.org/1051253008/diff/80001/ui/gl/gl_bindings.cc#newcode47 ui/gl/gl_bindings.cc:47: return ""; On 2015/04/20 18:33:11, Jamie Madill wrote: ...
5 years, 8 months ago (2015-04-20 19:51:47 UTC) #11
Jamie Madill
https://codereview.chromium.org/1051253008/diff/80001/ui/gl/gl_bindings.cc File ui/gl/gl_bindings.cc (right): https://codereview.chromium.org/1051253008/diff/80001/ui/gl/gl_bindings.cc#newcode47 ui/gl/gl_bindings.cc:47: return ""; On 2015/04/20 19:51:47, Zhenyao Mo wrote: > ...
5 years, 8 months ago (2015-04-20 20:20:10 UTC) #12
Jamie Madill
Ping Antoine, could you re-review the diff of this patch? There are some significant changes.
5 years, 8 months ago (2015-04-23 16:32:43 UTC) #13
piman
https://codereview.chromium.org/1051253008/diff/100001/ui/gl/gl_bindings.cc File ui/gl/gl_bindings.cc (right): https://codereview.chromium.org/1051253008/diff/100001/ui/gl/gl_bindings.cc#newcode54 ui/gl/gl_bindings.cc:54: g_driver_egl.fn.eglInitializeFn(display, NULL, NULL); It would be easier to follow ...
5 years, 8 months ago (2015-04-23 21:03:30 UTC) #14
Jamie Madill
Antoine PTAL, I did as you suggested, and took it further, to use the same ...
5 years, 8 months ago (2015-04-24 16:37:54 UTC) #15
piman
LGTM, seems perfectly reasonable.
5 years, 7 months ago (2015-04-27 22:56:30 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1051253008/160001
5 years, 7 months ago (2015-04-28 16:32:56 UTC) #19
commit-bot: I haz the power
Committed patchset #9 (id:160001)
5 years, 7 months ago (2015-04-28 17:23:54 UTC) #20
commit-bot: I haz the power
5 years, 7 months ago (2015-04-28 17:25:55 UTC) #21
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/fefb7cfcf73c07b5f2774266bda02e839a829ef1
Cr-Commit-Position: refs/heads/master@{#327315}

Powered by Google App Engine
This is Rietveld 408576698