Skip to content

Commit

Permalink
m121
Browse files Browse the repository at this point in the history
  • Loading branch information
Brooooooklyn committed Dec 11, 2023
1 parent b0185bd commit 6ed7675
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README-zh.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# `skr canvas`

![CI](https://github.com/Brooooooklyn/canvas/workflows/CI/badge.svg)
![Skia Version](https://img.shields.io/badge/Skia-chrome%2Fm118-hotpink)
![Skia Version](https://img.shields.io/badge/Skia-chrome%2Fm121-hotpink)
[![install size](https://packagephobia.com/badge?p=@napi-rs/canvas)](https://packagephobia.com/result?p=@napi-rs/canvas)
[![Downloads](https://img.shields.io/npm/dm/@napi-rs/canvas.svg?sanitize=true)](https://npmcharts.com/compare/@napi-rs/canvas?minimal=true)

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# `skr canvas`

![CI](https://github.com/Brooooooklyn/canvas/workflows/CI/badge.svg)
![Skia Version](https://img.shields.io/badge/Skia-chrome%2Fm118-hotpink)
![Skia Version](https://img.shields.io/badge/Skia-chrome%2Fm121-hotpink)
[![install size](https://packagephobia.com/badge?p=@napi-rs/canvas)](https://packagephobia.com/result?p=@napi-rs/canvas)
[![Downloads](https://img.shields.io/npm/dm/@napi-rs/canvas.svg?sanitize=true)](https://npmcharts.com/compare/@napi-rs/canvas?minimal=true)

Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain
Original file line number Diff line number Diff line change
@@ -1 +1 @@
nightly-2023-08-09
nightly-2023-12-11
1 change: 0 additions & 1 deletion scripts/build-skia.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ const GN_ARGS = [
`skia_enable_tools=false`,
`skia_enable_svg=true`,
`skia_enable_skparagraph=true`,
`skia_enable_sktext=true`,
`skia_pdf_subset_harfbuzz=true`,
`skia_use_expat=true`,
`skia_use_system_expat=false`,
Expand Down
2 changes: 1 addition & 1 deletion scripts/release-skia-binary.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ if (TARGET && TARGET.startsWith('--target=')) {
TARGET_TRIPLE = TARGET.replace('--target=', '')
}

const LIB = ['skia', 'skparagraph', 'skshaper', 'svg', 'sktext', 'skunicode']
const LIB = ['skia', 'skparagraph', 'skshaper', 'svg', 'skunicode']
const ICU_DAT = 'icudtl.dat'

const CLIENT = new Octokit({
Expand Down
2 changes: 1 addition & 1 deletion skia
Submodule skia updated 3571 files
2 changes: 1 addition & 1 deletion skia-c/skia_c.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#define SKIA_CAPI_H

#include <include/codec/SkCodec.h>
#include <include/codec/SkEncodedImageFormat.h>
#include <include/core/SkPicture.h>
#include <include/core/SkSamplingOptions.h>
#include <include/core/SkString.h>
Expand All @@ -14,7 +15,6 @@
#include <include/core/SkColorFilter.h>
#include <include/core/SkData.h>
#include <include/core/SkDrawable.h>
#include <include/core/SkEncodedImageFormat.h>
#include <include/core/SkGraphics.h>
#include <include/core/SkFontMgr.h>
#include <include/core/SkPaint.h>
Expand Down
4 changes: 2 additions & 2 deletions src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ impl Default for Context2dRenderingState {
shadow_blur: 0f32,
shadow_color: RGBA::new(0, 0, 0, 255),
shadow_color_string: "#000000".to_owned(),
/// 0.0 ~ 1.0
// 0.0 ~ 1.0
global_alpha: 1.0,
/// A float specifying the amount of the line dash offset. The default value is 0.0.
// A float specifying the amount of the line dash offset. The default value is 0.0.
line_dash_offset: 0.0,
image_smoothing_enabled: true,
image_smoothing_quality: FilterQuality::default(),
Expand Down

1 comment on commit 6ed7675

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark

Benchmark suite Current: 6ed7675 Previous: 900def3 Ratio
Draw house#skia-canvas 29 ops/sec (±0.84%) 29.3 ops/sec (±0.2%) 1.01
Draw house#node-canvas 38 ops/sec (±0.6%) 35.9 ops/sec (±1.22%) 0.94
Draw house#@napi-rs/skia 30 ops/sec (±0.47%) 29 ops/sec (±0.36%) 0.97
Draw gradient#skia-canvas 28 ops/sec (±0.11%) 28.2 ops/sec (±0.17%) 1.01
Draw gradient#node-canvas 37 ops/sec (±0.22%) 35.3 ops/sec (±0.38%) 0.95
Draw gradient#@napi-rs/skia 29 ops/sec (±0.49%) 28 ops/sec (±0.5%) 0.97

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.