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

Issue 872403006: aw: Make repeated detachGLFunctor work (Closed)

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

Description

aw: Make repeated detachGLFunctor work detachGLFunctor is called every time the webview is detached (ie when hardware acceleration is torn down and cleaned up). This can happen many times since webview can be attached and detached many times. However the implementation in the glue layer only does something on the first call. Also in general, it's a bad pattern for CleanupReference to have strong java refs. It's not necessary to call detachGLFunctor on gc; detach is enough. So move all that code out of the DestroyRunnable of the CleanupReference. This is a long standing bug since the first release of chromium webview. BUG= Committed: https://crrev.com/72cf6e83b26d24af3c1b270f839911dfaddf2d46 Cr-Commit-Position: refs/heads/master@{#315051}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -17 lines) Patch
M android_webview/glue/java/src/com/android/webview/chromium/DrawGLFunctor.java View 4 chunks +13 lines, -17 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
boliu
torne for review And a question. I'm not planning on merging this anywhere, but should ...
5 years, 10 months ago (2015-02-06 00:18:51 UTC) #2
Torne
On 2015/02/06 00:18:51, boliu wrote: > torne for review LGTM > And a question. I'm ...
5 years, 10 months ago (2015-02-06 11:45:09 UTC) #3
boliu
On 2015/02/06 11:45:09, Torne wrote: > On 2015/02/06 00:18:51, boliu wrote: > > torne for ...
5 years, 10 months ago (2015-02-06 16:29:10 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/872403006/1
5 years, 10 months ago (2015-02-06 16:36:01 UTC) #6
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years, 10 months ago (2015-02-06 17:12:41 UTC) #7
commit-bot: I haz the power
5 years, 10 months ago (2015-02-06 17:13:28 UTC) #8
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/72cf6e83b26d24af3c1b270f839911dfaddf2d46
Cr-Commit-Position: refs/heads/master@{#315051}

Powered by Google App Engine
This is Rietveld 408576698