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

Issue 12038095: Android webview fix gpu crashes after destroy (Closed)

Created:
7 years, 11 months ago by boliu
Modified:
7 years, 10 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, apatrick_chromium
Visibility:
Public.

Description

Android webview fix gpu crashes after destroy These are some fixes to handle corner cases and races uncovered with some Android WebView stress tests that very quickly create and destroy views. BUG=172184 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=179737

Patch Set 1 #

Total comments: 6

Patch Set 2 : More fixes #

Total comments: 5

Patch Set 3 : Fix ANativeWindow refcounting #

Patch Set 4 : Remove unneeded changes. #

Total comments: 3

Patch Set 5 : #

Patch Set 6 : SetSurfaceHandle in ~SurfaceTextureTransportClient #

Patch Set 7 : SetNativeWidget in ~SurfaceTextureTransportClient #

Total comments: 5

Patch Set 8 : Style fixes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -13 lines) Patch
M content/browser/gpu/gpu_surface_tracker.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M content/browser/gpu/gpu_surface_tracker.cc View 1 2 3 4 5 6 7 2 chunks +11 lines, -1 line 0 comments Download
M content/browser/renderer_host/surface_texture_transport_client_android.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/surface_texture_transport_client_android.cc View 1 2 3 4 5 6 7 2 chunks +8 lines, -1 line 0 comments Download
M content/common/gpu/gpu_command_buffer_stub.cc View 1 2 3 4 1 chunk +7 lines, -1 line 0 comments Download
M content/common/gpu/gpu_surface_lookup.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M content/common/gpu/image_transport_surface_android.cc View 1 2 3 4 5 6 7 2 chunks +9 lines, -6 lines 0 comments Download
M ui/gl/gl_context.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M ui/gl/gl_surface_egl.cc View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
boliu
Hey Daniel, this is my first pass at fixing crashes I saw while running my ...
7 years, 11 months ago (2013-01-25 18:13:22 UTC) #1
no sievers
https://codereview.chromium.org/12038095/diff/1/content/common/gpu/gpu_command_buffer_stub.cc File content/common/gpu/gpu_command_buffer_stub.cc (right): https://codereview.chromium.org/12038095/diff/1/content/common/gpu/gpu_command_buffer_stub.cc#newcode429 content/common/gpu/gpu_command_buffer_stub.cc:429: LOG(ERROR) << "Failed to initialize virtual GL context."; I ...
7 years, 11 months ago (2013-01-25 20:24:40 UTC) #2
boliu
The test I've been using to reproduce these crashes is https://codereview.chromium.org/12038098/diff/1/android_webview/javatests/src/org/chromium/android_webview/test/AwContentsTest.java (These crashes are independent ...
7 years, 11 months ago (2013-01-25 21:27:01 UTC) #3
boliu
I'm still baffled by the crash in android egl...I tried flashing to jb, but still ...
7 years, 11 months ago (2013-01-26 01:18:00 UTC) #4
boliu
I'm pretty sure Patch Set 3 fixes all the errors I saw. (Coded it up ...
7 years, 11 months ago (2013-01-26 03:56:08 UTC) #5
no sievers
https://codereview.chromium.org/12038095/diff/6001/content/browser/renderer_host/compositor_impl_android.cc File content/browser/renderer_host/compositor_impl_android.cc (right): https://codereview.chromium.org/12038095/diff/6001/content/browser/renderer_host/compositor_impl_android.cc#newcode135 content/browser/renderer_host/compositor_impl_android.cc:135: SetWindowSurface(NULL); On 2013/01/26 01:18:00, boliu wrote: > This was ...
7 years, 10 months ago (2013-01-28 19:46:15 UTC) #6
boliu
https://codereview.chromium.org/12038095/diff/13001/content/browser/renderer_host/surface_texture_transport_client_android.cc File content/browser/renderer_host/surface_texture_transport_client_android.cc (right): https://codereview.chromium.org/12038095/diff/13001/content/browser/renderer_host/surface_texture_transport_client_android.cc#newcode56 content/browser/renderer_host/surface_texture_transport_client_android.cc:56: ANativeWindow_acquire(window_); On 2013/01/28 19:46:15, Daniel Sievers wrote: > I ...
7 years, 10 months ago (2013-01-28 20:47:09 UTC) #7
no sievers
https://codereview.chromium.org/12038095/diff/13001/ui/gl/gl_surface_egl.cc File ui/gl/gl_surface_egl.cc (right): https://codereview.chromium.org/12038095/diff/13001/ui/gl/gl_surface_egl.cc#newcode227 ui/gl/gl_surface_egl.cc:227: if (!window_) { if (window_ == kNullAcceleratedWidget)
7 years, 10 months ago (2013-01-28 20:55:06 UTC) #8
no sievers
https://codereview.chromium.org/12038095/diff/10009/content/browser/gpu/gpu_surface_tracker.cc File content/browser/gpu/gpu_surface_tracker.cc (right): https://codereview.chromium.org/12038095/diff/10009/content/browser/gpu/gpu_surface_tracker.cc#newcode11 content/browser/gpu/gpu_surface_tracker.cc:11: #endif // defined(OS_ANDROID) I *think* this might belong above ...
7 years, 10 months ago (2013-01-28 23:05:03 UTC) #9
boliu
apatrick: Could you take a look at the android fixes in this patch? https://codereview.chromium.org/12038095/diff/10009/content/browser/gpu/gpu_surface_tracker.cc File ...
7 years, 10 months ago (2013-01-28 23:42:12 UTC) #10
no sievers
LGTM. Needs Al for OWNERS. These are some fixes to handle corner cases and races ...
7 years, 10 months ago (2013-01-29 18:46:07 UTC) #11
apatrick_chromium
lgtm
7 years, 10 months ago (2013-01-30 20:47:05 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/boliu@chromium.org/12038095/12008
7 years, 10 months ago (2013-01-30 20:48:27 UTC) #13
commit-bot: I haz the power
7 years, 10 months ago (2013-01-30 23:47:23 UTC) #14
Message was sent while issue was closed.
Change committed as 179737

Powered by Google App Engine
This is Rietveld 408576698