Skip to content

Commit 77ef923

Browse files
committed
m92: Update gpu/
1 parent e9558a0 commit 77ef923

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

Diff for: skia-safe/src/gpu/backend_surface.rs

+6-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use super::gl;
66
use super::mtl;
77
#[cfg(feature = "vulkan")]
88
use super::vk;
9-
use super::{BackendAPI, BackendSurfaceMutableState};
9+
use super::{BackendAPI, BackendSurfaceMutableState, Mipmapped};
1010
use crate::{prelude::*, ISize};
1111
use skia_bindings::{
1212
self as sb, GrBackendFormat, GrBackendRenderTarget, GrBackendTexture, GrMipmapped,
@@ -175,7 +175,7 @@ impl fmt::Debug for BackendTexture {
175175
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
176176
let mut d = f.debug_struct("BackendTexture");
177177
d.field("dimensions", &self.dimensions());
178-
d.field("has_mipmaps", &self.has_mipmaps());
178+
d.field("mipmapped", &self.mipmapped());
179179
d.field("backend", &self.backend());
180180
#[cfg(feature = "gl")]
181181
d.field("gl_texture_info", &self.gl_texture_info());
@@ -269,6 +269,10 @@ impl BackendTexture {
269269
self.native().fHeight
270270
}
271271

272+
pub fn mipmapped(&self) -> Mipmapped {
273+
self.native().fMipmapped
274+
}
275+
272276
#[deprecated(since = "0.35.0", note = "Use has_mipmaps()")]
273277
pub fn has_mip_maps(&self) -> bool {
274278
self.has_mipmaps()

Diff for: skia-safe/src/gpu/d3d/types.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ impl fmt::Debug for Alloc {
4646
}
4747

4848
// TODO: support the implementation of custom D3D memory allocator's
49-
// virtual createResource() function.
49+
// virtual createResource() and createAliasingResource() functions.
5050
pub type MemoryAllocator = RCHandle<GrD3DMemoryAllocator>;
5151
unsafe impl Send for MemoryAllocator {}
5252
unsafe impl Sync for MemoryAllocator {}

0 commit comments

Comments
 (0)