summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorRomain Guy <romainguy@google.com>2010-10-12 11:31:07 -0700
committerRomain Guy <romainguy@google.com>2010-10-12 11:31:07 -0700
commitc00972bb162779e52d1b0d8f662a9f6033bf9182 (patch)
tree8ccf4a198e231998bc3c2eb75d3fc4d17cb0b2b3 /core
parent425c305a535d8c5a9082685523ba46d06199e543 (diff)
downloadframeworks_base-c00972bb162779e52d1b0d8f662a9f6033bf9182.zip
frameworks_base-c00972bb162779e52d1b0d8f662a9f6033bf9182.tar.gz
frameworks_base-c00972bb162779e52d1b0d8f662a9f6033bf9182.tar.bz2
Don't recreate a new texture every time we draw a layer.
Change-Id: I3c28aff5acffc7c6f1ac74805869725426c62d28
Diffstat (limited to 'core')
-rw-r--r--core/java/android/view/VelocityTracker.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/java/android/view/VelocityTracker.java b/core/java/android/view/VelocityTracker.java
index b1fdec8..4ab2881 100644
--- a/core/java/android/view/VelocityTracker.java
+++ b/core/java/android/view/VelocityTracker.java
@@ -387,7 +387,7 @@ public final class VelocityTracker implements Poolable<VelocityTracker> {
return pointer != null ? pointer.yVelocity : 0;
}
- private final Pointer getPointer(int id) {
+ private Pointer getPointer(int id) {
for (Pointer pointer = mPointerListHead; pointer != null; pointer = pointer.next) {
if (pointer.id == id) {
return pointer;
@@ -396,7 +396,7 @@ public final class VelocityTracker implements Poolable<VelocityTracker> {
return null;
}
- private static final Pointer obtainPointer() {
+ private static Pointer obtainPointer() {
synchronized (sPool) {
if (sRecycledPointerCount != 0) {
Pointer element = sRecycledPointerListHead;
@@ -409,7 +409,7 @@ public final class VelocityTracker implements Poolable<VelocityTracker> {
return new Pointer();
}
- private static final void releasePointer(Pointer pointer) {
+ private static void releasePointer(Pointer pointer) {
synchronized (sPool) {
if (sRecycledPointerCount < POINTER_POOL_CAPACITY) {
pointer.next = sRecycledPointerListHead;
@@ -419,7 +419,7 @@ public final class VelocityTracker implements Poolable<VelocityTracker> {
}
}
- private static final void releasePointerList(Pointer pointer) {
+ private static void releasePointerList(Pointer pointer) {
if (pointer != null) {
synchronized (sPool) {
int count = sRecycledPointerCount;