Skip to content

Instantly share code, notes, and snippets.

@Dimezis
Last active March 28, 2019 21:15
Show Gist options
  • Save Dimezis/24e23d5a53ee04b18cdd98de18878604 to your computer and use it in GitHub Desktop.
Save Dimezis/24e23d5a53ee04b18cdd98de18878604 to your computer and use it in GitHub Desktop.
@Override
public final void invalidateChild(View child, final Rect dirty) {
final AttachInfo attachInfo = mAttachInfo;
if (attachInfo != null && attachInfo.mHardwareAccelerated) {
// HW accelerated fast path
onDescendantInvalidated(child, child);
return;
}
// A bunch of code here for old slow path
parent.invalidateChildInParent(location, dirty);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment