File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ dynamic_freetype = []
1212static_freetype = [" freetype/freetype-sys" ]
1313capture = [" api/serialize" , " serde" , " smallvec/serde" ]
1414replay = [" api/deserialize" , " serde" , " smallvec/serde" ]
15- gecko = [" fog" ]
15+ gecko = [" fog" , " glean " ]
1616
1717[dependencies ]
1818api = { version = " 0.62.0" , path = " ../webrender_api" , package = " webrender_api" }
@@ -25,7 +25,7 @@ tracy-rs = "0.1.2"
2525log = " 0.4"
2626lazy_static = " 1"
2727fxhash = " 0.2.1"
28- glean = " 51.8.2"
28+ glean = { version = " 51.8.2" , optional = true }
2929fog = { version = " 0.1.0" , optional = true }
3030serde = { optional = true , version = " 1.0" , features = [" serde_derive" ] }
3131
Original file line number Diff line number Diff line change 22 * License, v. 2.0. If a copy of the MPL was not distributed with this
33 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
44
5+ #[ cfg( feature = "gecko" ) ]
56use glean:: TimerId ;
67#[ cfg( feature = "gecko" ) ]
78use fog:: metrics:: wr;
89
10+ #[ cfg( not( feature = "gecko" ) ) ]
11+ pub struct TimerId ;
12+
913pub struct Telemetry ;
1014
1115/// Defines the interface for hooking up an external telemetry reporter to WR.
1216#[ cfg( not( feature = "gecko" ) ) ]
1317impl Telemetry {
1418 // Start rasterize glyph time collection
15- pub fn start_rasterize_glyphs_time ( ) -> TimerId { return TimerId { id : 0 } ; }
19+ pub fn start_rasterize_glyphs_time ( ) -> TimerId { return TimerId { } ; }
1620 // End rasterize glyph time collection
1721 pub fn stop_and_accumulate_rasterize_glyphs_time ( _id : TimerId ) { }
1822}
You can’t perform that action at this time.
0 commit comments