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

Issue 45363002: Fix for issue 1728: raster vs. gpu text draws with the wrong color (Closed)

Created:
7 years, 1 month ago by jvanverth1
Modified:
7 years, 1 month ago
Reviewers:
bsalomon
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

Fix for issue 1728: raster vs. gpu text draws with the wrong color The blend mode for LCD text was not set up correctly when using colors with alpha. This takes the color's alpha value into account when setting up the blending function. BUG=Skia:1728 Committed: http://code.google.com/p/skia/source/detail?r=11980

Patch Set 1 #

Patch Set 2 : Store un-premultiplied color, and remove two-pass method. #

Patch Set 3 : Missed a color conversion #

Total comments: 4

Patch Set 4 : Rebase to ToT #

Patch Set 5 : Remove unnecessary code; use SkColor instead of GrColor #

Patch Set 6 : Fix alpha calculation #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -9 lines) Patch
M include/gpu/GrBitmapTextContext.h View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M src/gpu/GrBitmapTextContext.cpp View 1 2 3 4 5 5 chunks +22 lines, -6 lines 0 comments Download
M src/gpu/SkGpuDevice.cpp View 1 2 3 4 2 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
jvanverth1
7 years, 1 month ago (2013-10-25 20:16:05 UTC) #1
jvanverth1
Replaced the two-pass method with the unpremultiplied color, single pass method we talked about.
7 years, 1 month ago (2013-10-25 21:27:50 UTC) #2
bsalomon
https://codereview.chromium.org/45363002/diff/50005/include/gpu/GrBitmapTextContext.h File include/gpu/GrBitmapTextContext.h (right): https://codereview.chromium.org/45363002/diff/50005/include/gpu/GrBitmapTextContext.h#newcode20 include/gpu/GrBitmapTextContext.h:20: GrBitmapTextContext(GrContext*, const GrPaint&, GrColor); Since everywhere else GrColor is ...
7 years, 1 month ago (2013-10-28 13:12:21 UTC) #3
jvanverth1
https://codereview.chromium.org/45363002/diff/50005/include/gpu/GrBitmapTextContext.h File include/gpu/GrBitmapTextContext.h (right): https://codereview.chromium.org/45363002/diff/50005/include/gpu/GrBitmapTextContext.h#newcode20 include/gpu/GrBitmapTextContext.h:20: GrBitmapTextContext(GrContext*, const GrPaint&, GrColor); On 2013/10/28 13:12:21, bsalomon wrote: ...
7 years, 1 month ago (2013-10-28 14:00:52 UTC) #4
jvanverth1
Fixed the alpha issue, and removed the nonpremultcolor function from SkGr.h because it was getting ...
7 years, 1 month ago (2013-10-28 14:48:06 UTC) #5
bsalomon
lgtm
7 years, 1 month ago (2013-10-28 15:00:16 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/jvanverth@google.com/45363002/240002
7 years, 1 month ago (2013-10-28 15:02:50 UTC) #7
commit-bot: I haz the power
7 years, 1 month ago (2013-10-28 15:13:53 UTC) #8
Message was sent while issue was closed.
Change committed as 11980

Powered by Google App Engine
This is Rietveld 408576698