diff options
author | 2018-01-19 13:45:02 -0800 | |
---|---|---|
committer | 2018-01-20 01:55:14 +0000 | |
commit | 36591e5ffe263fcab5c43456d7328da2bf9addb1 (patch) | |
tree | 61e4a102be4e4e7c70e01b5d3f4b7abde97c6cbf /src/gpu/GrRectanizer_skyline.cpp | |
parent | 81fe2a1413598ef507adc62149a42fada9c03663 (diff) |
Better handle context-loss in MakeBackendTextureFromSkImage
In context-loss situations, SkImage::getTexture may return nullptr,
even if SkImage::isTextureBacked() is true. Handle these cases
without crashing.
R=bsalomon@google.com
Bug: 803796
Change-Id: Ia877124160fb1893af08f839e43e3ee83c1b93ff
Reviewed-on: https://skia-review.googlesource.com/97341
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/gpu/GrRectanizer_skyline.cpp')
0 files changed, 0 insertions, 0 deletions