skia2/include
Ben Wagner 2e228bb72c Avoid crash when surface CoW allocation fails
On low memory machines a common cause of crashes is when a draw
operation requires a large layer (or many large layers) because an
implementation of SkSurface_Base::onCopyOnWrite does not actually have
the resources available to do the copy when required by a draw. Allow
this method to fail and percolate up the call chain so that the draw
simply does not happen instead of crashing.

Bug: chromium:1116362
Change-Id: I2873589f996ded9c9fd6d27b19155ca18d5b5326
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/463956
Reviewed-by: Greg Daniel <egdaniel@google.com>
Reviewed-by: Herb Derby <herb@google.com>
Commit-Queue: Ben Wagner <bungeman@google.com>
2021-10-27 20:38:44 +00:00
..
android Rename/simplify SkCanvas::resetClip() and make recordable 2021-07-23 19:05:42 +00:00
c Hide legacy drawImage methods 2021-01-20 00:59:26 +00:00
codec get image from skcodec 2021-01-25 21:50:16 +00:00
config [infra] Add initial platforms and constraint values 2021-10-26 18:27:13 +00:00
core Avoid crash when surface CoW allocation fails 2021-10-27 20:38:44 +00:00
docs Add appendNodeIdArray to avoid code duplication. 2020-06-23 14:25:33 +00:00
effects Add SkColorMatrix factories for SkYUVColorSpace 2021-10-20 16:47:03 +00:00
encode Replace 'typedef xxxxx INHERITED' with 'using INHERITED = xxxx;'. 2020-09-03 03:41:26 +00:00
gpu Add support for vk drm format modifiers. 2021-10-26 18:22:07 +00:00
pathops rm SkPreConfig.h and SkPostConfig.h 2020-02-06 19:16:43 +00:00
ports Reland "Clean up #includes in SkCFObject." 2021-10-05 19:11:56 +00:00
private Remove GrSL byte types. 2021-10-26 15:48:09 +00:00
sksl Match GLSL scoping rules more closely in SkSL. 2021-10-12 21:53:28 +00:00
svg [svgcanvas] Add support for relative path encoding 2021-05-11 17:44:59 +00:00
third_party Reland "Add OWNERS to include (and include/private) to enforce API review" 2021-09-27 18:20:19 +00:00
utils Feed all top-level GPU accessors through skgpu::BaseDevice (take 2) 2021-07-26 14:56:37 +00:00
OWNERS Make Greg Daniel a Skia API owner. 2021-10-20 17:59:42 +00:00