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

Issue 689923004: Use Color Processor for color bitmap text draws on gpu. (Closed)

Created:
6 years, 1 month ago by egdaniel
Modified:
6 years, 1 month ago
Reviewers:
jvanverth1, bsalomon
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Project:
skia
Visibility:
Public.

Description

Use Color Processor for color bitmap text draws on gpu. This change is here since previously color bitmap text was rendered using a geometry processor in the coverage stage. The problem with this is that we cannot correctly do xfer modes with this method. So I now make color bitmap text draw using a color stage in the same was as a draw bitmap call. One issue that arrises from this fix is that we end up adding this final color processor after any previous color processors. Thus if we have a custom blend implemented as a color processor it will be before this text one and we won't blend correctly. This issue will get fixed once an xfer processor is fully implemented. I have hacked a test locally to show that if we can add the text color processor to the begining of the color stages we do blend correctly in all cases (so the xfer processor will be a fix). BUG=skia: Committed: https://skia.googlesource.com/skia/+/ed3af6648ffe1044d6fb3f6deac53711cb1280c8

Patch Set 1 #

Patch Set 2 : Clean up #

Total comments: 5

Patch Set 3 : Update VA names #

Patch Set 4 : Fix Gm flags #

Unified diffs Side-by-side diffs Delta from patch set Stats (+223 lines, -23 lines) Patch
A gm/colortypexfermode.cpp View 1 2 3 1 chunk +174 lines, -0 lines 0 comments Download
M gyp/gmslides.gypi View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M src/gpu/GrBitmapTextContext.cpp View 1 2 7 chunks +48 lines, -23 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
egdaniel
6 years, 1 month ago (2014-10-30 14:54:28 UTC) #2
bsalomon
lgtm w/ minor suggestions. https://codereview.chromium.org/689923004/diff/20001/src/gpu/GrBitmapTextContext.cpp File src/gpu/GrBitmapTextContext.cpp (right): https://codereview.chromium.org/689923004/diff/20001/src/gpu/GrBitmapTextContext.cpp#newcode45 src/gpu/GrBitmapTextContext.cpp:45: extern const GrVertexAttrib gTextVertexWithLCAttribs[] = ...
6 years, 1 month ago (2014-10-30 15:31:11 UTC) #3
jvanverth1
More comments: https://codereview.chromium.org/689923004/diff/20001/src/gpu/GrBitmapTextContext.cpp File src/gpu/GrBitmapTextContext.cpp (right): https://codereview.chromium.org/689923004/diff/20001/src/gpu/GrBitmapTextContext.cpp#newcode45 src/gpu/GrBitmapTextContext.cpp:45: extern const GrVertexAttrib gTextVertexWithLCAttribs[] = { On ...
6 years, 1 month ago (2014-10-30 18:19:43 UTC) #4
egdaniel
https://codereview.chromium.org/689923004/diff/20001/src/gpu/GrBitmapTextContext.cpp File src/gpu/GrBitmapTextContext.cpp (right): https://codereview.chromium.org/689923004/diff/20001/src/gpu/GrBitmapTextContext.cpp#newcode45 src/gpu/GrBitmapTextContext.cpp:45: extern const GrVertexAttrib gTextVertexWithLCAttribs[] = { On 2014/10/30 18:19:43, ...
6 years, 1 month ago (2014-10-30 19:22:20 UTC) #5
bsalomon
On 2014/10/30 19:22:20, egdaniel wrote: > https://codereview.chromium.org/689923004/diff/20001/src/gpu/GrBitmapTextContext.cpp > File src/gpu/GrBitmapTextContext.cpp (right): > > https://codereview.chromium.org/689923004/diff/20001/src/gpu/GrBitmapTextContext.cpp#newcode45 > ...
6 years, 1 month ago (2014-10-30 19:51:01 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/689923004/60001
6 years, 1 month ago (2014-10-31 13:12:24 UTC) #8
commit-bot: I haz the power
6 years, 1 month ago (2014-10-31 13:55:52 UTC) #9
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as ed3af6648ffe1044d6fb3f6deac53711cb1280c8

Powered by Google App Engine
This is Rietveld 408576698