Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(129)

Unified Diff: gfx/skbitmap_operations.h

Issue 2963009: Windows: Fix opacity of drag images.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: merge Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | gfx/skbitmap_operations.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gfx/skbitmap_operations.h
diff --git a/gfx/skbitmap_operations.h b/gfx/skbitmap_operations.h
index 1308308f88070b10bce08d512fc696e4ca15dfcc..6f808e76d462b11d10d527001ad4192cd9ad19a3 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.
« no previous file with comments | « no previous file | gfx/skbitmap_operations.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698