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

Issue 7686006: Fix crash when allocation of very large HTML canvas fails. (Closed)

Created:
9 years, 4 months ago by Justin Novosad
Modified:
9 years, 4 months ago
Reviewers:
Stephen White, alokp
CC:
chromium-reviews
Visibility:
Public.

Description

Fix crash when allocation of very large HTML canvas fails. This change introduces skia::TryCreateBitmapCanvas, which is a non-crashing version of CreateBitmapCanvas. This patch alone does not fix that crash. A patch in WebKit will be necessary to make the ImageBuffer constructor in ImageBufferSkia.cpp call TryCreateBitmapCanvas. BUG=88038 TEST=http://www.atopon.org/maze/ Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=97474

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -0 lines) Patch
M skia/ext/platform_canvas.h View 1 1 chunk +7 lines, -0 lines 0 comments Download
M skia/ext/platform_canvas.cc View 1 chunk +9 lines, -0 lines 2 comments Download

Messages

Total messages: 4 (0 generated)
Justin Novosad
PTAL
9 years, 4 months ago (2011-08-19 15:30:52 UTC) #1
alokp
http://codereview.chromium.org/7686006/diff/3001/skia/ext/platform_canvas.cc File skia/ext/platform_canvas.cc (right): http://codereview.chromium.org/7686006/diff/3001/skia/ext/platform_canvas.cc#newcode37 skia/ext/platform_canvas.cc:37: SkCanvas* TryCreateBitmapCanvas(int width, int height, bool is_opaque) { Couldn't ...
9 years, 4 months ago (2011-08-19 15:34:39 UTC) #2
junov1
http://codereview.chromium.org/7686006/diff/3001/skia/ext/platform_canvas.cc File skia/ext/platform_canvas.cc (right): http://codereview.chromium.org/7686006/diff/3001/skia/ext/platform_canvas.cc#newcode37 skia/ext/platform_canvas.cc:37: SkCanvas* TryCreateBitmapCanvas(int width, int height, bool is_opaque) { On ...
9 years, 4 months ago (2011-08-19 15:50:25 UTC) #3
alokp
9 years, 4 months ago (2011-08-19 15:57:19 UTC) #4
I see. LGTM.

Powered by Google App Engine
This is Rietveld 408576698