Bug 740061. Remove unused isDirty. r=kats
authorJeff Muizelaar <jmuizelaar@mozilla.com>
Sat, 31 Mar 2012 13:05:05 -0400
changeset 94103 7284cf8a2c5e77ff0de92c88966d8d073c5d76dc
parent 94102 bb5bcfa28977d99073afae7754403e64759dd981
child 94104 02782c390352cd4a537671fa3df77686bac115c0
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 isDirty. r=kats
mobile/android/base/gfx/TileLayer.java
--- a/mobile/android/base/gfx/TileLayer.java
+++ b/mobile/android/base/gfx/TileLayer.java
@@ -98,20 +98,16 @@ public abstract class TileLayer extends 
 
     public void invalidate() {
         if (!inTransaction())
             throw new RuntimeException("invalidate() is only valid inside a transaction");
         IntSize bufferSize = mImage.getSize();
         mDirtyRect.set(0, 0, bufferSize.width, bufferSize.height);
     }
 
-    public boolean isDirty() {
-        return mImage.getSize().isPositive() && (mTextureIDs == null || !mDirtyRect.isEmpty());
-    }
-
     private void validateTexture() {
         /* Calculate the ideal texture size. This must be a power of two if
          * the texture is repeated or OpenGL ES 2.0 isn't supported, as
          * OpenGL ES 2.0 is required for NPOT texture support (without
          * extensions), but doesn't support repeating NPOT textures.
          *
          * XXX Currently, we don't pick a GLES 2.0 context, so always round.
          */