Skip to content

Commit 8b53081

Browse files
author
bors-servo
authored
Auto merge of #526 - glennw:debug-opts, r=pcwalton
Add API for tweaking debug options. Right now, it's possible to toggle the profiler. In the future this can include options for subpixel AA, shader hot reload etc. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/webrender/526) <!-- Reviewable:end -->
2 parents e7a66c5 + 0c238e4 commit 8b53081

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

webrender/src/renderer.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1665,6 +1665,10 @@ impl Renderer {
16651665
&mut self.debug
16661666
}
16671667

1668+
pub fn get_profiler_enabled(&mut self) -> bool {
1669+
self.enable_profiler
1670+
}
1671+
16681672
pub fn set_profiler_enabled(&mut self, enabled: bool) {
16691673
self.enable_profiler = enabled;
16701674
}

0 commit comments

Comments
 (0)