Commit 6370163b authored by reed@google.com's avatar reed@google.com

stop using deprecated setConfig

BUG=

Review URL: https://codereview.chromium.org/321563004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@275579 0039d316-1c4b-4281-b951-d872f2087c98
parent 2f301674
......@@ -67,8 +67,7 @@ void CreateBitmap(gfx::Size size, const char* uri, SkBitmap* bitmap) {
size.width(), size.height(), kPMColor_SkColorType, kPremul_SkAlphaType
};
bitmap->setConfig(info);
bitmap->allocPixels();
bitmap->allocPixels(info);
bitmap->pixelRef()->setImmutable();
bitmap->pixelRef()->setURI(uri);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment