jdk/src/java.desktop/share/classes/sun/java2d/loops/ProcessPath.java
changeset 28059 e576535359cc
parent 25859 3317bb8137f4
child 32865 f9cb6e427f9e
equal deleted inserted replaced
28058:87940c838900 28059:e576535359cc
  1416                                                 subpath (because of exiting
  1416                                                 subpath (because of exiting
  1417                                                 out of boundaries)
  1417                                                 out of boundaries)
  1418                                               */
  1418                                               */
  1419                                  );
  1419                                  );
  1420         } else {
  1420         } else {
  1421             /* Clamping starting from first vertex of the the processed
  1421             /* Clamping starting from first vertex of the processed
  1422              * segment
  1422              * segment
  1423              *
  1423              *
  1424              * CLIPCLAMP(xMin, xMax, x1, y1, x2, y2, x3, y3, res);
  1424              * CLIPCLAMP(xMin, xMax, x1, y1, x2, y2, x3, y3, res);
  1425              */
  1425              */
  1426             res = CLIPCLAMP(xMin, xMax, c, 0, 1, 2, 3, 4, 5);
  1426             res = CLIPCLAMP(xMin, xMax, c, 0, 1, 2, 3, 4, 5);
  1436 
  1436 
  1437             } else if (res == CRES_INVISIBLE) {
  1437             } else if (res == CRES_INVISIBLE) {
  1438                 return;
  1438                 return;
  1439             }
  1439             }
  1440 
  1440 
  1441             /* Clamping starting from last vertex of the the processed
  1441             /* Clamping starting from last vertex of the processed
  1442              * segment
  1442              * segment
  1443              *
  1443              *
  1444              * CLIPCLAMP(xMin, xMax, x2, y2, x1, y1, x3, y3, res);
  1444              * CLIPCLAMP(xMin, xMax, x2, y2, x1, y1, x3, y3, res);
  1445              */
  1445              */
  1446             res = CLIPCLAMP(xMin, xMax, c, 2, 3, 0, 1, 4, 5);
  1446             res = CLIPCLAMP(xMin, xMax, c, 2, 3, 0, 1, 4, 5);
  2060                  */
  2060                  */
  2061                 res = TESTANDCLIP(outYMin, outYMax, c, 3, 2, 1, 0);
  2061                 res = TESTANDCLIP(outYMin, outYMax, c, 3, 2, 1, 0);
  2062                 if (res == CRES_INVISIBLE) return;
  2062                 if (res == CRES_INVISIBLE) return;
  2063                 lastClipped = IS_CLIPPED(res);
  2063                 lastClipped = IS_CLIPPED(res);
  2064 
  2064 
  2065                 /* Clamping starting from first vertex of the the processed
  2065                 /* Clamping starting from first vertex of the processed
  2066                  * segment
  2066                  * segment
  2067                  *
  2067                  *
  2068                  * CLIPCLAMP(outXMin, outXMax, x1, y1, x2, y2, x3, y3, res);
  2068                  * CLIPCLAMP(outXMin, outXMax, x1, y1, x2, y2, x3, y3, res);
  2069                  */
  2069                  */
  2070                 res = CLIPCLAMP(outXMin, outXMax, c, 0, 1, 2, 3, 4, 5);
  2070                 res = CLIPCLAMP(outXMin, outXMax, c, 0, 1, 2, 3, 4, 5);
  2076 
  2076 
  2077                 } else if (res == CRES_INVISIBLE) {
  2077                 } else if (res == CRES_INVISIBLE) {
  2078                     return;
  2078                     return;
  2079                 }
  2079                 }
  2080 
  2080 
  2081                 /* Clamping starting from last vertex of the the processed
  2081                 /* Clamping starting from last vertex of the processed
  2082                  * segment
  2082                  * segment
  2083                  *
  2083                  *
  2084                  * CLIPCLAMP(outXMin, outXMax, x2, y2, x1, y1, x3, y3, res);
  2084                  * CLIPCLAMP(outXMin, outXMax, x2, y2, x1, y1, x3, y3, res);
  2085                  */
  2085                  */
  2086                 res = CLIPCLAMP(outXMin, outXMax, c, 2, 3, 0, 1, 4, 5);
  2086                 res = CLIPCLAMP(outXMin, outXMax, c, 2, 3, 0, 1, 4, 5);