Bug 740061. Remove unused invalidate(rect). r=kats
authorJeff Muizelaar <jmuizelaar@mozilla.com>
Sat, 31 Mar 2012 13:02:37 -0400
changeset 90788 3cd77601c2056b1959664972626e493a97d970ea
parent 90787 e3f2d863c0d5cdbc0c8a201496566d9f82355af1
child 90789 bb5bcfa28977d99073afae7754403e64759dd981
push id22382
push userbmo@edmorley.co.uk
push dateSat, 31 Mar 2012 21:44:34 +0000
treeherdermozilla-central@bbe5086163c9 [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 invalidate(rect). r=kats
mobile/android/base/gfx/TileLayer.java
--- a/mobile/android/base/gfx/TileLayer.java
+++ b/mobile/android/base/gfx/TileLayer.java
@@ -87,28 +87,25 @@ public abstract class TileLayer extends 
     public void setPosition(Rect newPosition) {
         if (newPosition.width() != mImage.getSize().width || newPosition.height() != mImage.getSize().height) {
             throw new RuntimeException("Error: changing the size of a tile layer is not allowed!");
         }
         super.setPosition(newPosition);
     }
 
     /**
-     * Invalidates the given rect so that it will be uploaded again. Only valid inside a
+     * Invalidates the entire buffer so that it will be uploaded again. Only valid inside a
      * transaction.
      */
-    public void invalidate(Rect rect) {
+
+    public void invalidate() {
         if (!inTransaction())
             throw new RuntimeException("invalidate() is only valid inside a transaction");
-        mDirtyRect.union(rect);
-    }
-
-    public void invalidate() {
         IntSize bufferSize = mImage.getSize();
-        invalidate(new Rect(0, 0, bufferSize.width, bufferSize.height));
+        mDirtyRect.union(new Rect(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