Use CanvasImageSource for vector image drawing in ImageView.
commita204e0cf1b85e0ebab6f91db08873108b4f37223
authorestade <estade@chromium.org>
Wed, 22 Jul 2015 19:54:31 +0000 (22 12:54 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 22 Jul 2015 19:54:59 +0000 (22 19:54 +0000)
treea34f0a31bb045ee8fb1ad98a72663f7cbc371e08
parent76bf8120ce6c788584212096886036d023d5c178
Use CanvasImageSource for vector image drawing in ImageView.

The goal of this change is to reduce the clutter in various class's
public interfaces and ease the transition to vector icons in more places
which pass around gfx::ImageSkia or gfx::Image.

According to my (unscientific) testing, this makes the initial paint
substantially slower (~30x) but still much faster than loading an image
from disk. Subsequent paints are faster by a factor of ~15x.

BUG=505953

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

Cr-Commit-Position: refs/heads/master@{#339940}
chrome/browser/ui/views/profiles/profile_chooser_view.cc
chrome/browser/ui/views/website_settings/permissions_bubble_view.cc
ui/gfx/paint_vector_icon.cc
ui/gfx/paint_vector_icon.h
ui/views/controls/image_view.cc
ui/views/controls/image_view.h