Even if we increase the artificial size, some devices would still have such limits. What is focring tiling, is it in the benchmark or in Chromium?
Drivers were advertising a max size that was so large that they'd then freeze when the texture of that size was actually created. 4096 was arbitrarily chosen afaict, it may not be the perfect number.
If we want to relax that restriction, I think we had another workaround somewhere which limited the total area of the texture to 4096*4096 pixels (16 Mi), or to (max viewport width * max viewport height) or something along those lines. I didn't look deeply at the original bug, but that might work here too.
在 2017年12月22日星期五 UTC+8下午11:56:27,danakj写道:Drivers were advertising a max size that was so large that they'd then freeze when the texture of that size was actually created. 4096 was arbitrarily chosen afaict, it may not be the perfect number.Maybe we can use this limit on buggy devices instead of on all Android devices?
--
You received this message because you are subscribed to the Google Groups "Graphics-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to graphics-dev+unsubscribe@chromium.org.
To unsubscribe from this group and stop receiving emails from it, send an email to graphics-dev...@chromium.org.
I believe in this case Skia is not chopping the source image to reduce texture memory usage but rather because we think the max texture size is 4096 and the sprite sheet is a bit larger than that.