Add integer texture support.
authorBrian Salomon <bsalomon@google.com>
Thu, 10 Nov 2016 16:19:51 +0000 (11:19 -0500)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Thu, 10 Nov 2016 17:13:34 +0000 (17:13 +0000)
commit434c534bd0ec08cb355fecfb6d2110197b523e74
tree119167b88683157346ab8250bbc553903e046f7f
parente13a69baac9dc326510009fa7c0c5966aee9240c
Add integer texture support.

This allows us to create integer textures and sample them from a GrProcessor's code.

Filtering is limited to NEAREST.

Adds tests for reading/writing pixels, copying, and drawing. These operations are not allowed to convert to fixed/float configs.

Vulkan support is TBD.

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

Change-Id: If38d89a03285d4bd98d1f14f9638b0320977e43d
Reviewed-on: https://skia-review.googlesource.com/4348
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Chris Dalton <csmartdalton@google.com>
25 files changed:
gn/tests.gni
include/gpu/GrColor.h
include/gpu/GrTypes.h
include/gpu/GrTypesPriv.h
src/gpu/GrCaps.cpp
src/gpu/GrContext.cpp
src/gpu/GrGpu.cpp
src/gpu/GrTextureProvider.cpp
src/gpu/batches/GrCopySurfaceBatch.cpp
src/gpu/gl/GrGLCaps.cpp
src/gpu/gl/GrGLCaps.h
src/gpu/gl/GrGLDefines.h
src/gpu/gl/GrGLGpu.cpp
src/gpu/gl/GrGLGpu.h
src/gpu/gl/GrGLTexture.cpp
src/gpu/glsl/GrGLSL.h
src/gpu/glsl/GrGLSLCaps.cpp
src/gpu/glsl/GrGLSLCaps.h
src/gpu/vk/GrVkUniformHandler.cpp
src/gpu/vk/GrVkUtil.cpp
src/gpu/vk/GrVkVaryingHandler.cpp
src/sksl/SkSLCompiler.cpp
src/sksl/SkSLContext.h
src/sksl/sksl.include
tests/IntTextureTest.cpp [new file with mode: 0644]