Revert "remove dead code for legacy image encode api"

This reverts commit 41ed7f33792c4c32b8444230b8b59cab5e29e45e.

Reason for revert: Need this in temporarily to navigate Flutter and Fuchsia rolls.

Original change's description:
> remove dead code for legacy image encode api
> Bug: skia:
> Change-Id: Ia90d776946281473c56cd93006df1b523475696a
> Reviewed-on:
> Reviewed-by: Leon Scroggins <>
> Commit-Queue: Mike Reed <>,

# Not skipping CQ checks because original CL landed > 1 day ago.

Bug: skia:
Change-Id: I078762fc13de0c455dc6f8a5725d9529af03bffc
Reviewed-by: Brian Osman <>
Commit-Queue: Brian Osman <>
3 files changed