diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-08-18 19:16:29 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-08-18 19:21:02 +0100 |
commit | 1391ae08eb007205ad79d4201c3bf499239f8697 (patch) | |
tree | 1f4960adfe61d7b0fe7e6f39c5afa5c1d964c99d /overlay/chart.h | |
parent | 90ef68859c3e5edf2a6cd6b274f0443b936c9e0d (diff) |
overlay: Don't smooth gpu freq
This is supposed to be discrete jumps, so use straight lines to emphasis
this nature.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'overlay/chart.h')
-rw-r--r-- | overlay/chart.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/overlay/chart.h b/overlay/chart.h index 9ede8de2..2ff4f440 100644 --- a/overlay/chart.h +++ b/overlay/chart.h @@ -9,6 +9,10 @@ struct chart { CHART_FILL, CHART_FILL_STROKE, } mode; + enum chart_smooth { + CHART_LINE = 0, + CHART_CURVE, + } smooth; float fill_rgb[4]; float stroke_rgb[4]; double stroke_width; @@ -18,6 +22,7 @@ struct chart { int chart_init(struct chart *chart, const char *name, int num_samples); void chart_set_mode(struct chart *chart, enum chart_mode mode); +void chart_set_smooth(struct chart *chart, enum chart_smooth smooth); void chart_set_fill_rgba(struct chart *chart, float red, float green, float blue, float alpha); void chart_set_stroke_width(struct chart *chart, float width); void chart_set_stroke_rgba(struct chart *chart, float red, float green, float blue, float alpha); |