Bug 1343253 - Enable AA and Subpixel AA in Webrender. r=milan
authorMason Chang <mchang@mozilla.com>
Thu, 02 Mar 2017 08:37:59 -0800
changeset 374823 39628e255960d93b70dfc9b6b7891bfccf1130af
parent 374822 8744594fc366cf463313d3636e62789a907b0877
child 374824 80ea84e1b5023141db7087fa08badb8c17307242
push id10863
push userjlorenzo@mozilla.com
push dateMon, 06 Mar 2017 23:02:23 +0000
treeherdermozilla-aurora@0931190cd725 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmilan
bugs1343253
milestone54.0a1
Bug 1343253 - Enable AA and Subpixel AA in Webrender. r=milan
gfx/webrender_bindings/src/bindings.rs
--- a/gfx/webrender_bindings/src/bindings.rs
+++ b/gfx/webrender_bindings/src/bindings.rs
@@ -286,17 +286,18 @@ pub extern fn wr_window_new(window_id: W
     gl::load_with(|symbol| get_proc_address(gl_context, symbol));
     gl::clear_color(0.3, 0.0, 0.0, 1.0);
 
     let version = gl::get_string(gl::VERSION);
 
     println!("WebRender - OpenGL version new {}", version);
 
     let opts = RendererOptions {
-        enable_aa: false,
+        enable_aa: true,
+        enable_subpixel_aa: true,
         enable_profiler: enable_profiler,
         recorder: recorder,
         .. Default::default()
     };
 
     let (mut renderer, sender) = match Renderer::new(opts) {
         Ok((renderer, sender)) => { (renderer, sender) }
         Err(e) => {