Bug 740061. Remove unused skip functionality. r=kats
authorJeff Muizelaar <jmuizelaar@mozilla.com>
Sat, 31 Mar 2012 13:36:42 -0400
changeset 94105 a963db912f08dc7adf7b4a8889084c9726c44350
parent 94104 02782c390352cd4a537671fa3df77686bac115c0
child 94106 bbe5086163c91cdb78a979720e0071077eb7fef8
child 94122 ee28936ed0abaf13cee119995c76842972bbb8d9
push id886
push userlsblakk@mozilla.com
push dateMon, 04 Jun 2012 19:57:52 +0000
treeherdermozilla-beta@bbd8d5efd6d1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskats
bugs740061
milestone14.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 740061. Remove unused skip functionality. r=kats mSkipTextureUpdate is never set to true.
mobile/android/base/gfx/TileLayer.java
--- a/mobile/android/base/gfx/TileLayer.java
+++ b/mobile/android/base/gfx/TileLayer.java
@@ -55,26 +55,24 @@ import java.nio.FloatBuffer;
  */
 public abstract class TileLayer extends Layer {
     private static final String LOGTAG = "GeckoTileLayer";
 
     private final Rect mDirtyRect;
     private final CairoImage mImage;
     private final boolean mRepeat;
     private IntSize mSize;
-    private boolean mSkipTextureUpdate;
     private int[] mTextureIDs;
 
     public TileLayer(boolean repeat, CairoImage image) {
         super(image.getSize());
 
         mRepeat = repeat;
         mImage = image;
         mSize = new IntSize(0, 0);
-        mSkipTextureUpdate = false;
         mDirtyRect = new Rect();
     }
 
     protected boolean repeats() { return mRepeat; }
     protected int getTextureID() { return mTextureIDs[0]; }
     protected boolean initialized() { return mImage != null && mTextureIDs != null; }
 
     @Override
@@ -126,33 +124,20 @@ public abstract class TileLayer extends 
 
                 // Free the texture immediately, so we don't incur a
                 // temporarily increased memory usage.
                 TextureReaper.get().reap();
             }
         }
     }
 
-    /** 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();
 
         // Don't do any work if the image has an invalid size.
         if (!mImage.getSize().isPositive())
             return true;
 
         // If we haven't allocated a texture, assume the whole region is dirty