Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public static AnimatedMoveViewJob getInstance(ViewPortHandler viewPortHandler, f
}

public static void recycleInstance(AnimatedMoveViewJob instance){
instance.recycle();
pool.recycle(instance);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ public static MoveViewJob getInstance(ViewPortHandler viewPortHandler, float xVa
}

public static void recycleInstance(MoveViewJob instance){
instance.recycle();
pool.recycle(instance);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,10 @@ public float getXValue() {
public float getYValue() {
return yValue;
}

public void recycle() {
mViewPortHandler = null;
mTrans = null;
view = null;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public static ZoomJob getInstance(ViewPortHandler viewPortHandler, float scaleX,
}

public static void recycleInstance(ZoomJob instance) {
instance.recycle();
pool.recycle(instance);
}

Expand Down