@Override public final void update(Renderer renderer, int x, int y, int width, int height, EnumSet<LayerType> layers) { synchronized (this) { if (updateArea != null) updateArea.union(x, y, x + width, y + height); else updateArea = new Rect(x, y, x + width, y + height); lastRenderer = renderer; } postInvalidate(x, y, x + width, y + height); } }