Bug 820556 - Remove unused function. r=snorp
authorKartikaya Gupta <kgupta@mozilla.com>
Tue, 11 Dec 2012 17:33:09 -0500
changeset 115714 99a78630d2c237ae5fb6a712eed340c990e43b3f
parent 115713 2fd28dc82cc010576a337cfbe8d1ec4774ea0f53
child 115715 939a0ad6e8d6453f0ebc86ea7b136a6bd01ede9c
push id24020
push useremorley@mozilla.com
push dateWed, 12 Dec 2012 10:01:41 +0000
treeherdermozilla-central@634180132e68 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssnorp
bugs820556
milestone20.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 820556 - Remove unused function. r=snorp
mobile/android/base/gfx/Layer.java
--- a/mobile/android/base/gfx/Layer.java
+++ b/mobile/android/base/gfx/Layer.java
@@ -63,25 +63,16 @@ public abstract class Layer {
     public abstract void draw(RenderContext context);
 
     /** Given the intrinsic size of the layer, returns the pixel boundaries of the layer rect. */
     protected RectF getBounds(RenderContext context) {
         return RectUtils.scale(new RectF(mPosition), context.zoomFactor / mResolution);
     }
 
     /**
-     * Returns the region of the layer that is considered valid. The default
-     * implementation of this will return the bounds of the layer, but this
-     * may be overridden.
-     */
-    public Region getValidRegion(RenderContext context) {
-        return new Region(RectUtils.round(getBounds(context)));
-    }
-
-    /**
      * Call this before modifying the layer. Note that, for TileLayers, "modifying the layer"
      * includes altering the underlying CairoImage in any way. Thus you must call this function
      * before modifying the byte buffer associated with this layer.
      *
      * This function may block, so you should never call this on the main UI thread.
      */
     public void beginTransaction() {
         if (mTransactionLock.isHeldByCurrentThread())