Loading core/java/android/view/DisplayList.java +16 −0 Original line number Diff line number Diff line Loading @@ -16,6 +16,8 @@ package android.view; import android.os.Handler; /** * A display lists records a series of graphics related operation and can replay * them later. Display lists are usually built by recording operations on a Loading @@ -26,6 +28,13 @@ package android.view; * @hide */ public abstract class DisplayList { private final Runnable mInvalidate = new Runnable() { @Override public void run() { invalidate(); } }; /** * Flag used when calling * {@link HardwareCanvas#drawDisplayList(DisplayList, int, int, android.graphics.Rect, int)}. Loading Loading @@ -56,6 +65,13 @@ public abstract class DisplayList { */ public abstract void invalidate(); /** * Posts a call to {@link #invalidate()} in the specified handler. */ final void postInvalidate(Handler handler) { handler.post(mInvalidate); } /** * Returns whether the display list is currently usable. If this returns false, * the display list should be re-recorded prior to replaying it. Loading core/java/android/view/View.java +1 −1 Original line number Diff line number Diff line Loading @@ -9975,7 +9975,7 @@ public class View implements Drawable.Callback, Drawable.Callback2, KeyEvent.Cal destroyLayer(); if (mDisplayList != null) { mDisplayList.invalidate(); mDisplayList.postInvalidate(mAttachInfo.mHandler); } if (mAttachInfo != null) { Loading Loading
core/java/android/view/DisplayList.java +16 −0 Original line number Diff line number Diff line Loading @@ -16,6 +16,8 @@ package android.view; import android.os.Handler; /** * A display lists records a series of graphics related operation and can replay * them later. Display lists are usually built by recording operations on a Loading @@ -26,6 +28,13 @@ package android.view; * @hide */ public abstract class DisplayList { private final Runnable mInvalidate = new Runnable() { @Override public void run() { invalidate(); } }; /** * Flag used when calling * {@link HardwareCanvas#drawDisplayList(DisplayList, int, int, android.graphics.Rect, int)}. Loading Loading @@ -56,6 +65,13 @@ public abstract class DisplayList { */ public abstract void invalidate(); /** * Posts a call to {@link #invalidate()} in the specified handler. */ final void postInvalidate(Handler handler) { handler.post(mInvalidate); } /** * Returns whether the display list is currently usable. If this returns false, * the display list should be re-recorded prior to replaying it. Loading
core/java/android/view/View.java +1 −1 Original line number Diff line number Diff line Loading @@ -9975,7 +9975,7 @@ public class View implements Drawable.Callback, Drawable.Callback2, KeyEvent.Cal destroyLayer(); if (mDisplayList != null) { mDisplayList.invalidate(); mDisplayList.postInvalidate(mAttachInfo.mHandler); } if (mAttachInfo != null) { Loading