float y1 = p.y[p.edges[i]];\r
float x2 = p.x[p.edges[i]+1];\r
float y2 = p.y[p.edges[i]+1];\r
- long start = System.currentTimeMillis(); try {\r
- buf.drawLine((int)Math.floor(x1), (int)Math.floor(y1), (int)Math.ceil(x2), (int)Math.ceil(y2), color);\r
- } finally { Scheduler.drawing += System.currentTimeMillis() - start; }\r
+ buf.drawLine((int)Math.floor(x1), (int)Math.floor(y1), (int)Math.ceil(x2), (int)Math.ceil(y2), color);\r
}\r
}\r
\r
int tx1b = intercept(p.edges[rightSegment], y0, true, true);\r
int tx2a = intercept(p.edges[leftSegment], y1, true, true);\r
int tx2b = intercept(p.edges[rightSegment], y1, true, true);\r
- long start = System.currentTimeMillis(); try {\r
- buf.fillTrapezoid(tx1a, tx1b, (int)y0, tx2a, tx2b, (int)y1, ((Paint.SingleColorPaint)paint).color);\r
- } finally { Scheduler.drawing += System.currentTimeMillis() - start; }\r
+ buf.fillTrapezoid(tx1a, tx1b, (int)y0, tx2a, tx2b, (int)y1, ((Paint.SingleColorPaint)paint).color);\r
}\r
if (useEvenOdd) count++;\r
else count += (p.y[p.edges[rightSegment]] < p.y[p.edges[rightSegment]+1]) ? -1 : 1;\r
\r
private static Polygon clip(byte op, Polygon subj, Polygon clip) {\r
try {\r
- long start = System.currentTimeMillis(); try {\r
return clip_(op, subj, clip);\r
- } finally { Scheduler.clipping += System.currentTimeMillis() - start; }\r
} catch (Exception npe) {\r
npe.printStackTrace();\r
return null;\r