aboutsummaryrefslogtreecommitdiffstats
path: root/third_party/webrender/wr_malloc_size_of
diff options
context:
space:
mode:
authorMukilan Thiyagarajan <mukilan@igalia.com>2023-09-14 15:00:42 +0530
committerMukilan Thiyagarajan <mukilan@igalia.com>2023-09-14 15:00:42 +0530
commitc385b3c9737c17d59cb02e520c3b68b232cb6497 (patch)
treead598ffbbdfbcecd6a4cf458abe2afc702d92c27 /third_party/webrender/wr_malloc_size_of
parent988e05a68b48c9e744bf49459faf41a1bd9b81d7 (diff)
downloadservo-revert-webrender.tar.gz
servo-revert-webrender.zip
Revert "Upgrade WebRender to e491e1ae637b2eed1e7195855d88357e5eb3ddf9 (#30323)"revert-webrender
This reverts commit a9d37cb85ac2c55fc630fccffe1ba60ff00f555b.
Diffstat (limited to 'third_party/webrender/wr_malloc_size_of')
-rw-r--r--third_party/webrender/wr_malloc_size_of/lib.rs10
1 files changed, 0 insertions, 10 deletions
diff --git a/third_party/webrender/wr_malloc_size_of/lib.rs b/third_party/webrender/wr_malloc_size_of/lib.rs
index abd982ffe80..2a345089740 100644
--- a/third_party/webrender/wr_malloc_size_of/lib.rs
+++ b/third_party/webrender/wr_malloc_size_of/lib.rs
@@ -17,7 +17,6 @@ use std::hash::{BuildHasher, Hash};
use std::mem::size_of;
use std::ops::Range;
use std::os::raw::c_void;
-use std::path::PathBuf;
/// A C function that takes a pointer to a heap allocation and returns its size.
type VoidPtrToSizeFn = unsafe extern "C" fn(ptr: *const c_void) -> usize;
@@ -311,15 +310,6 @@ impl<T> MallocSizeOf for std::marker::PhantomData<T> {
}
}
-impl MallocSizeOf for PathBuf {
- fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize {
- match self.to_str() {
- Some(s) => unsafe { ops.malloc_size_of(s.as_ptr()) },
- None => self.as_os_str().len(),
- }
- }
-}
-
impl<T: MallocSizeOf, Unit> MallocSizeOf for euclid::Length<T, Unit> {
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize {
self.0.size_of(ops)