aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/CanvasTest.cpp
diff options
context:
space:
mode:
authorGravatar Brian Osman <brianosman@google.com>2016-11-29 15:10:13 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2016-11-29 20:47:37 +0000
commit06826d9d204b88c4c33ad53c823ccbca8dee60f7 (patch)
treeabdb8eda18b30d4944ef5e0dddfdbfcfc9fc9f25 /tests/CanvasTest.cpp
parent79252f7997f2f5b90a72d2c7bd5f6aa8a58ee640 (diff)
In GetResourceAsBitmap, don't crash if the resource is missing
NewFromEncoded returns nullptr if the resourceData is null or empty. BUG=skia: Change-Id: I8812b92b8664ebf5e5cf5cdd8b3bfb29963ed454 Reviewed-on: https://skia-review.googlesource.com/5314 Reviewed-by: Matt Sarett <msarett@google.com> Commit-Queue: Brian Osman <brianosman@google.com>
Diffstat (limited to 'tests/CanvasTest.cpp')
0 files changed, 0 insertions, 0 deletions