aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/imagedata.rs
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2018-11-15 10:04:52 +0100
committerAnthony Ramine <n.oxyde@gmail.com>2018-11-16 12:37:34 +0100
commita5779ad372b2b3c1c236c94680d01c60a99f19a4 (patch)
treee2732aa371e93e0fa0b71a3b2a31e87d825d21c7 /components/script/dom/imagedata.rs
parentadf363a2085f8af08a38046fae148131d0cbdd06 (diff)
downloadservo-a5779ad372b2b3c1c236c94680d01c60a99f19a4.tar.gz
servo-a5779ad372b2b3c1c236c94680d01c60a99f19a4.zip
Prefix some pixels functions with rgba8_
Diffstat (limited to 'components/script/dom/imagedata.rs')
-rw-r--r--components/script/dom/imagedata.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/imagedata.rs b/components/script/dom/imagedata.rs
index 84280ec0724..714c66bf747 100644
--- a/components/script/dom/imagedata.rs
+++ b/components/script/dom/imagedata.rs
@@ -162,7 +162,7 @@ impl ImageData {
#[allow(unsafe_code)]
pub unsafe fn get_rect(&self, rect: Rect<u32>) -> Cow<[u8]> {
- pixels::get_rect(self.as_slice(), self.get_size(), rect)
+ pixels::rgba8_get_rect(self.as_slice(), self.get_size(), rect)
}
pub fn get_size(&self) -> Size2D<u32> {