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

Issue 57053002: Aggressively assert on BITMAP object deletions (Closed)

Created:
7 years, 1 month ago by Vangelis Kokkevis
Modified:
7 years ago
CC:
chromium-reviews
Visibility:
Public.

Description

Aggressively assert on BITMAP object deletions Add asserts on bitmap object deletions to verify that they do indeed complete successfully. Also, when CreateDIBSection fails, attempt to make a smaller one to determine whether the failure is due to memory exhaution / fragmentation or some other resource exhaution. BUG=275046

Patch Set 1 #

Patch Set 2 : Remove unecessary new include #

Total comments: 1

Patch Set 3 : Converted SK_ASSERT's to SK_CRASH'es #

Patch Set 4 : Fixed 80 char limit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -5 lines) Patch
M skia/ext/bitmap_platform_device_win.cc View 1 2 3 6 chunks +30 lines, -5 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Vangelis Kokkevis
Mike, any other ideas on things we could try to better pinpoint what sort of ...
7 years, 1 month ago (2013-11-02 18:41:39 UTC) #1
reed1
https://codereview.chromium.org/57053002/diff/50001/skia/ext/bitmap_platform_device_win.cc File skia/ext/bitmap_platform_device_win.cc (right): https://codereview.chromium.org/57053002/diff/50001/skia/ext/bitmap_platform_device_win.cc#newcode90 skia/ext/bitmap_platform_device_win.cc:90: SkASSERT(DeleteObject(bitmap_handle_)); SkASSERT becomes a no-op in release builds, so ...
7 years, 1 month ago (2013-11-04 16:49:27 UTC) #2
Vangelis Kokkevis
On 2013/11/04 16:49:27, reed1 wrote: > https://codereview.chromium.org/57053002/diff/50001/skia/ext/bitmap_platform_device_win.cc > File skia/ext/bitmap_platform_device_win.cc (right): > > https://codereview.chromium.org/57053002/diff/50001/skia/ext/bitmap_platform_device_win.cc#newcode90 > ...
7 years, 1 month ago (2013-11-04 18:43:27 UTC) #3
jamesr
+cpu to check it over. Do all callers to CreateHBitmap definitely crash on failure (that ...
7 years, 1 month ago (2013-11-13 22:31:42 UTC) #4
jamesr
I went ahead and combined this diagnostic with some other checks that cpu@ wrote for ...
7 years, 1 month ago (2013-11-14 01:42:50 UTC) #5
vangelis
I like yours better! Thanks! On Wed, Nov 13, 2013 at 5:42 PM, <jamesr@chromium.org> wrote: ...
7 years, 1 month ago (2013-11-14 01:46:20 UTC) #6
cpu_(ooo_6.6-7.5)
7 years, 1 month ago (2013-11-14 20:24:57 UTC) #7
lgtm

Powered by Google App Engine
This is Rietveld 408576698