commit | 1d3df3848ff297e353a2d0f0fae6ec4a55ab7ba6 | [log] [tgz] |
---|---|---|
author | Justin Novosad <junov@chromium.org> | Thu Sep 07 13:03:34 2017 -0400 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Thu Sep 07 17:47:51 2017 +0000 |
tree | a8de8b9c163690fb6c1baec55012523e6736ef63 | |
parent | 60f42494f5d45c38e260ce089cdddfb600f799b2 [diff] |
Optimize SkColorSpaceXformCanvas for GPU-acceleration This change ensures that SkImages are uploaded to the GPU before applying the xform when the destination canvas is on the GPU. This makes it possible to get hits in the texture cache and it ensures that transforms get computed on the GPU. This fixes a severe performance regression in Chrome that happened when color correction was enabled. Associated chromium patch for layout test rebaselines: https://chromium-review.googlesource.com/c/chromium/src/+/655483 Merge dependency: Merging this change to the M-62 and M-61 branches also requires merging the following change, otherwise there will be rendering errors: https://skia-review.googlesource.com/c/skia/+/43562 BUG=chromium:760738 Change-Id: I49fd5ef7968272d311249c3824fe15bee4648b73 Reviewed-on: https://skia-review.googlesource.com/43183 Commit-Queue: Justin Novosad <junov@chromium.org> Reviewed-by: Brian Osman <brianosman@google.com>