Changeset 270040 in webkit
- Timestamp:
- Nov 19, 2020 11:43:15 AM (3 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r270037 r270040 1 2020-11-19 Fujii Hironori <Hironori.Fujii@sony.com> 2 3 [TextureMapperGL] The invert filter wrongly inverts pre-multiplied alpha color 4 https://bugs.webkit.org/show_bug.cgi?id=219144 5 6 Reviewed by Carlos Garcia Campos. 7 8 * compositing/filters/invert-transparent-expected.html: Added. 9 * compositing/filters/invert-transparent.html: Added. 10 1 11 2020-11-19 Chris Dumez <cdumez@apple.com> 2 12 -
trunk/Source/WebCore/ChangeLog
r270039 r270040 1 2020-11-19 Fujii Hironori <Hironori.Fujii@sony.com> 2 3 [TextureMapperGL] The invert filter wrongly inverts pre-multiplied alpha color 4 https://bugs.webkit.org/show_bug.cgi?id=219144 5 6 Reviewed by Carlos Garcia Campos. 7 8 Test: compositing/filters/invert-transparent.html 9 10 * platform/graphics/texmap/TextureMapperShaderProgram.cpp: Take alpha value as an argument. 11 1 12 2020-11-19 Lauro Moura <lmoura@igalia.com> 2 13 -
trunk/Source/WebCore/platform/graphics/texmap/TextureMapperShaderProgram.cpp
r269837 r270040 338 338 } 339 339 340 float invert(float n ) { return (1.0- n) * u_filterAmount + n * (1.0 - u_filterAmount); }340 float invert(float n, float a) { return (a - n) * u_filterAmount + n * (1.0 - u_filterAmount); } 341 341 void applyInvertFilter(inout vec4 color) 342 342 { 343 color = vec4(invert(color.r ), invert(color.g), invert(color.b), color.a);343 color = vec4(invert(color.r, color.a), invert(color.g, color.a), invert(color.b, color.a), color.a); 344 344 } 345 345
Note: See TracChangeset
for help on using the changeset viewer.