GrContext got new base classes
@@ -13,7 +13,7 @@ pub type Context = RCHandle<GrContext>;
impl NativeRefCountedBase for GrContext {
type Base = SkRefCntBase;
fn ref_counted_base(&self) -> &Self::Base {
- &self._base._base
+ &self._base._base._base._base._base
}
}
@@ -68,11 +68,15 @@ impl RCHandle<GrContext> {
self
}
+ // This function delegates to a base class. We remove this function until the base
+ // class is supported.
+ /*
pub fn abandoned(&self) -> bool {
unsafe {
self.native().abandoned()
}
}
+ */
pub fn release_resources_and_abandon(&mut self) -> &mut Self {
unsafe {
