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

Issue 150151: GdkPixbufFromSkBitmap needs to un-premultiply the alpha before (Closed)

Created:
11 years, 5 months ago by tony
Modified:
9 years, 7 months ago
Reviewers:
Dean McNamee, brettw, Nico
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

GdkPixbufFromSkBitmap needs to un-premultiply the alpha before passing off the data to gdk_pixbuf. This is required in the theme code for tinted bitmaps.

Patch Set 1 #

Total comments: 1

Patch Set 2 : skunpremultiply #

Total comments: 8

Patch Set 3 : comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -4 lines) Patch
M base/gfx/gtk_util.cc View 1 2 2 chunks +29 lines, -4 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
tony
11 years, 5 months ago (2009-07-01 02:10:59 UTC) #1
Dean McNamee
How about using SkUnPreMultiply ?
11 years, 5 months ago (2009-07-01 06:32:01 UTC) #2
Nico
Surprise review! http://codereview.chromium.org/150151/diff/1/2 File base/gfx/gtk_util.cc (right): http://codereview.chromium.org/150151/diff/1/2#newcode48 Line 48: divided[i + 2] = (SkColorGetB(pixel) << ...
11 years, 5 months ago (2009-07-06 19:14:56 UTC) #3
tony
Switched to SkUnPreMultiply. Can you take another look?
11 years, 5 months ago (2009-07-07 17:49:17 UTC) #4
tony
ping, anyone?
11 years, 5 months ago (2009-07-08 16:41:23 UTC) #5
Dean McNamee
ok http://codereview.chromium.org/150151/diff/3001/2003 File base/gfx/gtk_util.cc (right): http://codereview.chromium.org/150151/diff/3001/2003#newcode37 Line 37: const int bbp = 4; static const ...
11 years, 5 months ago (2009-07-08 16:46:38 UTC) #6
brettw
http://codereview.chromium.org/150151/diff/3001/2003 File base/gfx/gtk_util.cc (right): http://codereview.chromium.org/150151/diff/3001/2003#newcode37 Line 37: const int bbp = 4; This should be ...
11 years, 5 months ago (2009-07-08 16:47:01 UTC) #7
tony
http://codereview.chromium.org/150151/diff/3001/2003 File base/gfx/gtk_util.cc (right): http://codereview.chromium.org/150151/diff/3001/2003#newcode37 Line 37: const int bbp = 4; On 2009/07/08 16:46:38, ...
11 years, 5 months ago (2009-07-08 17:08:50 UTC) #8
brettw
11 years, 5 months ago (2009-07-08 17:25:05 UTC) #9
LGTM

Powered by Google App Engine
This is Rietveld 408576698