mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Remove dead code for 3x3 matrices (#23363)
Co-authored-by: Mike Reed <reed@google.com>
This commit is contained in:
parent
a5f4b4b98d
commit
022bb11fa7
@ -51,11 +51,6 @@ bool DidDrawCanvas::onDoSaveBehind(const SkRect* bounds) {
|
||||
|
||||
void DidDrawCanvas::willRestore() {}
|
||||
|
||||
#ifdef SK_SUPPORT_LEGACY_CANVASMATRIX33
|
||||
void DidDrawCanvas::didConcat(const SkMatrix& matrix) {}
|
||||
void DidDrawCanvas::didSetMatrix(const SkMatrix& matrix) {}
|
||||
#endif
|
||||
|
||||
void DidDrawCanvas::didConcat44(const SkM44&) {}
|
||||
|
||||
void DidDrawCanvas::didScale(SkScalar, SkScalar) {}
|
||||
|
||||
@ -70,10 +70,6 @@ class DidDrawCanvas final : public SkCanvasVirtualEnforcer<SkNoDrawCanvas> {
|
||||
void willRestore() override;
|
||||
|
||||
// |SkCanvasVirtualEnforcer<SkNoDrawCanvas>|
|
||||
#ifdef SK_SUPPORT_LEGACY_CANVASMATRIX33
|
||||
void didConcat(const SkMatrix&) override;
|
||||
void didSetMatrix(const SkMatrix&) override;
|
||||
#endif
|
||||
void didConcat44(const SkM44&) override;
|
||||
void didScale(SkScalar, SkScalar) override;
|
||||
void didTranslate(SkScalar, SkScalar) override;
|
||||
|
||||
@ -56,15 +56,6 @@ void MockCanvas::willRestore() {
|
||||
current_layer_--; // Must go here; func params order of eval is undefined
|
||||
}
|
||||
|
||||
#ifdef SK_SUPPORT_LEGACY_CANVASMATRIX33
|
||||
void MockCanvas::didConcat(const SkMatrix& matrix) {
|
||||
this->didConcat44(SkM44(matrix));
|
||||
}
|
||||
void MockCanvas::didSetMatrix(const SkMatrix& matrix) {
|
||||
this->didSetM44(SkM44(matrix));
|
||||
}
|
||||
#endif
|
||||
|
||||
void MockCanvas::didConcat44(const SkM44& matrix) {
|
||||
draw_calls_.emplace_back(DrawCall{current_layer_, ConcatMatrixData{matrix}});
|
||||
}
|
||||
|
||||
@ -144,10 +144,6 @@ class MockCanvas : public SkCanvasVirtualEnforcer<SkCanvas> {
|
||||
SaveLayerStrategy getSaveLayerStrategy(const SaveLayerRec& rec) override;
|
||||
void willRestore() override;
|
||||
void didRestore() override {}
|
||||
#ifdef SK_SUPPORT_LEGACY_CANVASMATRIX33
|
||||
void didConcat(const SkMatrix& matrix) override;
|
||||
void didSetMatrix(const SkMatrix& matrix) override;
|
||||
#endif
|
||||
void didConcat44(const SkM44&) override;
|
||||
void didSetM44(const SkM44&) override;
|
||||
void didScale(SkScalar x, SkScalar y) override;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user