diff options
author | cku <cku@mozilla.com> | 2017-04-28 11:48:21 +0800 |
---|---|---|
committer | yami <34216515+kn-yami@users.noreply.github.com> | 2019-04-03 14:55:35 +0200 |
commit | 765ab730092ac62526dc595c5f729a186d27ebbc (patch) | |
tree | 29cff490491c44f33ab40aaef4182514495048aa /gfx | |
parent | 1179d56493a05767cd836a616dcbd624a22e0381 (diff) | |
download | uxp-765ab730092ac62526dc595c5f729a186d27ebbc.tar.gz |
Bug 1360343 - ensure maskSurface is not null before dereference, since it can be null because of OOM or gfx device reset. r=dvander
MozReview-Commit-ID: HX2qsWLZpMg
--HG--
extra : rebase_source : 046befc11151461a682842c31e2ce39247a5e1d8
Diffstat (limited to 'gfx')
-rw-r--r-- | gfx/2d/2D.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gfx/2d/2D.h b/gfx/2d/2D.h index c1fba3463a..e2020dc9e6 100644 --- a/gfx/2d/2D.h +++ b/gfx/2d/2D.h @@ -488,6 +488,9 @@ public: /** * Returns a DataSourceSurface with the same data as this one, but * guaranteed to have surface->GetType() == SurfaceType::DATA. + * + * The returning surface might be null, because of OOM or gfx device reset. + * The caller needs to do null-check before using it. */ virtual already_AddRefed<DataSourceSurface> GetDataSurface() override; |