skia2/gn
Jim Van Verth 999ec57291 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.

Bug: skia:7285
Change-Id: I365532c7cbbcca7c7753af209bef46e05be49e11
Reviewed-on: https://skia-review.googlesource.com/71181
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Jim Van Verth <jvanverth@google.com>
2017-11-20 18:07:08 +00:00
..
toolchain Support cc_wrapper with MSVC toolchain 2017-10-23 16:34:29 +00:00
__init__.py Make gn directory importable in python 2017-03-20 17:40:30 +00:00
ar.py GN: quiet alink spam on Mac 2016-11-07 14:19:32 +00:00
bench.gni Add benchmark for comparing multitexturing to non-multitexturing image draws. 2017-10-11 20:32:49 +00:00
BUILD.gn Support cc_wrapper with MSVC toolchain 2017-10-23 16:34:29 +00:00
BUILDCONFIG.gn [WASM] Add POC compile bot for WebAssembly 2017-09-21 18:24:43 +00:00
call.py Add gn plumbing for mdbviz tool 2017-09-05 13:57:44 +00:00
compile_processors.py switched to infra version of clang-format for skslc 2017-07-27 20:28:50 +00:00
core.gni Revert "Revert "Add Atlas Text interface for rendering SDF glyphs."" 2017-11-19 18:55:18 +00:00
cp.py GN: get Angle compiling on Windows. 2016-10-17 16:16:16 +00:00
create_sksl_enums.py fix Housekeeper-PerCommit bot 2017-11-16 19:18:53 +00:00
effects.gni Add SK_API to SkOverdrawCanvas and SkOverdrawColorFilter. 2017-08-18 16:53:49 +00:00
find_headers.py Revert "Revert "Update skia to use ifdefs for Vulkan code instead of dummy header"" 2017-06-14 01:43:38 +00:00
find_ios_sysroot.py Add iOS simulator support in GN. 2017-03-13 17:21:43 +00:00
flutter_defines.gni Preemptively disable upcoming Skia features in Flutter/Fuchsia 2017-11-10 13:52:57 +00:00
gm.gni Revert "Revert "Add Atlas Text interface for rendering SDF glyphs."" 2017-11-19 18:55:18 +00:00
gn_helpers.py Basic standalone GN configs. 2016-07-21 12:25:45 -07:00
gn_meta_sln.py Move, rename, and document Visual Studio GN helper script 2016-12-14 16:41:52 +00:00
gn_to_bp.py Generate warning settings for Android framework 2017-10-06 16:18:34 +00:00
gn_to_cmake.py Add support for lib_dirs to gn_to_cmake.py. 2016-10-28 15:07:10 +00:00
gpu.gni Revert "Revert "Add Atlas Text interface for rendering SDF glyphs."" 2017-11-19 18:55:18 +00:00
gypi_to_gn.py Add executable bit and shebang to python files 2016-08-18 04:36:25 -07:00
is_clang.py GN: match shell behavior for cc and cxx in is_clang.py 2016-09-27 09:29:24 -07:00
opts.gni Assume HQ is handled by pipeline, delete legacy code-path 2017-07-20 00:43:37 +00:00
package_ios.py Get viewer running on iOS 2017-09-01 17:30:57 +00:00
pdf.gni Revert "Revert "Add method to sk_gpu_test::TestContext to automatically restore the previous context."" 2017-11-17 16:22:56 +00:00
push_to_android.py skia_android_serial = "auto" 2017-01-12 16:30:17 +00:00
run_sksllex.py Re-land "converted OverdrawColorFilter to SkSL" 2017-10-26 14:58:27 +00:00
samples.gni Use int when possible to calculate atlas indices in shaders. 2017-11-20 18:07:08 +00:00
shared_sources.gni Assume HQ is handled by pipeline, delete legacy code-path 2017-07-20 00:43:37 +00:00
sksl.gni converted Premul / Unpremul to SkSL 2017-11-17 20:11:36 +00:00
tests.gni Ensure that removing last extension from GrGLExtension doesn't assert. 2017-11-15 20:25:42 +00:00
utils.gni move Sk{Test,Random}ScalerContext to tools 2017-11-10 17:02:20 +00:00
xps.gni SkXPS: new document API. 2017-02-06 19:00:28 +00:00