Ideally this would live in gfx/2d/MacIOSurface.cpp, but we don't have access to the YCbCr conversion utilities in Moz2D. --HG-- extra : rebase_source : c103884dab7404d3f5181ba8cd55178b04955bf4