Print this page
Added gradle and cmake project

Split Close
Expand all
Collapse all
          --- old/src/java.desktop/share/classes/sun/java2d/opengl/OGLTextRenderer.java
          +++ new/src/java.desktop/share/classes/sun/java2d/opengl/OGLTextRenderer.java
↓ open down ↓ 56 lines elided ↑ open up ↑
  57   57  
  58   58      OGLTextRenderer traceWrap() {
  59   59          return new Tracer(this);
  60   60      }
  61   61  
  62   62      private static class Tracer extends OGLTextRenderer {
  63   63          Tracer(OGLTextRenderer ogltr) {
  64   64              super(ogltr.rq);
  65   65          }
  66   66          protected void drawGlyphList(SunGraphics2D sg2d, GlyphList gl) {
  67      -            GraphicsPrimitive.tracePrimitive("OGLDrawGlyphs");
       67 +            final String prim = "OGLDrawGlyphs" + (gl.isRGBOrder() ? "LCD" : "Gray");
       68 +            if ((GraphicsPrimitive.traceflags & GraphicsPrimitive.TRACEPTIME) == 0) {
       69 +                GraphicsPrimitive.tracePrimitive(prim);
       70 +            }
       71 +            long time = System.nanoTime();
  68   72              super.drawGlyphList(sg2d, gl);
       73 +            GraphicsPrimitive.tracePrimitiveTime(prim, System.nanoTime() - time);
  69   74          }
  70   75      }
  71   76  }
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX