Chromium Code Reviews
Help | Chromium Project | Gerrit Changes | Sign in
(4)

Issue 39307: Fix memory leak of "screen size bitmap" (e.g. 1.5M if 750x548) ... (Closed)

Created:
9 years, 5 months ago by John Grabowski
Modified:
7 years, 1 month ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Fix memory leak of "screen size bitmap" (e.g. 1.5M if 750x548) that happened on *every page view* on OSX. VSIZE/RSIZE now hovers around 500M/30M instead of growing to 1.3G/260M within a few minutes. Surprisingly, Chromium.app seems quite a bit snappier! The essence of the change is that SkBitmap::setPixels() does NOT take ownership of the pointer, whereas SkBitmap::allocPixels() both allocates and owns. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=11196

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

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

Messages

Total messages: 2 (0 generated)
John Grabowski
9 years, 5 months ago (2009-03-07 03:29:08 UTC) #1
pink (ping after 24hrs)
9 years, 5 months ago (2009-03-09 14:19:08 UTC) #2
Awesome! LGTM

Powered by Google App Engine
This is Rietveld 408576698