New WebViewFunctor API

Should function alongside existing functor API.

Bug: 120997728
Test: hwuiunit passes
Change-Id: I8f6143d0be1111431b55016f34de319f6b8c8910
This commit is contained in:
John Reck
2018-12-13 16:40:14 -08:00
parent 832c17330e
commit 283bb46846
48 changed files with 939 additions and 314 deletions

View File

@@ -189,6 +189,14 @@ public final class RecordingCanvas extends DisplayListCanvas {
nCallDrawGLFunction(mNativeCanvasWrapper, drawGLFunctor, releasedCallback);
}
/**
* Calls the provided functor that was created via WebViewFunctor_create()
* @hide
*/
public void drawWebViewFunctor(int functor) {
nDrawWebViewFunctor(mNativeCanvasWrapper, functor);
}
///////////////////////////////////////////////////////////////////////////
// Display list
///////////////////////////////////////////////////////////////////////////
@@ -303,4 +311,6 @@ public final class RecordingCanvas extends DisplayListCanvas {
@CriticalNative
private static native void nDrawRoundRect(long renderer, long propLeft, long propTop,
long propRight, long propBottom, long propRx, long propRy, long propPaint);
@CriticalNative
private static native void nDrawWebViewFunctor(long canvas, int functor);
}