X-Git-Url: http://git.megacz.com/?p=org.ibex.core.git;a=blobdiff_plain;f=src%2Forg%2Fibex%2Fgraphics%2FPolygon.java;h=a5221c736c6801a50c5653caea2dacf007bc55ed;hp=c99797ce9d3ab6391a347dcb2be634f30c6048d2;hb=297fdbde87e6db4732448a0950d1141c7265c169;hpb=545a6bc7e6aff46ecb6012648fd9dd6f02588166 diff --git a/src/org/ibex/graphics/Polygon.java b/src/org/ibex/graphics/Polygon.java index c99797c..a5221c7 100644 --- a/src/org/ibex/graphics/Polygon.java +++ b/src/org/ibex/graphics/Polygon.java @@ -198,9 +198,7 @@ public final class Polygon { float y1 = p.y[p.edges[i]]; float x2 = p.x[p.edges[i]+1]; float y2 = p.y[p.edges[i]+1]; - long start = System.currentTimeMillis(); try { - buf.drawLine((int)Math.floor(x1), (int)Math.floor(y1), (int)Math.ceil(x2), (int)Math.ceil(y2), color); - } finally { Scheduler.drawing += System.currentTimeMillis() - start; } + buf.drawLine((int)Math.floor(x1), (int)Math.floor(y1), (int)Math.ceil(x2), (int)Math.ceil(y2), color); } } @@ -260,9 +258,7 @@ public final class Polygon { int tx1b = intercept(p.edges[rightSegment], y0, true, true); int tx2a = intercept(p.edges[leftSegment], y1, true, true); int tx2b = intercept(p.edges[rightSegment], y1, true, true); - long start = System.currentTimeMillis(); try { - buf.fillTrapezoid(tx1a, tx1b, (int)y0, tx2a, tx2b, (int)y1, ((Paint.SingleColorPaint)paint).color); - } finally { Scheduler.drawing += System.currentTimeMillis() - start; } + buf.fillTrapezoid(tx1a, tx1b, (int)y0, tx2a, tx2b, (int)y1, ((Paint.SingleColorPaint)paint).color); } if (useEvenOdd) count++; else count += (p.y[p.edges[rightSegment]] < p.y[p.edges[rightSegment]+1]) ? -1 : 1; @@ -349,9 +345,7 @@ public final class Polygon { private static Polygon clip(byte op, Polygon subj, Polygon clip) { try { - long start = System.currentTimeMillis(); try { return clip_(op, subj, clip); - } finally { Scheduler.clipping += System.currentTimeMillis() - start; } } catch (Exception npe) { npe.printStackTrace(); return null;