diff options
Diffstat (limited to 'gfx/wr/wr_glyph_rasterizer/src/profiler.rs')
-rw-r--r-- | gfx/wr/wr_glyph_rasterizer/src/profiler.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gfx/wr/wr_glyph_rasterizer/src/profiler.rs b/gfx/wr/wr_glyph_rasterizer/src/profiler.rs new file mode 100644 index 0000000000..89d126e3fc --- /dev/null +++ b/gfx/wr/wr_glyph_rasterizer/src/profiler.rs @@ -0,0 +1,12 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +/// A profiler for profiling rasterize time. +pub trait GlyphRasterizeProfiler { + fn start_time(&mut self); + + fn end_time(&mut self) -> f64; + + fn set(&mut self, value: f64); +} |