driveby fix: prepend get_ to getter-like functions that take arguments and deprecate the ones without
@@ -221,9 +221,17 @@ impl RCHandle<SkSurface> {
self
}
+ #[deprecated(note = "use get_backend_texture()")]
pub fn backend_texture(
&mut self,
handle_access: BackendHandleAccess,
+ ) -> Option<BackendTexture> {
+ self.get_backend_texture(handle_access)
+ }
+
+ pub fn get_backend_texture(
+ &mut self,
+ handle_access: BackendHandleAccess,
) -> Option<BackendTexture> {
unsafe {
let mut backend_texture = GrBackendTexture::new();
@@ -237,9 +245,17 @@ impl RCHandle<SkSurface> {
}
}
+ #[deprecated(note = "use get_backend_render_target()")]
pub fn backend_render_target(
&mut self,
handle_access: BackendHandleAccess,
+ ) -> Option<BackendRenderTarget> {
+ self.get_backend_render_target(handle_access)
+ }
+
+ pub fn get_backend_render_target(
+ &mut self,
+ handle_access: BackendHandleAccess,
) -> Option<BackendRenderTarget> {
unsafe {
let mut backend_render_target = GrBackendRenderTarget::new();
