skia2/tools/gpu
John Stiles 4d7ac49dca Declare outputColor and outputCoverage inside emitCode.
This is useful because it allows the variables to be declared as `const`
when they are trivial values like `half4(1)`. This enables the constant
folder to simplify or eliminate them. In most cases, this is only a
small benefit, as you'd expect a competent GPU driver to do the same.
However, Mali-400 can benefit significantly from optimizing away the
multiplication against a constant half4(1) coverage in Porter-Duff.

Mali-400 performance is back to normal: http://screen/3cDxdaGkYE8oBcS

Change-Id: I21fd23f91f747079cd05b082f7b3444aeabafb93
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/382476
Auto-Submit: John Stiles <johnstiles@google.com>
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
2021-03-10 16:03:18 +00:00
..
d3d Revert "Reland "Use Microsoft's ComPtr to wrap D3D12 objects."" 2020-09-21 22:02:12 +00:00
dawn Replace 'typedef xxxxx INHERITED' with 'using INHERITED = xxxx;'. 2020-09-03 03:41:26 +00:00
gl Reland "Remove ARC from tools lib." 2021-02-22 17:55:52 +00:00
mock Replace 'typedef xxxxx INHERITED' with 'using INHERITED = xxxx;'. 2020-09-03 03:41:26 +00:00
mtl Reland "Remove ARC from tools lib." 2021-02-22 17:55:52 +00:00
vk Update GrAttachment budgeted and gpu memory size calculation. 2020-10-19 17:54:10 +00:00
BackendSurfaceFactory.cpp Revert "Revert "Reland "asyncRescaleAndRead supports unpremul results on GPU""" 2021-01-22 14:21:01 +00:00
BackendSurfaceFactory.h Revert "Reland "Revert "Use ManagedBackendTexture in place of TestUtils backend texture helpers.""" 2020-10-13 01:22:13 +00:00
BackendTextureImageFactory.cpp Take origin when creating/updating backend texture using pixmaps. 2020-12-07 20:31:10 +00:00
BackendTextureImageFactory.h Revert "Reland "Revert "Use ManagedBackendTexture in place of TestUtils backend texture helpers.""" 2020-10-13 01:22:13 +00:00
FenceSync.h
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 Rename GrContextPriv to GrDirectContextPriv 2020-10-14 16:46:01 +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 whole-word replace renderTargetContext with surfaceDrawContext 2020-12-11 23:24:40 +00:00
ManagedBackendTexture.cpp Bitmap.asImage() 2020-12-23 15:54:57 +00:00
ManagedBackendTexture.h Use the ManagedBackendTexture helper in fiddle_main 2020-12-08 17:39:12 +00:00
MemoryCache.cpp fm: Make --writeShaders dump fragment, vertex, and key files 2021-03-03 20:10:06 +00:00
MemoryCache.h Reland "Redesign program key construction" 2021-03-03 17:44:00 +00:00
ProxyUtils.cpp Remove SkImage_Base::peekProxy. 2021-02-23 19:59:31 +00:00
ProxyUtils.h Remove SkImage_Base::peekProxy. 2021-02-23 19:59:31 +00:00
TestContext.cpp Enable ClangTidy check llvm-namespace-comment. 2020-08-06 19:07:52 +00:00
TestContext.h Replace 'typedef xxxxx INHERITED' with 'using INHERITED = xxxx;'. 2020-09-03 03:41:26 +00:00
TestOps.cpp Declare outputColor and outputCoverage inside emitCode. 2021-03-10 16:03:18 +00:00
TestOps.h add API for Op creation 2020-10-26 18:51:15 +00:00
YUVUtils.cpp Reland "Test all YUVA image factories with different encoded origins." 2021-01-19 21:11:05 +00:00
YUVUtils.h Remove SkYUVASizeInfo, make SkYUVAIndex a private part of SkYUVAInfo 2021-01-12 15:06:26 +00:00