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

Issue 1844343005: WIP - Control the lifetime of RenderThreadManager from Java. (Closed)

Created:
4 years, 8 months ago by Tobias Sargeant
Modified:
4 years, 8 months ago
Reviewers:
boliu
CC:
chromium-reviews, android-webview-reviews_chromium.org, hush (inactive)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Control the lifetime of RenderThreadManager from Java. At the moment the lifetime of the RenderThreadManager instance stays the same as it was previously, but we can now delay its destruction by keeping the corresponding Java AwGLFunctor object alive, independently of AwContents. BUG=597167 Committed: https://crrev.com/53910e537e70af7b491ffaff4f581ea9c43fdb71 Cr-Commit-Position: refs/heads/master@{#386053}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Rework; BVR still needs to be informed of the SRS pointer. #

Total comments: 2

Patch Set 3 : Connect BVR and RTM #

Total comments: 2

Patch Set 4 : GYP #

Patch Set 5 : Give AwGLFunctor a pointer to BVR #

Patch Set 6 : #

Total comments: 30

Patch Set 7 : #

Patch Set 8 : Alternative: keep references to nativeGLDelegate and containerView rather than awContents #

Total comments: 4

Patch Set 9 : Address comments in #13 #

Patch Set 10 : Delete before clearing delegate #

Patch Set 11 : Javadoc #

Unified diffs Side-by-side diffs Delta from patch set Stats (+332 lines, -79 lines) Patch
M android_webview/BUILD.gn View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwContents.java View 1 2 3 4 5 6 7 8 9 10 17 chunks +24 lines, -24 lines 0 comments Download
A android_webview/java/src/org/chromium/android_webview/AwGLFunctor.java View 1 2 3 4 5 6 7 8 9 10 1 chunk +112 lines, -0 lines 0 comments Download
M android_webview/native/BUILD.gn View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M android_webview/native/android_webview_jni_registrar.cc View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M android_webview/native/aw_contents.h View 1 2 3 4 5 6 7 8 9 10 6 chunks +10 lines, -9 lines 0 comments Download
M android_webview/native/aw_contents.cc View 1 2 3 4 5 6 7 8 9 10 11 chunks +26 lines, -46 lines 0 comments Download
A android_webview/native/aw_gl_functor.h View 1 2 3 4 5 6 1 chunk +51 lines, -0 lines 0 comments Download
A android_webview/native/aw_gl_functor.cc View 1 2 3 4 5 6 1 chunk +100 lines, -0 lines 0 comments Download
M android_webview/native/webview_native.gyp View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (8 generated)
Tobias Sargeant
4 years, 8 months ago (2016-03-31 22:54:37 UTC) #2
boliu
You are cheating by not moving SRS to a_w/native, and instead messing with build files. ...
4 years, 8 months ago (2016-04-01 03:13:39 UTC) #3
boliu
On 2016/04/01 03:13:39, boliu wrote: > You are cheating by not moving SRS to a_w/native, ...
4 years, 8 months ago (2016-04-01 03:15:21 UTC) #4
boliu
On 2016/04/01 03:15:21, boliu wrote: > On 2016/04/01 03:13:39, boliu wrote: > > You are ...
4 years, 8 months ago (2016-04-01 05:54:01 UTC) #5
boliu
kinda weird there are two SRSClient implementations, and the proxy one just pass through calls ...
4 years, 8 months ago (2016-04-01 17:39:28 UTC) #6
boliu
Name.. I thought it should be RenderThread<blah>. Out of adapter, proxy, bridge, manager, controller, delegate, ...
4 years, 8 months ago (2016-04-01 20:42:34 UTC) #7
boliu
So there is AwGLFunctor.deleteHardwareRenderer and .destroy deleteHardwareRenderer should still happen where they used to, in ...
4 years, 8 months ago (2016-04-06 16:09:01 UTC) #9
boliu
https://codereview.chromium.org/1844343005/diff/100001/android_webview/BUILD.gn File android_webview/BUILD.gn (right): https://codereview.chromium.org/1844343005/diff/100001/android_webview/BUILD.gn#newcode666 android_webview/BUILD.gn:666: "java/src/org/chromium/android_webview/AwGLFunctor.java", alphabetical https://codereview.chromium.org/1844343005/diff/100001/android_webview/java/src/org/chromium/android_webview/AwContents.java File android_webview/java/src/org/chromium/android_webview/AwContents.java (right): https://codereview.chromium.org/1844343005/diff/100001/android_webview/java/src/org/chromium/android_webview/AwContents.java#newcode7 android_webview/java/src/org/chromium/android_webview/AwContents.java:7: import ...
4 years, 8 months ago (2016-04-07 18:14:03 UTC) #10
boliu
https://codereview.chromium.org/1844343005/diff/100001/android_webview/java/src/org/chromium/android_webview/AwContents.java File android_webview/java/src/org/chromium/android_webview/AwContents.java (right): https://codereview.chromium.org/1844343005/diff/100001/android_webview/java/src/org/chromium/android_webview/AwContents.java#newcode1100 android_webview/java/src/org/chromium/android_webview/AwContents.java:1100: nativeOnDetachedFromWindow(mNativeAwContents); On 2016/04/07 18:14:03, boliu wrote: > deleteHardwareRenderer first ...
4 years, 8 months ago (2016-04-07 18:28:27 UTC) #11
Tobias Sargeant
https://codereview.chromium.org/1844343005/diff/100001/android_webview/BUILD.gn File android_webview/BUILD.gn (right): https://codereview.chromium.org/1844343005/diff/100001/android_webview/BUILD.gn#newcode666 android_webview/BUILD.gn:666: "java/src/org/chromium/android_webview/AwGLFunctor.java", On 2016/04/07 18:14:03, boliu wrote: > alphabetical Done. ...
4 years, 8 months ago (2016-04-07 21:07:36 UTC) #12
boliu
https://codereview.chromium.org/1844343005/diff/100001/android_webview/native/aw_contents.cc File android_webview/native/aw_contents.cc (right): https://codereview.chromium.org/1844343005/diff/100001/android_webview/native/aw_contents.cc#newcode315 android_webview/native/aw_contents.cc:315: if (functor != functor_) { On 2016/04/07 21:07:36, Tobias ...
4 years, 8 months ago (2016-04-07 21:30:32 UTC) #13
Tobias Sargeant
https://codereview.chromium.org/1844343005/diff/140001/android_webview/java/src/org/chromium/android_webview/AwContents.java File android_webview/java/src/org/chromium/android_webview/AwContents.java (right): https://codereview.chromium.org/1844343005/diff/140001/android_webview/java/src/org/chromium/android_webview/AwContents.java#newcode875 android_webview/java/src/org/chromium/android_webview/AwContents.java:875: mAwGLFunctor.onAttachedToWindow(mNativeGLDelegate, mContainerView); On 2016/04/07 21:30:32, boliu wrote: > It's ...
4 years, 8 months ago (2016-04-07 21:39:49 UTC) #14
boliu
https://codereview.chromium.org/1844343005/diff/160001/android_webview/java/src/org/chromium/android_webview/AwGLFunctor.java File android_webview/java/src/org/chromium/android_webview/AwGLFunctor.java (right): https://codereview.chromium.org/1844343005/diff/160001/android_webview/java/src/org/chromium/android_webview/AwGLFunctor.java#newcode51 android_webview/java/src/org/chromium/android_webview/AwGLFunctor.java:51: deleteHardwareRenderer(); delete *before* setting the delegates to null
4 years, 8 months ago (2016-04-07 21:43:33 UTC) #15
boliu
lgtm java doc And wrap CL description at 72 chars
4 years, 8 months ago (2016-04-07 21:52:25 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1844343005/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1844343005/220001
4 years, 8 months ago (2016-04-08 11:59:32 UTC) #21
commit-bot: I haz the power
Committed patchset #11 (id:220001)
4 years, 8 months ago (2016-04-08 12:34:43 UTC) #23
commit-bot: I haz the power
4 years, 8 months ago (2016-04-08 12:35:43 UTC) #25
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/53910e537e70af7b491ffaff4f581ea9c43fdb71
Cr-Commit-Position: refs/heads/master@{#386053}

Powered by Google App Engine
This is Rietveld 408576698