DescriptionRestrict ETC1 power-of-two rounding to old IMG drivers.
The ETC1 spec says that any multiple of 4 is allowed for ETC1 size, but
certain old IMG devices (notably the Galaxy Nexus) crash unless the
textures are specifically power-of-two. To avoid wasting RAM on all
devices due to this device-specific problem, this patch plumbs a driver
workaround flag to the thumbnail store (the only user of ETC1 at
present).
We considered adding a workaround to the service side like all of the
others, but because texture size impacts memory budgeting and
coordinates, this one seems like it needs to be in the client code.
NOTRY=true
BUG=150500
Committed: https://crrev.com/d880a3deca8ab1c6c75ef915faa22ab7d40f55ff
Cr-Commit-Position: refs/heads/master@{#291814}
Patch Set 1 #Patch Set 2 : Rebase #
Total comments: 8
Patch Set 3 : dtrainor review #Patch Set 4 : sievers code review #Patch Set 5 : Pass capabilities by value #
Total comments: 1
Patch Set 6 : Use MessageLoopProxy #Patch Set 7 : Fix Clang build #Patch Set 8 : Fix content_unittests #Patch Set 9 : More Clang fix #Patch Set 10 : Rebase #Messages
Total messages: 18 (0 generated)
|