From fc4f768e5aaf8efdd112f38295a35de83a0f9a55 Mon Sep 17 00:00:00 2001 From: Jim Van Verth Date: Thu, 25 Jan 2018 16:26:25 -0500 Subject: Use int when possible to calculate atlas indices in shaders. On certain iOS devices half has a mantissa of only 10 bits, which is not enough to perform the floating point trickery to get the lower bits out of the "texture coordinates". Instead we use int if available, and float if not available. Also re-enables multitexturing for iOS and adds a sample which stresses the issue, and a version of fontcache that tests multitexturing. Bug: skia:7285 Change-Id: Ia541b6a418c1860c941071750ceb26459eb846ea Reviewed-on: https://skia-review.googlesource.com/99800 Reviewed-by: Brian Salomon Reviewed-by: Robert Phillips Commit-Queue: Jim Van Verth --- gn/samples.gni | 1 + 1 file changed, 1 insertion(+) (limited to 'gn/samples.gni') diff --git a/gn/samples.gni b/gn/samples.gni index 3ee15aed85..48c580c2a3 100644 --- a/gn/samples.gni +++ b/gn/samples.gni @@ -47,6 +47,7 @@ samples_sources = [ "$_samplecode/SampleFilter2.cpp", "$_samplecode/SampleFilterFuzz.cpp", "$_samplecode/SampleFilterQuality.cpp", + "$_samplecode/SampleFlutterAnimate.cpp", "$_samplecode/SampleFontScalerTest.cpp", "$_samplecode/SampleFuzz.cpp", "$_samplecode/SampleGradients.cpp", -- cgit v1.2.3