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

Issue 320283002: Fix crash when using surfaceless EGL on Android (Closed)

Created:
6 years, 6 months ago by oetuaho-nv
Modified:
6 years, 6 months ago
CC:
chromium-reviews, android-webview-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@lkgr
Visibility:
Public.

Description

Fix crash when using surfaceless EGL on Android Android's GL context implementation needs to be able to create a GLNonOwnedContext for Android WebView when sharing the app-managed surface and context, and a regular EGL context otherwise. Previously it decided between these based on whether the given GL surface had a surface handle. This lead to problems when using surfaceless EGL, where Chromium's surface objects don't have an underlying handle. Use an explicit flag instead to determine whether a GL surface is owned. BUG=382349

Patch Set 1 #

Patch Set 2 : Fix Mac build issue #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -3 lines) Patch
M android_webview/browser/aw_gl_surface.h View 1 chunk +1 line, -0 lines 0 comments Download
M android_webview/browser/aw_gl_surface.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M ui/gl/gl_context_android.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M ui/gl/gl_surface.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M ui/gl/gl_surface.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
oetuaho-nv
6 years, 6 months ago (2014-06-09 15:00:37 UTC) #1
Ken Russell (switch to Gerrit)
lgtm
6 years, 6 months ago (2014-06-09 18:37:47 UTC) #2
oetuaho-nv
The CQ bit was checked by oetuaho@nvidia.com
6 years, 6 months ago (2014-06-10 07:20:08 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oetuaho@nvidia.com/320283002/1
6 years, 6 months ago (2014-06-10 07:21:56 UTC) #4
oetuaho-nv
The CQ bit was checked by oetuaho@nvidia.com
6 years, 6 months ago (2014-06-10 08:51:09 UTC) #5
oetuaho-nv
The patch needed a trivial build fix, retrying to commit.
6 years, 6 months ago (2014-06-10 08:51:33 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oetuaho@nvidia.com/320283002/20001
6 years, 6 months ago (2014-06-10 08:53:35 UTC) #7
oetuaho-nv
Adding Android Webview owners, need approval.
6 years, 6 months ago (2014-06-10 12:38:38 UTC) #8
boliu
PS2 not lgtm State of things is pretty messy on android webview, and there is ...
6 years, 6 months ago (2014-06-10 15:33:01 UTC) #9
no sievers
So we only need this for the context factory to decide what type of context ...
6 years, 6 months ago (2014-06-10 18:30:33 UTC) #10
no sievers
Btw if it unblocks you feel free to disable surfaceless contexts on Android and file ...
6 years, 6 months ago (2014-06-10 18:46:09 UTC) #11
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: chromium_presubmit on tryserver.chromium ...
6 years, 6 months ago (2014-06-10 21:02:05 UTC) #12
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-10 21:12:15 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/chromium_presubmit/builds/72777)
6 years, 6 months ago (2014-06-10 21:12:16 UTC) #14
oetuaho-nv
6 years, 6 months ago (2014-06-11 16:18:20 UTC) #15
On 2014/06/10 18:46:09, sievers wrote:
> Btw if it unblocks you feel free to disable surfaceless contexts on Android
and
> file a bug for us to sort this out wrt WebView.

Right, I uploaded the workaround.

I suppose we can continue using
https://code.google.com/p/chromium/issues/detail?id=382349 for the WebView work,
someone who's in the WebView team can take it over.

Powered by Google App Engine
This is Rietveld 408576698