Remove SkShader.Empty from CanvasKit
SkShaders::Empty may be easy to expose, but that doesn't mean we should. It shouldn't even be public, but Chrome uses it in one place. Change-Id: I398a5e6f782990a7baec0d9b1d0018f7456ff15f Reviewed-on: https://skia-review.googlesource.com/c/skia/+/260956 Reviewed-by: Kevin Lubick <kjlubick@google.com> Commit-Queue: Brian Osman <brianosman@google.com>
This commit is contained in:
parent
c76ac8e325
commit
77742c3503
@ -9,6 +9,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
### Fixed
|
||||
- `CanvasKit.SaveLayerInitWithPrevious` and `CanvasKit.SaveLayerF16ColorType` constants.
|
||||
|
||||
### Removed
|
||||
- `SkShader.Empty`
|
||||
|
||||
## [0.10.0] - 2019-12-09
|
||||
|
||||
### Added
|
||||
|
@ -1342,7 +1342,6 @@ EMSCRIPTEN_BINDINGS(Skia) {
|
||||
return SkShaders::Blend(mode, dst, src, &m);
|
||||
}))
|
||||
.class_function("Color", select_overload<sk_sp<SkShader>(SkColor)>(&SkShaders::Color))
|
||||
.class_function("Empty", &SkShaders::Empty)
|
||||
.class_function("_Lerp", optional_override([](float t, sk_sp<SkShader> dst, sk_sp<SkShader> src)->sk_sp<SkShader> {
|
||||
return SkShaders::Lerp(t, dst, src, nullptr);
|
||||
}))
|
||||
|
Loading…
Reference in New Issue
Block a user