Bug 1913090 - Remove unused mTransformInDevSpace member from AnimationTransform struct r=gregp,tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D219196
This commit is contained in:
@@ -152,8 +152,8 @@ void CompositorAnimationStorage::SetAnimatedValue(
|
||||
if (!aPreviousValue) {
|
||||
MOZ_ASSERT(!mAnimatedValues.Contains(aId));
|
||||
mAnimatedValues.InsertOrUpdate(
|
||||
aId, MakeUnique<AnimatedValue>(gfx::Matrix4x4(), aFrameTransform, aData,
|
||||
std::move(aValue)));
|
||||
aId,
|
||||
MakeUnique<AnimatedValue>(aFrameTransform, aData, std::move(aValue)));
|
||||
return;
|
||||
}
|
||||
MOZ_ASSERT(aPreviousValue->Is<AnimationTransform>());
|
||||
|
||||
@@ -28,11 +28,6 @@ using AnimationArray = nsTArray<layers::Animation>;
|
||||
using SampledAnimationArray = AutoTArray<RefPtr<StyleAnimationValue>, 1>;
|
||||
|
||||
struct AnimationTransform {
|
||||
/*
|
||||
* This transform is calculated from sampleanimation in device pixel
|
||||
* and used for layers (i.e. non WebRender)
|
||||
*/
|
||||
gfx::Matrix4x4 mTransformInDevSpace;
|
||||
/*
|
||||
* This transform is calculated from frame used for WebRender and used by
|
||||
* getOMTAStyle() for OMTA testing.
|
||||
@@ -64,12 +59,10 @@ struct AnimatedValue final {
|
||||
return mValue.is<T>();
|
||||
}
|
||||
|
||||
AnimatedValue(const gfx::Matrix4x4& aTransformInDevSpace,
|
||||
const gfx::Matrix4x4& aFrameTransform,
|
||||
AnimatedValue(const gfx::Matrix4x4& aFrameTransform,
|
||||
const TransformData& aData, SampledAnimationArray&& aValue)
|
||||
: mValue(AsVariant(AnimationTransform{
|
||||
aTransformInDevSpace, aFrameTransform, aData, std::move(aValue)})) {
|
||||
}
|
||||
: mValue(AsVariant(
|
||||
AnimationTransform{aFrameTransform, aData, std::move(aValue)})) {}
|
||||
|
||||
explicit AnimatedValue(const float& aValue) : mValue(AsVariant(aValue)) {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user