Skip to content

Commit

Permalink
fix versions of m75 introduced deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
pragmatrix committed Jun 6, 2019
1 parent 02422a7 commit 1d85cc0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion skia-safe/src/core/bitmap.rs
Expand Up @@ -14,7 +14,7 @@ use crate::core::{
use skia_bindings::{SkPaint, SkIPoint, C_SkBitmap_destruct, SkBitmap, C_SkBitmap_Construct, C_SkBitmap_readyToDraw, C_SkBitmap_tryAllocN32Pixels, C_SkBitmap_tryAllocPixels, C_SkBitmap_eraseARGB, C_SkBitmap_extractAlpha, SkBitmap_AllocFlags_kZeroPixels_AllocFlag, C_SkBitmap_makeShader};
use crate::{Matrix, Shader, TileMode};

#[deprecated(since="0.6.0", note="AllocFlags is obsolete. We always zero pixel memory when allocated.")]
#[deprecated(since="0.11.0", note="AllocFlags is obsolete. We always zero pixel memory when allocated.")]
bitflags! {
pub struct BitmapAllocFlags: u32 {
const ZERO_PIXELS = SkBitmap_AllocFlags_kZeroPixels_AllocFlag as u32;
Expand Down
2 changes: 1 addition & 1 deletion skia-safe/src/core/shader.rs
Expand Up @@ -66,7 +66,7 @@ impl RCHandle<SkShader> {
}
}

#[deprecated(since="0.6.0", note="skbug.com/8941")]
#[deprecated(since="0.11.0", note="skbug.com/8941")]
pub fn as_a_gradient<'a>(&self, colors: &'a mut [Color], color_offsets: &'a mut [scalar])
-> (ShaderGradientType, ShaderGradientInfo<'a>) {
assert_eq!(colors.len(), color_offsets.len());
Expand Down

0 comments on commit 1d85cc0

Please sign in to comment.