diff options
| author | John Reck <jreck@google.com> | 2014-04-08 14:10:17 -0700 |
|---|---|---|
| committer | John Reck <jreck@google.com> | 2014-04-08 14:13:31 -0700 |
| commit | 0ed751dd22a98f0c1f637570c5775b4f5e97d895 (patch) | |
| tree | a82cda58bb87186a655861ff1c0d07432ed40674 /core/java/android/view/ThreadedRenderer.java | |
| parent | 1f3f55b434ce324c5fdbe74db1982fea4812a2e9 (diff) | |
| download | frameworks_base-0ed751dd22a98f0c1f637570c5775b4f5e97d895.zip frameworks_base-0ed751dd22a98f0c1f637570c5775b4f5e97d895.tar.gz frameworks_base-0ed751dd22a98f0c1f637570c5775b4f5e97d895.tar.bz2 | |
Don't make HardwareRenderer calls in the finalizer
Bug: 13902530
Don't try to set the RenderNode's displayListData to 0 in the finalizer.
The HardwareRenderer may have already been finalized and it's not valid
to make calls into HardwareRenderer from another thread anyway.
The fix is that now that RenderNode is a refcounted object, this step
can be skipped entirely. The RenderNode destructor handles deleting
its DisplayListData if it needs to.
Change-Id: Ieab75575b98c24678a531dd5aa41a2d0afde0eef
Diffstat (limited to 'core/java/android/view/ThreadedRenderer.java')
| -rw-r--r-- | core/java/android/view/ThreadedRenderer.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/java/android/view/ThreadedRenderer.java b/core/java/android/view/ThreadedRenderer.java index 3d143d7..a747ab6 100644 --- a/core/java/android/view/ThreadedRenderer.java +++ b/core/java/android/view/ThreadedRenderer.java @@ -253,6 +253,7 @@ public class ThreadedRenderer extends HardwareRenderer { protected void finalize() throws Throwable { try { nDeleteProxy(mNativeProxy); + mNativeProxy = 0; } finally { super.finalize(); } |
