Some tests around surface creation and snapshotting with color space
authorbrianosman <brianosman@google.com>
Tue, 30 Aug 2016 14:07:59 +0000 (07:07 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 30 Aug 2016 14:07:59 +0000 (07:07 -0700)
commit0e22eb8e6efc7d7ab7a601ba555947916d139906
tree8f4087433a195f8e874c0b83549552575cde0e75
parent6f5df6acb7dec9788fe5d9c44f7892b896e21de3
Some tests around surface creation and snapshotting with color space

Verify the rules that we're converging on for surfaces:
- For 8888, we only support sRGB-like gamma, or no color space at all.
- For F16, we require a color space, with linear gamma.
- For all other formats, we do not support color spaces.

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

Review-Url: https://codereview.chromium.org/2270823002
13 files changed:
bench/nanobench.cpp
dm/DM.cpp
gm/surface.cpp
gm/textblobgeometrychange.cpp
samplecode/SampleApp.cpp
src/gpu/GrDrawingManager.cpp
src/image/SkSurface_Gpu.cpp
src/image/SkSurface_Gpu.h
src/image/SkSurface_Raster.cpp
tests/SurfaceTest.cpp
tests/TestConfigParsing.cpp
tools/flags/SkCommonFlagsConfig.cpp
tools/skiaserve/Request.cpp