skia2/tools/gpu
Brian Salomon ed63444587 Add idea of DataType to SkYUVAPixmapInfo.
DataType describes the data type of YUVA channels
independent of how they are grouped into planes.

Adds mapping functions between SkColorType/channel count
and DataType.

SkYUVAPixmapInfo can be constructed from DataType and will
choose appropriate SkColorTypes for each plane.

Valid SkYUVAPixmapInfos now have the same DataType for each
plane (could relax this in the future, esp for alpha plane).

SkYUVAPixmapInfo::SupportedDataTypes specifies the supported
combinations of SkYUVAInfo::PlanarConfig and
kYUVAPixmapInfo::DataType supported by a GrContext (based on
supported texture formats).

SkImageGenerator/SkCodec YUVA query API now takes a
SupportedDataTypes.

Change-Id: I8791234638e6ba3396d1e7960b7bc210edc6dd57
Bug: skia:10632
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/314276
Reviewed-by: Leon Scroggins <scroggo@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
2020-09-02 13:21:45 +00:00
..
d3d Add Context factories to GrDirectContext 2020-07-14 12:40:46 +00:00
dawn Add Context factories to GrDirectContext 2020-07-14 12:40:46 +00:00
gl Add config "glesfakev2". It runs GLES with the version faked as 2. 2020-08-26 20:04:34 +00:00
mock Enable ClangTidy flag modernize-use-override. 2020-08-14 10:54:45 +00:00
mtl Revert "Remove ARC from Metal backend" 2020-08-24 17:16:54 +00:00
vk Add image usage flags to GrVkImageInfo 2020-08-21 16:34:20 +00:00
BackendTextureImageFactory.cpp Reland "Remove more GrContext imports & usage" 2020-07-21 11:36:05 +00:00
BackendTextureImageFactory.h Reland "Remove more GrContext imports & usage" 2020-07-21 11:36:05 +00:00
FenceSync.h rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
FlushFinishTracker.cpp Update additional tools to take a GrDirectContext 2020-07-01 20:42:25 +00:00
FlushFinishTracker.h Update additional tools to take a GrDirectContext 2020-07-01 20:42:25 +00:00
GpuTimer.h Replace skstd::exchange with std::exchange 2020-04-30 11:14:20 +00:00
GrContextFactory.cpp Add config "glesfakev2". It runs GLES with the version faked as 2. 2020-08-26 20:04:34 +00:00
GrContextFactory.h Add config "glesfakev2". It runs GLES with the version faked as 2. 2020-08-26 20:04:34 +00:00
GrTest.cpp move GrAtlasTextOp creation to GrRenderTargetContext 2020-07-10 20:01:29 +00:00
MemoryCache.cpp Reland "Switch persistent cache to use SkReadBuffer/SkWriteBuffer" 2020-06-10 14:55:37 +00:00
MemoryCache.h Fix caching of GL program binaries 2020-06-05 15:54:19 +00:00
ProxyUtils.cpp sk_gpu_test::MakeTextureProxyFromData -> MakeTextureProxyViewFromData 2020-08-12 20:43:41 +00:00
ProxyUtils.h sk_gpu_test::MakeTextureProxyFromData -> MakeTextureProxyViewFromData 2020-08-12 20:43:41 +00:00
TestContext.cpp Enable ClangTidy check llvm-namespace-comment. 2020-08-06 19:07:52 +00:00
TestContext.h Add Context factories to GrDirectContext 2020-07-14 12:40:46 +00:00
TestOps.cpp Update GrPaint APIs to reflect lack of multiple color processors. 2020-07-21 17:09:58 +00:00
TestOps.h Move GrRecordingContext.h and GrDirectContext.h into include/gpu 2020-07-01 17:32:14 +00:00
YUVUtils.cpp Add idea of DataType to SkYUVAPixmapInfo. 2020-09-02 13:21:45 +00:00
YUVUtils.h New helpers for SkYUVAInfo when used with pixmaps. 2020-08-27 15:39:56 +00:00