Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cae80490 authored by Jeff Brown's avatar Jeff Brown
Browse files

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
parent 1b9ba578
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -22737,6 +22737,17 @@ package android.view {
    method public void onPrepareSubMenu(android.view.SubMenu);
  }
  public final class Choreographer {
    method public static android.view.Choreographer getInstance();
    method public void postFrameCallback(android.view.Choreographer.FrameCallback);
    method public void postFrameCallbackDelayed(android.view.Choreographer.FrameCallback, long);
    method public void removeFrameCallback(android.view.Choreographer.FrameCallback);
  }
  public static abstract interface Choreographer.FrameCallback {
    method public abstract void doFrame(long);
  }
  public abstract interface CollapsibleActionView {
    method public abstract void onActionViewCollapsed();
    method public abstract void onActionViewExpanded();
+11 −0
Original line number Diff line number Diff line
@@ -22737,6 +22737,17 @@ package android.view {
    method public void onPrepareSubMenu(android.view.SubMenu);
  }
  public final class Choreographer {
    method public static android.view.Choreographer getInstance();
    method public void postFrameCallback(android.view.Choreographer.FrameCallback);
    method public void postFrameCallbackDelayed(android.view.Choreographer.FrameCallback, long);
    method public void removeFrameCallback(android.view.Choreographer.FrameCallback);
  }
  public static abstract interface Choreographer.FrameCallback {
    method public abstract void doFrame(long);
  }
  public abstract interface CollapsibleActionView {
    method public abstract void onActionViewCollapsed();
    method public abstract void onActionViewExpanded();
+235 −62

File changed.

Preview size limit exceeded, changes collapsed.