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

Issue 406523003: Send less transform data when drawing text with nvpr (Closed)

Created:
6 years, 5 months ago by Chris Dalton
Modified:
6 years, 5 months ago
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@clupload-pathrange
Project:
skia
Visibility:
Public.

Description

Send less transform data when drawing text with nvpr Before this change, GrStencilAndCoverTextContext would send 6-float affine transforms to drawPaths for every glyph. This updates it to concat the text scale onto the context matrix, and then only send 2-float translates (or 1-float x-translates when possible). Also adds a glyph_pos_align test to gm that exercises the newly added codepaths, and starts ignoring a few gm tests with benign pixel diffs until we can rebaseline. BUG=skia: Committed: https://skia.googlesource.com/skia/+/b2808cd0411b5860f04f1364138674463768e414

Patch Set 1 #

Total comments: 3

Patch Set 2 : Rebaseline ignored tests and add #

Patch Set 3 : Fix simple compiler warnings on other builds #

Patch Set 4 : Really fix compiler warnings #

Unified diffs Side-by-side diffs Delta from patch set Stats (+198 lines, -41 lines) Patch
M expectations/gm/ignored-tests.txt View 1 1 chunk +11 lines, -0 lines 0 comments Download
A gm/glyph_pos_align.cpp View 1 2 3 1 chunk +99 lines, -0 lines 0 comments Download
M gyp/gmslides.gypi View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/gpu/GrStencilAndCoverTextContext.h View 2 chunks +12 lines, -3 lines 0 comments Download
M src/gpu/GrStencilAndCoverTextContext.cpp View 1 10 chunks +75 lines, -38 lines 0 comments Download

Messages

Total messages: 31 (0 generated)
Chris Dalton
https://codereview.chromium.org/406523003/diff/1/src/gpu/GrStencilAndCoverTextContext.cpp File src/gpu/GrStencilAndCoverTextContext.cpp (right): https://codereview.chromium.org/406523003/diff/1/src/gpu/GrStencilAndCoverTextContext.cpp#newcode266 src/gpu/GrStencilAndCoverTextContext.cpp:266: } else { We could do a translate-x here ...
6 years, 5 months ago (2014-07-18 22:23:30 UTC) #1
bsalomon
Adding Jim.
6 years, 5 months ago (2014-07-21 14:13:14 UTC) #2
jvanverth1
lgtm + 1 comment https://codereview.chromium.org/406523003/diff/1/src/gpu/GrStencilAndCoverTextContext.cpp File src/gpu/GrStencilAndCoverTextContext.cpp (right): https://codereview.chromium.org/406523003/diff/1/src/gpu/GrStencilAndCoverTextContext.cpp#newcode266 src/gpu/GrStencilAndCoverTextContext.cpp:266: } else { On 2014/07/18 ...
6 years, 5 months ago (2014-07-21 17:23:13 UTC) #3
jvanverth1
On 2014/07/21 17:23:13, jvanverth1 wrote: > lgtm + 1 comment > > https://codereview.chromium.org/406523003/diff/1/src/gpu/GrStencilAndCoverTextContext.cpp > File ...
6 years, 5 months ago (2014-07-21 17:37:45 UTC) #4
bungeman-skia
https://codereview.chromium.org/406523003/diff/1/src/gpu/GrStencilAndCoverTextContext.cpp File src/gpu/GrStencilAndCoverTextContext.cpp (right): https://codereview.chromium.org/406523003/diff/1/src/gpu/GrStencilAndCoverTextContext.cpp#newcode266 src/gpu/GrStencilAndCoverTextContext.cpp:266: } else { On 2014/07/18 22:23:30, Chris Dalton wrote: ...
6 years, 5 months ago (2014-07-21 17:51:28 UTC) #5
Chris Dalton
On 2014/07/21 17:51:28, bungeman1 wrote: > https://codereview.chromium.org/406523003/diff/1/src/gpu/GrStencilAndCoverTextContext.cpp > File src/gpu/GrStencilAndCoverTextContext.cpp (right): > > https://codereview.chromium.org/406523003/diff/1/src/gpu/GrStencilAndCoverTextContext.cpp#newcode266 > ...
6 years, 5 months ago (2014-07-21 18:03:27 UTC) #6
bungeman-skia
On 2014/07/21 18:03:27, Chris Dalton wrote: > On 2014/07/21 17:51:28, bungeman1 wrote: > > > ...
6 years, 5 months ago (2014-07-21 18:50:51 UTC) #7
bungeman-skia
On 2014/07/21 18:50:51, bungeman1 wrote: > On 2014/07/21 18:03:27, Chris Dalton wrote: > > On ...
6 years, 5 months ago (2014-07-21 18:59:09 UTC) #8
Chris Dalton
> Forget all that, turns out we do have the glyph advances in the device ...
6 years, 5 months ago (2014-07-23 19:48:52 UTC) #9
bungeman-skia
On 2014/07/23 19:48:52, Chris Dalton wrote: > > Forget all that, turns out we do ...
6 years, 5 months ago (2014-07-23 20:00:40 UTC) #10
Chris Dalton
Ok. I'll go ahead and submit then. One more question: how do I handle the ...
6 years, 5 months ago (2014-07-23 21:07:43 UTC) #11
bungeman-skia
On 2014/07/23 21:07:43, Chris Dalton wrote: > Ok. I'll go ahead and submit then. One ...
6 years, 5 months ago (2014-07-23 21:15:49 UTC) #12
Chris Dalton
On 2014/07/23 21:15:49, bungeman1 wrote: > if that's the case we may also need to ...
6 years, 5 months ago (2014-07-24 21:04:55 UTC) #13
bungeman-skia
On 2014/07/24 21:04:55, Chris Dalton wrote: > On 2014/07/23 21:15:49, bungeman1 wrote: > > if ...
6 years, 5 months ago (2014-07-25 18:54:58 UTC) #14
Chris Dalton
On 2014/07/25 18:54:58, bungeman1 wrote: > On 2014/07/24 21:04:55, Chris Dalton wrote: > > On ...
6 years, 5 months ago (2014-07-25 18:57:29 UTC) #15
bungeman-skia
On 2014/07/25 18:57:29, Chris Dalton wrote: > On 2014/07/25 18:54:58, bungeman1 wrote: > > On ...
6 years, 5 months ago (2014-07-25 19:26:26 UTC) #16
Chris Dalton
The CQ bit was checked by cdalton@nvidia.com
6 years, 5 months ago (2014-07-25 20:06:49 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/cdalton@nvidia.com/406523003/20001
6 years, 5 months ago (2014-07-25 20:07:06 UTC) #18
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-25 20:07:18 UTC) #19
commit-bot: I haz the power
Failed to apply patch for expectations/gm/ignored-tests.txt: While running git apply --index -p1; error: patch failed: ...
6 years, 5 months ago (2014-07-25 20:07:23 UTC) #20
Chris Dalton
The CQ bit was checked by cdalton@nvidia.com
6 years, 5 months ago (2014-07-25 20:17:13 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/cdalton@nvidia.com/406523003/40001
6 years, 5 months ago (2014-07-25 20:18:11 UTC) #22
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: Build-Ubuntu13.10-GCC4.8-x86_64-Release-Trybot on tryserver.skia ...
6 years, 5 months ago (2014-07-25 20:30:20 UTC) #23
Chris Dalton
The CQ bit was checked by cdalton@nvidia.com
6 years, 5 months ago (2014-07-25 20:36:59 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/cdalton@nvidia.com/406523003/60001
6 years, 5 months ago (2014-07-25 20:37:10 UTC) #25
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: Build-Ubuntu13.10-GCC4.8-x86_64-Release-Trybot on tryserver.skia ...
6 years, 5 months ago (2014-07-25 20:48:59 UTC) #26
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-25 20:53:44 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: Build-Ubuntu13.10-GCC4.8-x86_64-Release-Trybot on tryserver.skia (http://108.170.220.76:10117/builders/Build-Ubuntu13.10-GCC4.8-x86_64-Release-Trybot/builds/3408)
6 years, 5 months ago (2014-07-25 20:53:45 UTC) #28
Chris Dalton
The CQ bit was checked by cdalton@nvidia.com
6 years, 5 months ago (2014-07-25 20:59:55 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/cdalton@nvidia.com/406523003/70001
6 years, 5 months ago (2014-07-25 21:00:24 UTC) #30
commit-bot: I haz the power
6 years, 5 months ago (2014-07-25 21:14:02 UTC) #31
Message was sent while issue was closed.
Change committed as b2808cd0411b5860f04f1364138674463768e414

Powered by Google App Engine
This is Rietveld 408576698