servo: Update rust-layers and rust-opengles and switch to ARGB32 layers
authorPatrick Walton <pcwalton@mimiga.net>
Thu, 12 Jul 2012 19:49:30 -0700
changeset 470863 d2cc88a6196ea810bad8b3017ed43843e4d343a4
parent 470862 84127bca3edc80373f49f9d0be7631ab820467b0
child 470864 82fa2b8e5a7f21bb7b574b3635cbab480991a1f1
push id44079
push userbmo:gps@mozilla.com
push dateSat, 04 Feb 2017 00:14:49 +0000
servo: Update rust-layers and rust-opengles and switch to ARGB32 layers Source-Repo: https://github.com/servo/servo Source-Revision: 127189bdc8c37a48cdfd73999dc489f308bc42f1
servo/src/servo/platform/osmain.rs
--- a/servo/src/servo/platform/osmain.rs
+++ b/servo/src/servo/platform/osmain.rs
@@ -79,18 +79,17 @@ fn mainloop(po: port<Msg>) {
 
                 let mut image_data;
                 unsafe {
                     let buffer = cairo_image_surface_get_data(surfaces.s1.surf.cairo_surf);
                     image_data = vec::unsafe::from_buf(buffer, 800 * 600 * 4);
                 }
 
                 let image =
-                    @layers::layers::Image(800, 600, layers::layers::RGB24Format,
-                                           layers::util::convert_rgb32_to_rgb24(image_data));
+                    @layers::layers::Image(800, 600, layers::layers::ARGB32Format, image_data);
                 image_layer.set_image(image);
               }
               exit {
                 *done = true;
               }
             }
         }
     };