How chromium handles gifs

56 views
Skip to first unread message

Muthuraj Ramalinga kumar

unread,
Mar 19, 2021, 1:13:15 PM3/19/21
to blink-dev
Hi
I would like to learn how chromium handles gifs.
I am loading a simple gif which turns from dark purple to light blue. But looks like the animating portions of gif is handled after the cc::Layer creation.

Could someone point me to the code that will help me understand how gif animations are handled in chromium ?

Thank you



Screen Shot 2021-03-19 at 9.15.44 AM.png

Philip Rogers

unread,
Mar 19, 2021, 2:40:34 PM3/19/21
to Muthuraj Ramalinga kumar, blink-dev
gif animations can run on the compositor thread. https://chromium.googlesource.com/chromium/src/+/master/docs/how_cc_works.md#image-decoding and cc/trees/image_animation_controller.h have some information about this.

--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/23bac370-b5e6-4ad7-b96a-82dc9b863814n%40chromium.org.

Muthuraj Ramalinga kumar

unread,
Mar 23, 2021, 12:58:52 PM3/23/21
to Philip Rogers, blink-dev
Thank you

Nigel Tao

unread,
Mar 24, 2021, 1:29:56 AM3/24/21
to Muthuraj Ramalinga kumar, Philip Rogers, blink-dev
Reply all
Reply to author
Forward
0 new messages