commit | dbba55de7026c0ffbf1eff057d7bf87c19ec80d1 | [log] [tgz] |
---|---|---|
author | Stan Iliev <stani@google.com> | Wed Jun 28 13:24:41 2017 -0400 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Wed Jun 28 17:56:46 2017 +0000 |
tree | 0ef2df8e5568aa1dd558cd63836b049ff40d9cae | |
parent | c2d207603edbbd3809d5144fe4a048a2ad774910 [diff] |
Cache GrTexture in GrAHardwareBufferImageGenerator Cache last GrTexture needed by onGenerateTexture. Make sure GrTexture is destroyed by the thread that owns its GrContext. This CL avoids frequent eglDestroyImageKHR calls, which can take more than 7ms. Bug: skia: Change-Id: Ic8472e7e4c55c0f559d96e16845054dc54ec8efa Reviewed-on: https://skia-review.googlesource.com/20989 Reviewed-by: Brian Osman <brianosman@google.com> Commit-Queue: Stan Iliev <stani@google.com>