commit | 3a98f1bb2a0c9821c2510db686726e55e3c3b455 | [log] [tgz] |
---|---|---|
author | Fredrik Söderquist <fs@opera.com> | Mon Dec 03 18:10:39 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Mon Dec 03 18:10:39 2018 |
tree | 3ef7e43ec9eb99f54060fa3c8581bb42201e7b38 | |
parent | 0a5a090f828b60e1f17737cec83eb5628547258d [diff] |
Simplify GraphicsContext::ApplyHighContrastFilter implementations We assume that SkColor <=> Color::Rgb(), so simplify the Color variant accordingly. PaintFlags are always passed as constant references, so pass it like that to the PaintFlags variant too and remove the null-checks. Also always explicitly copy the PaintFlags so that we get RVO. Change-Id: I46b6f5aff7cbe175d6b9a2ff8277ff5ce9b4fce8 Reviewed-on: https://chromium-review.googlesource.com/c/1358497 Reviewed-by: Stephen Chenney <schenney@chromium.org> Reviewed-by: Florin Malita <fmalita@chromium.org> Commit-Queue: Fredrik Söderquist <fs@opera.com> Cr-Commit-Position: refs/heads/master@{#613158}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .