Skip to content

Commit cae8049

Browse files
author
Jeff Brown
committed
Add public API to Choreographer.
The API allows applications to post FrameCallbacks that will run on vsync and that are provided with the frame time. Change-Id: Ieb39fcdd085ef8a57805b8f78e7a307f416ff21d
1 parent 1b9ba57 commit cae8049

File tree

3 files changed

+257
-62
lines changed

3 files changed

+257
-62
lines changed

api/16.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22737,6 +22737,17 @@ package android.view {
2273722737
method public void onPrepareSubMenu(android.view.SubMenu);
2273822738
}
2273922739

22740+
public final class Choreographer {
22741+
method public static android.view.Choreographer getInstance();
22742+
method public void postFrameCallback(android.view.Choreographer.FrameCallback);
22743+
method public void postFrameCallbackDelayed(android.view.Choreographer.FrameCallback, long);
22744+
method public void removeFrameCallback(android.view.Choreographer.FrameCallback);
22745+
}
22746+
22747+
public static abstract interface Choreographer.FrameCallback {
22748+
method public abstract void doFrame(long);
22749+
}
22750+
2274022751
public abstract interface CollapsibleActionView {
2274122752
method public abstract void onActionViewCollapsed();
2274222753
method public abstract void onActionViewExpanded();

api/current.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22737,6 +22737,17 @@ package android.view {
2273722737
method public void onPrepareSubMenu(android.view.SubMenu);
2273822738
}
2273922739

22740+
public final class Choreographer {
22741+
method public static android.view.Choreographer getInstance();
22742+
method public void postFrameCallback(android.view.Choreographer.FrameCallback);
22743+
method public void postFrameCallbackDelayed(android.view.Choreographer.FrameCallback, long);
22744+
method public void removeFrameCallback(android.view.Choreographer.FrameCallback);
22745+
}
22746+
22747+
public static abstract interface Choreographer.FrameCallback {
22748+
method public abstract void doFrame(long);
22749+
}
22750+
2274022751
public abstract interface CollapsibleActionView {
2274122752
method public abstract void onActionViewCollapsed();
2274222753
method public abstract void onActionViewExpanded();

0 commit comments

Comments
 (0)