Merge "Deallocate offscreen buffer for non-HW-accel draw"

This commit is contained in:
Ken Wakasa 2013-08-01 09:29:23 +00:00 committed by Android (Google) Code Review
commit ed56ea86d0
2 changed files with 6 additions and 0 deletions

View file

@ -605,4 +605,8 @@ public class KeyboardView extends View {
super.onDetachedFromWindow();
freeOffscreenBuffer();
}
public void deallocateMemory() {
freeOffscreenBuffer();
}
}

View file

@ -1271,7 +1271,9 @@ public final class MainKeyboardView extends KeyboardView implements PointerTrack
}
}
@Override
public void deallocateMemory() {
super.deallocateMemory();
mGestureTrailsPreview.deallocateMemory();
}
}