Similar to bug 27965. Skia and Qt are the odd platforms out; for now the others should use common implementations of this stuff.
Created attachment 38687 [details] Prep work before moving functions into ImageDecoder.cpp
Comment on attachment 38687 [details] Prep work before moving functions into ImageDecoder.cpp LGTM.
Comment on attachment 38687 [details] Prep work before moving functions into ImageDecoder.cpp Landed in r47836, clearing flags.
Created attachment 38696 [details] Refactor Yay for removing duplicate copies of code.
Comment on attachment 38696 [details] Refactor Why wouldn't we just move this into an RGBABuffer.cpp? This is definitely better than before, but we generally try to do one-class per file.
(In reply to comment #5) > (From update of attachment 38696 [details]) > Why wouldn't we just move this into an RGBABuffer.cpp? This is definitely > better than before, but we generally try to do one-class per file. Yes, my eventual plan is to move this into a different file, in a different folder, with a different name.
Fixed in r47867.