Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(237)

Unified Diff: skia/effects/SkKernel33MaskFilter.cpp

Issue 93093: Implement canvas's globalCompositeOperation lighter properly.... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « skia/effects/SkEmbossMaskFilter.cpp ('k') | skia/effects/SkLayerRasterizer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/effects/SkKernel33MaskFilter.cpp
===================================================================
--- skia/effects/SkKernel33MaskFilter.cpp (revision 14480)
+++ skia/effects/SkKernel33MaskFilter.cpp (working copy)
@@ -19,6 +19,9 @@
dst->fRowBytes = dst->fBounds.width();
size_t size = dst->computeImageSize();
+ if (0 == size) {
+ return false; // too big to allocate, abort
+ }
dst->fImage = SkMask::AllocImage(size);
const int h = src.fBounds.height();
« no previous file with comments | « skia/effects/SkEmbossMaskFilter.cpp ('k') | skia/effects/SkLayerRasterizer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698