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

Issue 1927543003: Remove DrawGLFunctor CleanupReference. (Closed)

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

Description

Remove DrawGLFunctor CleanupReference. Instead of having Java DrawGLFunctor register a CleanupReference to destroy its native counterpart, it provides a method to get a destroy runnable that performs this function, and it is up to the owner of the Java DrawGLFunctor object to call it at the appropriate time (i.e. when the native DrawGLFunctor is no longer referenced by the render thread display list). The AwGLFunctor DestroyRunnable holds a reference to the DrawGLFunctor DestroyRunnable, so that it can call it once AwGLFunctor is GC'ed. BUG=597167 Committed: https://crrev.com/fece06881fde15ddb181b3af43c3912457fca427 Cr-Commit-Position: refs/heads/master@{#390130}

Patch Set 1 #

Total comments: 5

Patch Set 2 : make Runnable static, throw if native DrawGLFunctor destroyed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -11 lines) Patch
M android_webview/glue/java/src/com/android/webview/chromium/DrawGLFunctor.java View 1 5 chunks +14 lines, -3 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwContents.java View 1 chunk +8 lines, -0 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwGLFunctor.java View 2 chunks +8 lines, -4 lines 0 comments Download
M android_webview/test/shell/src/org/chromium/android_webview/test/AwTestContainerView.java View 1 4 chunks +21 lines, -4 lines 0 comments Download

Messages

Total messages: 10 (4 generated)
Tobias Sargeant
4 years, 7 months ago (2016-04-27 16:29:13 UTC) #2
boliu
lgtm % asserts + test https://codereview.chromium.org/1927543003/diff/1/android_webview/glue/java/src/com/android/webview/chromium/DrawGLFunctor.java File android_webview/glue/java/src/com/android/webview/chromium/DrawGLFunctor.java (right): https://codereview.chromium.org/1927543003/diff/1/android_webview/glue/java/src/com/android/webview/chromium/DrawGLFunctor.java#newcode74 android_webview/glue/java/src/com/android/webview/chromium/DrawGLFunctor.java:74: return mDestroyRunnable; Assert everywhere ...
4 years, 7 months ago (2016-04-27 17:08:47 UTC) #3
Tobias Sargeant
https://codereview.chromium.org/1927543003/diff/1/android_webview/test/shell/src/org/chromium/android_webview/test/AwTestContainerView.java File android_webview/test/shell/src/org/chromium/android_webview/test/AwTestContainerView.java (right): https://codereview.chromium.org/1927543003/diff/1/android_webview/test/shell/src/org/chromium/android_webview/test/AwTestContainerView.java#newcode458 android_webview/test/shell/src/org/chromium/android_webview/test/AwTestContainerView.java:458: return new Runnable() { On 2016/04/27 17:08:46, boliu wrote: ...
4 years, 7 months ago (2016-04-27 17:29:49 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1927543003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1927543003/20001
4 years, 7 months ago (2016-04-27 17:30:33 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 7 months ago (2016-04-27 18:13:52 UTC) #8
commit-bot: I haz the power
4 years, 7 months ago (2016-04-30 17:11:22 UTC) #9
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/fece06881fde15ddb181b3af43c3912457fca427
Cr-Commit-Position: refs/heads/master@{#390130}

Powered by Google App Engine
This is Rietveld 408576698