From 2920be3622adf2b14cfad7d0261c11dc7e8151db Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Mon, 6 Mar 2023 11:21:45 +0100 Subject: Graph: Use PerfCounterCtrl interface and Instant/Duration & Clock.getMonotonicTime() ... --- src/jogl/classes/com/jogamp/graph/font/Font.java | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src/jogl/classes/com/jogamp/graph/font') diff --git a/src/jogl/classes/com/jogamp/graph/font/Font.java b/src/jogl/classes/com/jogamp/graph/font/Font.java index c9571da75..907bbde8a 100644 --- a/src/jogl/classes/com/jogamp/graph/font/Font.java +++ b/src/jogl/classes/com/jogamp/graph/font/Font.java @@ -29,6 +29,7 @@ package com.jogamp.graph.font; import java.io.PrintStream; +import com.jogamp.common.util.PerfCounterCtrl; import com.jogamp.graph.curve.OutlineShape; import com.jogamp.graph.geom.plane.AffineTransform; import com.jogamp.opengl.math.geom.AABBox; @@ -419,14 +420,7 @@ public interface Font { final CharSequence string, final AffineTransform temp1, final AffineTransform temp2); - /** Enable or disable performance counter for {@link #processString(com.jogamp.graph.curve.OutlineShape.Visitor, AffineTransform, CharSequence, AffineTransform, AffineTransform)}. */ - void enablePerf(final boolean enable); - - /** Clear performance counter for {@link #processString(com.jogamp.graph.curve.OutlineShape.Visitor, AffineTransform, CharSequence, AffineTransform, AffineTransform)}. */ - void clearPerf(); - - /** Print performance counter for {@link #processString(com.jogamp.graph.curve.OutlineShape.Visitor, AffineTransform, CharSequence, AffineTransform, AffineTransform)}. */ - void printPerf(final PrintStream out); + PerfCounterCtrl perfCounter(); /** Returns {@link #getFullFamilyName()} */ @Override -- cgit v1.2.3