diff options
author | Sven Gothel <[email protected]> | 2023-03-06 05:12:46 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2023-03-06 05:12:46 +0100 |
commit | 64231ca5afb36846a09dc9ecab0655d8bc339cf9 (patch) | |
tree | 4ec4c8dbebf218871eb29f6026e57c73620f769c /src/jogl/classes/com | |
parent | a3901230167c062be05c5b3fe350025f11bfd663 (diff) |
Graph: Font: Add perf counter (w/ API)
Diffstat (limited to 'src/jogl/classes/com')
-rw-r--r-- | src/jogl/classes/com/jogamp/graph/font/Font.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/jogl/classes/com/jogamp/graph/font/Font.java b/src/jogl/classes/com/jogamp/graph/font/Font.java index a2fcfb23a..c9571da75 100644 --- a/src/jogl/classes/com/jogamp/graph/font/Font.java +++ b/src/jogl/classes/com/jogamp/graph/font/Font.java @@ -27,6 +27,8 @@ */ package com.jogamp.graph.font; +import java.io.PrintStream; + import com.jogamp.graph.curve.OutlineShape; import com.jogamp.graph.geom.plane.AffineTransform; import com.jogamp.opengl.math.geom.AABBox; @@ -417,6 +419,15 @@ 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); + /** Returns {@link #getFullFamilyName()} */ @Override public String toString(); |