Add rgb and rgba color parsing to extensions image_utils.
This CL is a precursor to Change 680677 which needs to store a color with transparency. To do this, we plan to store the color as an rgba string, which is converted back by the function added in this patch. The RGB parsing here does not handle percentages, for simplicity. Bug: 762401 Change-Id: I1304f0444be4c80536a26bbb97dd653503d1b9c2 Reviewed-on: https://chromium-review.googlesource.com/711775 Commit-Queue: calamity <calamity@chromium.org> Reviewed-by:Devlin <rdevlin.cronin@chromium.org> Cr-Commit-Position: refs/heads/master@{#508592}
Showing
Please register or sign in to comment