| Index: android_webview/glue/java/src/com/android/webview/chromium/DrawGLFunctor.java
|
| diff --git a/android_webview/glue/java/src/com/android/webview/chromium/DrawGLFunctor.java b/android_webview/glue/java/src/com/android/webview/chromium/DrawGLFunctor.java
|
| index 597313b7deba46b027a806523f1e701391749c9d..c618b1a1f8918e8e0d04fc9d07d0eb3a000bbe6f 100644
|
| --- a/android_webview/glue/java/src/com/android/webview/chromium/DrawGLFunctor.java
|
| +++ b/android_webview/glue/java/src/com/android/webview/chromium/DrawGLFunctor.java
|
| @@ -16,8 +16,7 @@ import org.chromium.content.common.CleanupReference;
|
| * Simple Java abstraction and wrapper for the native DrawGLFunctor flow.
|
| * An instance of this class can be constructed, bound to a single view context (i.e. AwContennts)
|
| * and then drawn and detached from the view tree any number of times (using requestDrawGL and
|
| - * detach respectively). Then when finished with, it can be explicitly released by calling
|
| - * destroy() or will clean itself up as required via finalizer / CleanupReference.
|
| + * detach respectively).
|
| */
|
| class DrawGLFunctor {
|
| private static final String TAG = DrawGLFunctor.class.getSimpleName();
|
| @@ -36,17 +35,6 @@ class DrawGLFunctor {
|
| mWebViewDelegate = webViewDelegate;
|
| }
|
|
|
| - public void destroy() {
|
| - detach();
|
| - if (mCleanupReference != null) {
|
| - mCleanupReference.cleanupNow();
|
| - mCleanupReference = null;
|
| - mDestroyRunnable = null;
|
| - mWebViewDelegate = null;
|
| - mContainerView = null;
|
| - }
|
| - }
|
| -
|
| public void detach() {
|
| if (mWebViewDelegate != null && mContainerView != null) {
|
| mWebViewDelegate.detachDrawGlFunctor(mContainerView, mNativeDrawGLFunctor);
|
|
|