diff options
author | xiyuan@chromium.org <xiyuan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-25 23:04:16 +0000 |
---|---|---|
committer | xiyuan@chromium.org <xiyuan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-25 23:04:16 +0000 |
commit | 1e625a41a9145a10c4c003f081f408ca59fea8cb (patch) | |
tree | 2bf5793e4fcd9c2bdbab38e22d95c41cf458bbb1 /app/gfx/icon_util.h | |
parent | 66c7207477210c663aa42af037484aff8fceab63 (diff) | |
download | chromium_src-1e625a41a9145a10c4c003f081f408ca59fea8cb.zip chromium_src-1e625a41a9145a10c4c003f081f408ca59fea8cb.tar.gz chromium_src-1e625a41a9145a10c4c003f081f408ca59fea8cb.tar.bz2 |
Fix issue 7618
Issue 7618 is caused by an all transparent favicon. When all pixels in
XOR mask has alpha value of zero, Windows will use the AND mask. So
create one for this case.
BUG=7618
TEST=Verify fix for issue 7618.
Review URL: http://codereview.chromium.org/434091
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33149 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'app/gfx/icon_util.h')
-rw-r--r-- | app/gfx/icon_util.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/gfx/icon_util.h b/app/gfx/icon_util.h index 1ecbfb56..65d3d80 100644 --- a/app/gfx/icon_util.h +++ b/app/gfx/icon_util.h @@ -128,6 +128,9 @@ class IconUtil { // Returns how many icon dimensions are defined. static int GetIconDimensionCount(); + // Returns true if any pixel in the given pixels buffer has an non-zero alpha. + static bool PixelsHaveAlpha(const uint32* pixels, size_t num_pixels); + // A helper function that initializes a BITMAPV5HEADER structure with a set // of values. static void InitializeBitmapHeader(BITMAPV5HEADER* header, int width, |