DescriptionThe Sky compositor should recycle textures
Previously, we were creating a new texture for every frame. Using tracing on a
Nexus 5, that appears to cost about 6ms per frame on the GPU thread. After this
CL, we keep a cache of recently used textures and only allocate a new one when
either (1) we don't have one free or (2) our size requirements have changed.
If our size requirements change, we dump the whole texture cache. In the
future, we'll probably need something fancier if we ever need more than one
size texture per frame.
R=jamesr@chromium.org
Committed: https://chromium.googlesource.com/external/mojo/+/a229acb4197a27e6be312ab7171488da9c50632e
Patch Set 1 #
Total comments: 1
Messages
Total messages: 3 (0 generated)
|