Bug 740061. Remove unused skip functionality. r=kats

mSkipTextureUpdate is never set to true.
This commit is contained in:
Jeff Muizelaar 2012-03-31 13:36:42 -04:00
Родитель 2577f066d5
Коммит f149464511
1 изменённых файлов: 0 добавлений и 15 удалений

Просмотреть файл

@ -60,7 +60,6 @@ public abstract class TileLayer extends Layer {
private final CairoImage mImage;
private final boolean mRepeat;
private IntSize mSize;
private boolean mSkipTextureUpdate;
private int[] mTextureIDs;
public TileLayer(boolean repeat, CairoImage image) {
@ -69,7 +68,6 @@ public abstract class TileLayer extends Layer {
mRepeat = repeat;
mImage = image;
mSize = new IntSize(0, 0);
mSkipTextureUpdate = false;
mDirtyRect = new Rect();
}
@ -131,23 +129,10 @@ public abstract class TileLayer extends Layer {
}
}
/** Tells the tile not to update the texture on the next update. */
public void setSkipTextureUpdate(boolean skip) {
mSkipTextureUpdate = skip;
}
public boolean getSkipTextureUpdate() {
return mSkipTextureUpdate;
}
@Override
protected boolean performUpdates(RenderContext context) {
super.performUpdates(context);
if (mSkipTextureUpdate) {
return false;
}
// Reallocate the texture if the size has changed
validateTexture();