diff options
author | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-15 15:30:55 +0000 |
---|---|---|
committer | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-15 15:30:55 +0000 |
commit | 3eaf0ecd7a4882482d6234f7a115d1b019c13339 (patch) | |
tree | 327b0b0078ed2bdfa101986fb3ae51edc1c87275 /gfx/skbitmap_operations.h | |
parent | 3d428737173006823333a2635df6c4c15ad739a7 (diff) | |
download | chromium_src-3eaf0ecd7a4882482d6234f7a115d1b019c13339.zip chromium_src-3eaf0ecd7a4882482d6234f7a115d1b019c13339.tar.gz chromium_src-3eaf0ecd7a4882482d6234f7a115d1b019c13339.tar.bz2 |
Windows: Fix opacity of drag images.
BUG=XXX
TEST=Go to google.com, drag logo around. Preview image should now look nice.
Review URL: http://codereview.chromium.org/2963009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52484 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gfx/skbitmap_operations.h')
-rw-r--r-- | gfx/skbitmap_operations.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gfx/skbitmap_operations.h b/gfx/skbitmap_operations.h index 1308308..6f808e7 100644 --- a/gfx/skbitmap_operations.h +++ b/gfx/skbitmap_operations.h @@ -82,6 +82,12 @@ class SkBitmapOperations { // 4 pixels. This is one step in generating a mipmap. static SkBitmap DownsampleByTwo(const SkBitmap& bitmap); + // Unpremultiplies all pixels in |bitmap|. You almost never want to call + // this, as |SkBitmap|s are always premultiplied by conversion. Call this + // only if you will pass the bitmap's data into a system function that + // doesn't expect premultiplied colors. + static SkBitmap UnPreMultiply(const SkBitmap& bitmap); + private: SkBitmapOperations(); // Class for scoping only. |