Go to file
Eric Karl 36591e5ffe 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>
2018-01-20 01:55:14 +00:00
animations first cut at a checkbox 2009-10-21 19:41:10 +00:00
bench Move more internal methods from GrContext to GrContextPriv (take 2) 2018-01-19 19:26:46 +00:00
bin Add directions for when trouble strikes in fetch-skps. 2018-01-04 21:31:01 +00:00
debugger Update SkSurface MakeFromBackend* factories to take an SkColorType. 2017-12-19 18:41:36 +00:00
dm Skotty -> Skottie 2018-01-17 14:15:36 +00:00
docs validate paint setters in readbuffer 2018-01-18 21:14:19 +00:00
example Update SkSurface MakeFromBackend* factories to take an SkColorType. 2017-12-19 18:41:36 +00:00
experimental [skottie,sksg] Improved shape group semantics 2018-01-19 20:44:56 +00:00
fuzz check for crazy bounds from fuzzer 2018-01-19 18:30:13 +00:00
gm Move more internal methods from GrContext to GrContextPriv (take 2) 2018-01-19 19:26:46 +00:00
gn Use equal_range for factory lookups 2018-01-19 21:17:56 +00:00
include Use equal_range for factory lookups 2018-01-19 21:17:56 +00:00
infra Add Android_API26 bot to CQ 2018-01-19 19:04:13 +00:00
platform_tools SkQP: better logging 2018-01-19 16:19:23 +00:00
resources Add a GM and images to test SkEncodedOrigin 2018-01-17 16:14:16 +00:00
samplecode Use SkAndroidCodec in SkAnimatedImage 2018-01-16 20:36:09 +00:00
site Update markdown files 2018-01-19 06:23:22 +00:00
src Better handle context-loss in MakeBackendTextureFromSkImage 2018-01-20 01:55:14 +00:00
tests Use equal_range for factory lookups 2018-01-19 21:17:56 +00:00
third_party make lua a rollable dep, roll it 2018-01-10 17:54:00 +00:00
tools Move more internal methods from GrContext to GrContextPriv (take 2) 2018-01-19 19:26:46 +00:00
.clang-format Mark flatennable macros as block beginning/ending in .clang-format 2017-01-09 15:31:36 +00:00
.gitignore Ignore generated README.recipes.md 2017-10-26 18:07:27 +00:00
.gn Basic standalone GN configs. 2016-07-21 12:25:45 -07:00
AUTHORS Changes to site documentation 2018-01-11 19:47:58 +00:00
BUILD.gn [skottie,sksg] Improved shape group semantics 2018-01-19 20:44:56 +00:00
codereview.settings Make uploading to Gerrit the default for Skia 2016-11-09 19:07:56 +00:00
CONTRIBUTING Fix references to https://sites.google.com/site/skiadocs/. 2015-02-03 13:12:54 -02:00
CQ_COMMITTERS Moved committer list to chrome-infra-auth and deleted it from the repo 2015-09-02 13:37:54 -07:00
DEPS Roll skia/third_party/externals/angle2/ 4747414ed..f661686c1 (1 commit) 2018-01-16 20:46:19 +00:00
Doxyfile Make the housekeeper upload doxygen to a newer bucket 2016-10-04 13:23:57 -07:00
LICENSE BUG=skia:5602 2016-09-02 11:19:34 -07:00
OWNERS add OWNERS file 2017-12-01 19:50:19 +00:00
PRESUBMIT.py Skip AUTHORS check for Skia service accounts 2018-01-02 18:47:01 +00:00
public.bzl remove SK_SUPPORT_LEGACY_RECTMAKELARGEST flag 2018-01-11 13:11:02 +00:00
README Fix references to https://sites.google.com/site/skiadocs/. 2015-02-03 13:12:54 -02:00
README.chromium Update README.chromium. 2015-06-11 13:19:24 -07:00
whitespace.txt Removed general bot upload permissions, whitespace change to test 2017-12-04 13:03:34 +00:00

Skia is a complete 2D graphic library for drawing Text, Geometries, and Images.

See full details, and build instructions, at https://skia.org.