Guard against instantiate & accessRenderTarget failures
authorRobert Phillips <robertphillips@google.com>
Thu, 17 Nov 2016 15:22:48 +0000 (10:22 -0500)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Thu, 17 Nov 2016 17:34:13 +0000 (17:34 +0000)
commite60ad620fe236ce4c1e85a31bd53ed0c848da8c3
tree99293fa57aeb9cf3887764c3ec2e8096421f6703
parent987de5b6b996ab19aac8e09fa030bbb35ed51a3b
Guard against instantiate & accessRenderTarget failures

Chrome's fuzzer have reminded me that, since we are deferring allocation, instantiate and accessRenderTarget can now fail further down the call stack.

This should probably be cherry picked back to M56.

BUG=665681,665500,665621

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

Change-Id: I44d81ff29586dfe75ddda30b5ed8ca76354542d6
Reviewed-on: https://skia-review.googlesource.com/4929
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
include/gpu/GrRenderTargetContext.h
src/core/SkSpecialImage.cpp
src/effects/SkMorphologyImageFilter.cpp
src/gpu/GrClipStackClip.cpp
src/gpu/GrDrawingManager.cpp
src/gpu/GrPipeline.cpp
src/gpu/GrRenderTargetContext.cpp
src/gpu/GrRenderTargetOpList.cpp
src/image/SkImage_Gpu.cpp
src/image/SkSurface_Gpu.cpp