Methods Summary |
---|
public void | destroy()
detach();
if (mCleanupReference != null) {
mCleanupReference.cleanupNow();
mCleanupReference = null;
mDestroyRunnable = null;
mWebViewDelegate = null;
}
|
public void | detach()
mDestroyRunnable.detachNativeFunctor();
|
private static native long | nativeCreateGLFunctor(long viewContext)
|
private static native void | nativeDestroyGLFunctor(long functor)
|
private static native void | nativeSetChromiumAwDrawGLFunction(long functionPointer)
|
public boolean | requestDrawGL(android.graphics.Canvas canvas, android.view.View containerView, boolean waitForCompletion)
if (mDestroyRunnable.mNativeDrawGLFunctor == 0) {
throw new RuntimeException("requested DrawGL on already destroyed DrawGLFunctor");
}
if (!mWebViewDelegate.canInvokeDrawGlFunctor(containerView)) {
return false;
}
mDestroyRunnable.mContainerView = containerView;
if (canvas == null) {
mWebViewDelegate.invokeDrawGlFunctor(containerView,
mDestroyRunnable.mNativeDrawGLFunctor, waitForCompletion);
return true;
}
mWebViewDelegate.callDrawGlFunction(canvas, mDestroyRunnable.mNativeDrawGLFunctor);
if (waitForCompletion) {
mWebViewDelegate.invokeDrawGlFunctor(containerView,
mDestroyRunnable.mNativeDrawGLFunctor, waitForCompletion);
}
return true;
|
public static void | setChromiumAwDrawGLFunction(long functionPointer)
nativeSetChromiumAwDrawGLFunction(functionPointer);
|