skia2/src
Yuqian Li 0d96175c97 Do not return null paint if shaderFP is null
This fixes the ripple bug reported by LG:
https://b.corp.google.com/issues/68964656

In that bug, the button is so tall that our image shader returns
a null fragment processor because the height exceeds GL_MAX_TEXTURE_SIZE.
If we return null paint, the ripple is completely gone. This CL returns
a default paint so we can still see the ripple, and that matches HWUI's
behaviour.

A GM will be added later after some other urgent Android ripple bug fixes.

Bug: skia:
Change-Id: I9bcafc078916a6a15fbd84d2019f39ac88d2b2f8
Reviewed-on: https://skia-review.googlesource.com/73200
Commit-Queue: Yuqian Li <liyuqian@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
2017-11-17 16:58:37 +00:00
..
android Revert[4] "guard old apis for querying byte-size of a bitmap/imageinfo/pixmap" 2017-10-03 20:03:35 +00:00
c Convert NULL and 0 to nullptr. 2017-08-28 17:48:57 +00:00
codec Fix webp bug compositing alpha frames on opaque (better fix) 2017-11-17 13:28:45 +00:00
core Revert "Revert "Add method to sk_gpu_test::TestContext to automatically restore the previous context."" 2017-11-17 16:22:56 +00:00
effects Alloc glyph image correctly for SkMask::k3D_Format. 2017-11-14 17:38:34 +00:00
fonts move Sk{Test,Random}ScalerContext to tools 2017-11-10 17:02:20 +00:00
gpu Do not return null paint if shaderFP is null 2017-11-17 16:58:37 +00:00
image Add MakeCrossContextFromPixmap 2017-11-07 15:59:38 +00:00
images Revert "Add an Option for orientation on JPEG encodes" 2017-10-18 18:09:47 +00:00
jumper AVX2 specialization for lowp gradient lookup 2017-11-10 19:38:17 +00:00
lazy SkDiscardableMemoryPool: always have a mutex for testing 2017-05-05 15:10:13 +00:00
opts Fix Sk8b reading too many bytes 2017-11-16 21:39:19 +00:00
pathops move parts of SkPoint to SkPointPriv 2017-11-08 18:25:17 +00:00
pdf Revert "Revert "Add method to sk_gpu_test::TestContext to automatically restore the previous context."" 2017-11-17 16:22:56 +00:00
pipe Remove trailing whitespace. 2017-10-09 21:20:34 +00:00
ports streamline GDI bots 2017-11-13 18:47:11 +00:00
sfnt Windows GDI Typeface: set NotEmbeddable_FontFlag same as other backends. 2017-11-10 14:21:17 +00:00
shaders Simplify analytical GPU gradient impls 2017-11-09 15:15:54 +00:00
sksl converted GrAARectEffect to SkSL 2017-11-16 21:54:38 +00:00
svg Add a SkWStream-based SkSVGCanvas factory 2017-09-19 20:33:19 +00:00
utils sksl enum support 2017-11-13 14:36:40 +00:00
views Remove trailing whitespace. 2017-10-09 21:20:34 +00:00
xml Remove trailing whitespace. 2017-10-09 21:20:34 +00:00
xps Revert "move SkMatrix anonymous affine enum to private" 2017-10-13 13:26:08 +00:00