Closed
Bug 1297944
Opened 9 years ago
Closed 4 years ago
LayerManagerComposite::SetShadowOpacity should involve a flag which indicates whether the opacity is specified by animation or not
Categories
(Core :: Graphics: Layers, defect)
Core
Graphics: Layers
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: hiro, Assigned: hiro)
Details
Attachments
(1 file)
In bug 1279071, SetShadowOpacitySetByAnimation() which has an argument of the flag has been introduced, but we could unify SetShadowOpacity() and SetShadowOpacitySetByAnimation().
Assigning to me temporary just in case that this bug does not bother gfx team triage.
Comment 1•9 years ago
|
||
Updated•9 years ago
|
Attachment #8785547 -
Attachment description: 1297944.patch → 1297944.patch
Unified SetShadowOpacitySetByAnimation(bool) into SetShadowOpacity(float, bool).
Attachment #8785547 -
Flags: review?(bbirtles)
Updated•9 years ago
|
Attachment #8785547 -
Flags: review?(bbirtles) → review?(hiikezoe)
Assignee | ||
Comment 2•9 years ago
|
||
Comment on attachment 8785547 [details] [diff] [review]
1297944.patch
Unified SetShadowOpacitySetByAnimation(bool) into SetShadowOpacity(float, bool).
This code is good but I prefer to use enum value instead of boolean.
Could you please add an enum class and use it something like this;
enum class ByWhich {
Animation,
NonAnimation
}
I don't think it's a great name but I have no idea for now.
Attachment #8785547 -
Flags: review?(hiikezoe)
Comment 3•9 years ago
|
||
It seems that SetShadowTransformSetByAnimation(bool) exists besides SetShadowOpacitySetByAnimation(bool).
Should the name of the enum class adjust these?
Comment 4•9 years ago
|
||
(In reply to Hiroyuki Ikezoe (:hiro) from comment #2)
> Comment on attachment 8785547 [details] [diff] [review]
> 1297944.patch
> Unified SetShadowOpacitySetByAnimation(bool) into SetShadowOpacity(float,
> bool).
>
> This code is good but I prefer to use enum value instead of boolean.
>
> Could you please add an enum class and use it something like this;
>
> enum class ByWhich {
> Animation,
> NonAnimation
> }
>
> I don't think it's a great name but I have no idea for now.
It seems that SetShadowTransformSetByAnimation(bool) exists besides SetShadowOpacitySetByAnimation(bool).
Should the name of the enum class adjust these?
Assignee | ||
Comment 5•9 years ago
|
||
Please leave the function for transform as it is in this bug. There are many callers of SetShadowTransform().
Comment 6•4 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•