skia2/tools/gpu
csmartdalton 0d28e574ac Fix caching of sample locations
The original caching logic for sample locations wishfully assumed that
the GPU would always use the same sample pattern for render targets
that had the same number of samples. It turns out we can't rely on
that. This change improves the caching logic to handle mismatched
simple patterns with the same count, and adds a unit test that
emulates different sample patterns observed on real hardware.

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2111423002

Committed: https://skia.googlesource.com/skia/+/09d49a3bfe2d1e652a648ce1ea0962b38d10d166
Review-Url: https://codereview.chromium.org/2111423002
2016-07-06 09:59:43 -07:00
..
gl Support GL_SAMPLES queries in null contexts 2016-06-23 13:42:13 -07:00
vk Implement vulkan fence syncs for nanobench 2016-05-16 14:09:56 -07:00
GrContextFactory.cpp Cleanup needed to use WindowContext for Android 2016-06-09 13:07:13 -07:00
GrContextFactory.h Make unit tests use generic testcontext rather than glcontext 2016-05-11 10:38:06 -07:00
GrTest.cpp Fix caching of sample locations 2016-07-06 09:59:43 -07:00
GrTest.h Remove GrRenderTarget from GrPipelineBuilder 2016-06-06 06:16:21 -07:00
TestContext.cpp Implement vulkan fence syncs for nanobench 2016-05-16 14:09:56 -07:00
TestContext.h Nanobench running on Vulkan 2016-05-11 11:55:36 -07:00