skia2/include/gpu
Brian Osman ac1e4964e7 Workaround Mali static analysis bug
Comment describes it: Unless we do something to confuse their optimizer,
they will (incorrectly) deduce that uniform opaque color (modulated only
by a texture fetch) is always going to remain opaque. Then they skip
inserting their shader based blending code, turning SrcOver into Src.

Doing a max against zero is enough to squelch the optimization.

Bug: skia:
Change-Id: I74676cebb0b0c8d121da868dd8a88050e0cfcc0d
Reviewed-on: https://skia-review.googlesource.com/17924
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
2017-05-25 16:15:07 +00:00
..
gl Revert "Revert "Add a flag to GrSurfaceFlags that requires the texture to be cleared upon creation. "" 2017-05-23 21:38:38 +00:00
vk Remove SkCrossContextImageData and all support code 2017-05-11 18:07:20 +00:00
GrBackendSurface.h Make GrBackendTexture take Gr*Info refs in ctor, and copy them. 2017-05-02 14:08:28 +00:00
GrBlend.h constexprify GrBlend.h and GrPorterDuffXferProcessor.cpp 2017-04-10 16:27:36 +00:00
GrCaps.h Clear atlas textures at creation in Chrome 2017-05-24 16:04:45 +00:00
GrColor.h Support premul/unpremul of F16 during read/writePixels 2017-03-22 16:31:39 +00:00
GrConfig.h Remove PLS path renderer 2017-03-06 17:10:10 +00:00
GrContext.h Add GrContext API to report the number of purgeable bytes in the cache. 2017-05-24 17:08:45 +00:00
GrContextOptions.h Add flag to avoid stencil buffers in Skia 2017-05-09 17:41:25 +00:00
GrGpuResource.h Remove SkCrossContextImageData and all support code 2017-05-11 18:07:20 +00:00
GrGpuResourceRef.h Setup for another attempt to split up opLists 2017-05-11 19:44:39 +00:00
GrRenderTarget.h Revert "Revert "Remove GrSurfaceDesc member from GrSurface."" 2017-05-21 11:41:17 +00:00
GrResourceKey.h increase Builder's prealloc size after colorspace change 2017-03-10 14:17:53 +00:00
GrSamplerParams.h Rename GrTextureParams to GrSamplerParams 2016-11-17 21:13:18 +00:00
GrShaderCaps.h Workaround Mali static analysis bug 2017-05-25 16:15:07 +00:00
GrSurface.h Revert "Revert "Remove GrSurfaceDesc member from GrSurface."" 2017-05-21 11:41:17 +00:00
GrTexture.h Revert "Revert "Remove GrSurfaceDesc member from GrSurface."" 2017-05-21 11:41:17 +00:00
GrTypes.h Revert "Revert "Add a flag to GrSurfaceFlags that requires the texture to be cleared upon creation. "" 2017-05-23 21:38:38 +00:00
GrTypesPriv.h Make GrRenderTarget[(Proxy)|(Context)]? advertise a "full scene aa type". 2017-05-12 16:32:57 +00:00