commit | 0944ae8afbafaae30eacffc73c5afbf4c062210c | [log] [tgz] |
---|---|---|
author | Mike Klein <mtklein@google.com> | Mon Sep 17 13:48:31 2018 -0400 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Mon Sep 17 18:28:24 2018 +0000 |
tree | c50ec79ff6d5931713e3532530e7141c6a3554b0 | |
parent | 42f29f11817f9829b92dbf52d77f1447fbfc5ed0 [diff] |
implement SkPixmap::getPixel() with this->readPixels(). Yet another big old switch statement I don't want to maintain. Once again, I think this at least makes it explicit that we're returning an SkColor in the colorspace of the pixmap. Change-Id: I34aa7312c0a1670910586fc5a4b1951275e73e2e Reviewed-on: https://skia-review.googlesource.com/154864 Reviewed-by: Brian Osman <brianosman@google.com> Commit-Queue: Mike Klein <mtklein@google.com>