jdk/src/solaris/classes/sun/java2d/xr/GrowableRectArray.java
changeset 20419 be660188e0b4
parent 6374 e214162c907e
child 23010 6dadb192ad81
--- a/jdk/src/solaris/classes/sun/java2d/xr/GrowableRectArray.java	Wed Oct 02 11:16:07 2013 -0700
+++ b/jdk/src/solaris/classes/sun/java2d/xr/GrowableRectArray.java	Wed Oct 02 11:22:07 2013 -0700
@@ -38,6 +38,20 @@
         super(RECT_SIZE, initialSize);
     }
 
+    public final void pushRectValues(int x, int y, int width, int height) {
+        int currSize = size;
+        size += RECT_SIZE;
+
+        if (size >= array.length) {
+            growArray();
+        }
+
+        array[currSize] = x;
+        array[currSize + 1] = y;
+        array[currSize + 2] = width;
+        array[currSize + 3] = height;
+    }
+
     public final void setX(int index, int x) {
         array[getCellIndex(index)] = x;
     }