[canvaskit] Remove two previously deprecated APIs
Change-Id: I952f688fe4292344d1d4a57a29179eaddb35360b Reviewed-on: https://skia-review.googlesource.com/c/skia/+/410856 Reviewed-by: Kevin Lubick <kjlubick@google.com>
This commit is contained in:
parent
54c878ef1c
commit
6017b4833f
@ -9,6 +9,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
### Added
|
||||
- `Font.getGlyphIntercepts()`
|
||||
|
||||
### Removed
|
||||
- `Canvas.flush`, which had been previously deprecated. `Surface.flush` is the preferred method.
|
||||
- `AnimatedImage.getCurrentFrame`, which had been previously deprecated.
|
||||
`AnimatedImage.makeImageAtCurrentFrame` is the replacement, which behaves exactly the same.
|
||||
|
||||
## [0.26.0] - 2021-04-23
|
||||
|
||||
### Added
|
||||
|
@ -816,8 +816,6 @@ EMSCRIPTEN_BINDINGS(Skia) {
|
||||
class_<SkAnimatedImage>("AnimatedImage")
|
||||
.smart_ptr<sk_sp<SkAnimatedImage>>("sk_sp<AnimatedImage>")
|
||||
.function("decodeNextFrame", &SkAnimatedImage::decodeNextFrame)
|
||||
// Deprecated; prefer makeImageAtCurrentFrame
|
||||
.function("getCurrentFrame", &SkAnimatedImage::getCurrentFrame)
|
||||
.function("getFrameCount", &SkAnimatedImage::getFrameCount)
|
||||
.function("getRepetitionCount", &SkAnimatedImage::getRepetitionCount)
|
||||
.function("height", optional_override([](SkAnimatedImage& self)->int32_t {
|
||||
@ -1064,7 +1062,6 @@ EMSCRIPTEN_BINDINGS(Skia) {
|
||||
}
|
||||
return false;
|
||||
}))
|
||||
.function("flush", &SkCanvas::flush) // Deprecated - will be removed
|
||||
// 4x4 matrix functions
|
||||
// Just like with getTotalMatrix, we allocate the buffer for the 16 floats to go in from
|
||||
// interface.js, so it can also free them when its done.
|
||||
|
@ -194,6 +194,7 @@ var CanvasKit = {
|
||||
getFrameCount: function() {},
|
||||
getRepetitionCount: function() {},
|
||||
height: function() {},
|
||||
makeImageAtCurrentFrame: function() {},
|
||||
reset: function() {},
|
||||
width: function() {},
|
||||
},
|
||||
@ -216,7 +217,6 @@ var CanvasKit = {
|
||||
drawText: function() {},
|
||||
drawTextBlob: function() {},
|
||||
drawVertices: function() {},
|
||||
flush: function() {},
|
||||
getSaveCount: function() {},
|
||||
makeSurface: function() {},
|
||||
markCTM: function() {},
|
||||
|
@ -785,7 +785,7 @@ describe('Core canvas behavior', () => {
|
||||
const combined = CanvasKit.ImageFilter.MakeCompose(redIF, blurIF);
|
||||
paint.setImageFilter(combined);
|
||||
|
||||
const frame = img.getCurrentFrame();
|
||||
const frame = img.makeImageAtCurrentFrame();
|
||||
canvas.drawImage(frame, 100, 50, paint);
|
||||
|
||||
paint.delete();
|
||||
|
Loading…
Reference in New Issue
Block a user