Get the max texture size from TextureCache.
Get the max texture size from TextureCache.

In TextureCache, there is another formula to calculate the max texture size.
So, we should use that value instead of the device max texture size.

servo/webrender,servo/webrender,servo/webrender,servo/webrender,servo/webrender,servo/webrender