Make wallpaper images immutable.
commitcdaf806e0fa0fb3f8373b0170c5e6fc3040148e4
authorpiman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Mon, 4 Feb 2013 19:28:03 +0000 (4 19:28 +0000)
committerpiman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Mon, 4 Feb 2013 19:28:03 +0000 (4 19:28 +0000)
tree0d573dad62df53d05598b3acff2a3df3b685ae0c
parent24abb71c8c9f362af6a04aed192e7214f25c3330
Make wallpaper images immutable.

On Aura, with --ui-enable-per-tile-painting, non-immutable SkBitmaps get
duplicated when painting, consuming a large amount of memory. Since we don't
modify them and they're big, mark wallpaper bitmaps as immutable.

BUG=173724

Review URL: https://chromiumcodereview.appspot.com/12094108

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@180473 0039d316-1c4b-4281-b951-d872f2087c98
chrome/browser/chromeos/extensions/wallpaper_private_api.cc
chrome/browser/chromeos/login/user_image_loader.cc