diff options
author | pkotwicz@chromium.org <pkotwicz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-14 22:29:22 +0000 |
---|---|---|
committer | pkotwicz@chromium.org <pkotwicz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-14 22:29:22 +0000 |
commit | 75af2a115ef599f4c26cd47a8cc336124ecffe52 (patch) | |
tree | 846a6b01af1c0fc5764e4c5cd66f66b8362bb53e /ui/gfx | |
parent | e4196de4c47bdbf700f6d0e0fb0218cdb98e489e (diff) | |
download | chromium_src-75af2a115ef599f4c26cd47a8cc336124ecffe52.zip chromium_src-75af2a115ef599f4c26cd47a8cc336124ecffe52.tar.gz chromium_src-75af2a115ef599f4c26cd47a8cc336124ecffe52.tar.bz2 |
Revert 136639 - Image(SkBitmap) was calling DeleteSoon. Changed code path slightly such that this is avoided.
Bug=127716
Test=heapcheck stops using surpressions for bug_127716 and 127717 for BrowserThemePackTest.CanBuildAndReadPack
Review URL: https://chromiumcodereview.appspot.com/10383133
TBR=pkotwicz@chromium.org
Review URL: https://chromiumcodereview.appspot.com/10383171
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@136994 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/gfx')
-rw-r--r-- | ui/gfx/image/image.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/gfx/image/image.cc b/ui/gfx/image/image.cc index 70324b1..dac2ccc 100644 --- a/ui/gfx/image/image.cc +++ b/ui/gfx/image/image.cc @@ -243,7 +243,7 @@ Image::Image(const SkBitmap* bitmap) Image::Image(const SkBitmap& bitmap) : storage_(new internal::ImageStorage(Image::kImageRepSkia)) { internal::ImageRepSkia* rep = - new internal::ImageRepSkia(new ImageSkia(bitmap)); + new internal::ImageRepSkia(new ImageSkia(new SkBitmap(bitmap))); AddRepresentation(rep); } |