[CrOS Printing] Refactor GetColorModelForMode()
The switch statment found in GetColorModelForMode() is useful for determining whether a ColorMode is color or monochrome. Move it into a new static function for other classes to use. Change-Id: I834e503744c698ca82a2ef841f9b22484c49b414 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1888737 Commit-Queue: Jesse Schettler <jschettler@chromium.org> Reviewed-by:Lei Zhang <thestig@chromium.org> Cr-Commit-Position: refs/heads/master@{#710567}
Showing
Please register or sign in to comment