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

Issue 687563008: Beginning to refactor nvpr code (Closed)

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

Description

Beginning to refactor nvpr code BUG=skia: Committed: https://skia.googlesource.com/skia/+/92e496f96abbd664888f0c8a7d546ab02e703bf7

Patch Set 1 #

Patch Set 2 : cleanups #

Total comments: 6

Patch Set 3 : tiny cleaup #

Patch Set 4 : feedback inc #

Total comments: 1

Patch Set 5 : cleanup #

Total comments: 7
Unified diffs Side-by-side diffs Delta from patch set Stats (+222 lines, -213 lines) Patch
M expectations/gm/ignored-tests.txt View 1 2 3 4 1 chunk +13 lines, -0 lines 0 comments Download
M src/gpu/GrDrawTarget.h View 1 2 3 4 5 chunks +10 lines, -11 lines 0 comments Download
M src/gpu/GrDrawTarget.cpp View 1 2 3 4 3 chunks +5 lines, -50 lines 0 comments Download
M src/gpu/GrGpu.h View 1 2 3 4 2 chunks +5 lines, -4 lines 0 comments Download
M src/gpu/GrGpu.cpp View 1 2 3 4 2 chunks +66 lines, -13 lines 0 comments Download
M src/gpu/GrInOrderDrawBuffer.h View 4 chunks +10 lines, -10 lines 0 comments Download
M src/gpu/GrInOrderDrawBuffer.cpp View 1 2 3 4 3 chunks +5 lines, -3 lines 0 comments Download
M src/gpu/GrPathRendering.h View 3 chunks +17 lines, -3 lines 0 comments Download
M src/gpu/GrStencilAndCoverPathRenderer.cpp View 1 2 5 chunks +44 lines, -9 lines 3 comments Download
M src/gpu/GrStencilAndCoverTextContext.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/gl/GrGLPathRendering.h View 2 chunks +4 lines, -4 lines 0 comments Download
M src/gpu/gl/GrGLPathRendering.cpp View 2 chunks +40 lines, -101 lines 2 comments Download
M src/gpu/gl/GrGpuGL.cpp View 1 2 3 4 2 chunks +2 lines, -4 lines 2 comments Download

Messages

Total messages: 21 (4 generated)
joshualitt
Brian, this is a first step towards cleaning this up. I am seeing 11 gm ...
6 years, 1 month ago (2014-10-30 19:55:33 UTC) #2
joshualitt
6 years, 1 month ago (2014-10-30 19:55:46 UTC) #4
bsalomon
I don't see any obvious reasons that the GMs would change. Do the new images ...
6 years, 1 month ago (2014-10-30 20:11:02 UTC) #5
joshualitt
https://codereview.chromium.org/687563008/diff/20001/src/gpu/GrStencilAndCoverPathRenderer.cpp File src/gpu/GrStencilAndCoverPathRenderer.cpp (right): https://codereview.chromium.org/687563008/diff/20001/src/gpu/GrStencilAndCoverPathRenderer.cpp#newcode86 src/gpu/GrStencilAndCoverPathRenderer.cpp:86: target->stencilPath(p, convert_skpath_filltype(path.getFillType())); On 2014/10/30 20:11:01, bsalomon wrote: > This ...
6 years, 1 month ago (2014-10-30 21:24:34 UTC) #6
joshualitt
On 2014/10/30 21:24:34, joshualitt wrote: > https://codereview.chromium.org/687563008/diff/20001/src/gpu/GrStencilAndCoverPathRenderer.cpp > File src/gpu/GrStencilAndCoverPathRenderer.cpp (right): > > https://codereview.chromium.org/687563008/diff/20001/src/gpu/GrStencilAndCoverPathRenderer.cpp#newcode86 > ...
6 years, 1 month ago (2014-10-31 19:58:43 UTC) #7
bsalomon
lgtm Can you add a comment to GrPathRenderer.h/onStencilPath that the passed to this function will ...
6 years, 1 month ago (2014-10-31 20:06:59 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/687563008/80001
6 years, 1 month ago (2014-10-31 20:48:31 UTC) #10
commit-bot: I haz the power
Committed patchset #5 (id:80001) as 92e496f96abbd664888f0c8a7d546ab02e703bf7
6 years, 1 month ago (2014-10-31 20:56:53 UTC) #11
Kimmo Kinnunen
Some observations, should you need them.. https://codereview.chromium.org/687563008/diff/80001/src/gpu/GrStencilAndCoverPathRenderer.cpp File src/gpu/GrStencilAndCoverPathRenderer.cpp (right): https://codereview.chromium.org/687563008/diff/80001/src/gpu/GrStencilAndCoverPathRenderer.cpp#newcode113 src/gpu/GrStencilAndCoverPathRenderer.cpp:113: drawState->setStencil(kInvertedStencilPass); So this ...
6 years, 1 month ago (2014-11-03 20:39:12 UTC) #13
bsalomon
https://codereview.chromium.org/687563008/diff/80001/src/gpu/GrStencilAndCoverPathRenderer.cpp File src/gpu/GrStencilAndCoverPathRenderer.cpp (right): https://codereview.chromium.org/687563008/diff/80001/src/gpu/GrStencilAndCoverPathRenderer.cpp#newcode113 src/gpu/GrStencilAndCoverPathRenderer.cpp:113: drawState->setStencil(kInvertedStencilPass); On 2014/11/03 20:39:12, Kimmo Kinnunen wrote: > So ...
6 years, 1 month ago (2014-11-03 20:46:08 UTC) #14
bsalomon
https://codereview.chromium.org/687563008/diff/80001/src/gpu/gl/GrGpuGL.cpp File src/gpu/gl/GrGpuGL.cpp (right): https://codereview.chromium.org/687563008/diff/80001/src/gpu/gl/GrGpuGL.cpp#newcode1874 src/gpu/gl/GrGpuGL.cpp:1874: // TODO figure out why we need to flush ...
6 years, 1 month ago (2014-11-03 20:49:34 UTC) #15
Kimmo Kinnunen
On 2014/11/03 20:46:08, bsalomon wrote: > This CL arose out a of a desire to ...
6 years, 1 month ago (2014-11-03 20:50:24 UTC) #16
joshualitt
https://codereview.chromium.org/687563008/diff/80001/src/gpu/GrStencilAndCoverPathRenderer.cpp File src/gpu/GrStencilAndCoverPathRenderer.cpp (right): https://codereview.chromium.org/687563008/diff/80001/src/gpu/GrStencilAndCoverPathRenderer.cpp#newcode113 src/gpu/GrStencilAndCoverPathRenderer.cpp:113: drawState->setStencil(kInvertedStencilPass); On 2014/11/03 20:39:12, Kimmo Kinnunen wrote: > So ...
6 years, 1 month ago (2014-11-03 20:51:47 UTC) #17
Kimmo Kinnunen
On 2014/11/03 20:51:47, joshualitt wrote: > Ahh, so I should explain. It seems very possible ...
6 years, 1 month ago (2014-11-03 21:09:30 UTC) #18
Kimmo Kinnunen
On 2014/11/03 21:09:30, Kimmo Kinnunen wrote: > On 2014/11/03 20:51:47, joshualitt wrote: > > Err, ...
6 years, 1 month ago (2014-11-03 21:12:40 UTC) #19
joshualitt
On 2014/11/03 21:09:30, Kimmo Kinnunen wrote: > Yeah... It's an interesting question: can it? Ahh, ...
6 years, 1 month ago (2014-11-03 21:24:25 UTC) #20
joshualitt
6 years, 1 month ago (2014-11-03 21:29:15 UTC) #21
Message was sent while issue was closed.
On 2014/11/03 21:24:25, joshualitt wrote:
> On 2014/11/03 21:09:30, Kimmo Kinnunen wrote:
> > Yeah... It's an interesting question: can it?
> 
> Ahh, interesting point.  Well, if its not possible to handle the inverse fill
of
> a path at the driver level, then I think that makes an even clearer case for
> performing the fake inverse fill as the stencilAndCoverPathRenderer.
> 
> > 
> > 
> > > Its good to see whatever may have effected the earlier patch, ie the
crash,
> > > seems to have been resolved.  Thanks for providing the link to the
original
> > > commit, it looks like the code I have here should be correct.
> > 
> > Well, that's the kind of reason I actually wrote the comment. Can we know we
> are
> > not affected by the crash, if you didn't know it existed? :)
> 
> True, I meant our bots have some gm miscompares, but I have yet to see any
> crashes across all of our bots, or during any of my local GM runs.  I'll keep
an
> eye out for this and if it resurfaces we'll have to root cause and fix the
> problem.
> 
> > Now all the call sites gained the functionality added here.
> > In other words, the stencilPath, previously, only filled paths.
> > Not that I think it's a problem, I haven't checked. Just tried to ask that
did
> > you intentionally change functionality in a commit that says refactor (which
I
> > interpreted as not intending to change functionality)
> 
> You are correct, and I did not intend to change the functionality anymore than
> necessary.  I could make a separate stencil call for the inverse fill case, if
> you think adding the stroke functionality to the general stencil case will be
> problematic.  For the most part, th

Whoops got cut off, I meant to say "For the most part, this change only changed
a handful of gms in unnoticeable ways.  This does not mean its correct."

Powered by Google App Engine
This is Rietveld 408576698