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

Issue 712223002: Combine similar DrawPaths calls in GrInOrderDrawBuffer (Closed)

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

Description

Combine similar DrawPaths calls in GrInOrderDrawBuffer Combines adjacent DrawPaths commands into one single call when a conservative set of conditions are met. The end result is that whole paragraphs can be drawn with a single call to gliStencilThenCoverFillPathInstancedNV(), rather than one call for each line. BUG=skia: Committed: https://skia.googlesource.com/skia/+/3fc6a2fdb260aa85ad724d575afede2c00db111b

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 7

Patch Set 4 : SkTDArray, willEffectReadDstColor() #

Total comments: 1

Patch Set 5 : Use willBlendWithDst #

Total comments: 2

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+107 lines, -42 lines) Patch
M expectations/gm/ignored-tests.txt View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M src/gpu/GrClipMaskManager.h View 1 chunk +2 lines, -2 lines 0 comments Download
M src/gpu/GrInOrderDrawBuffer.h View 1 2 3 4 5 11 chunks +15 lines, -11 lines 0 comments Download
M src/gpu/GrInOrderDrawBuffer.cpp View 1 2 3 4 5 6 chunks +86 lines, -29 lines 0 comments Download

Messages

Total messages: 20 (3 generated)
Chris Dalton
https://codereview.chromium.org/712223002/diff/40001/src/gpu/GrDrawState.h File src/gpu/GrDrawState.h (right): https://codereview.chromium.org/712223002/diff/40001/src/gpu/GrDrawState.h#newcode148 src/gpu/GrDrawState.h:148: bool srcAlphaWillBeOne() const; Move here to make public
6 years, 1 month ago (2014-11-11 00:44:45 UTC) #2
bsalomon
https://codereview.chromium.org/712223002/diff/40001/src/gpu/GrInOrderDrawBuffer.cpp File src/gpu/GrInOrderDrawBuffer.cpp (right): https://codereview.chromium.org/712223002/diff/40001/src/gpu/GrInOrderDrawBuffer.cpp#newcode375 src/gpu/GrInOrderDrawBuffer.cpp:375: draw_state_is_opaque(this->getDrawState())) { Could/should you check that the b.boxes don't ...
6 years, 1 month ago (2014-11-11 14:41:25 UTC) #4
Chris Dalton
https://codereview.chromium.org/712223002/diff/40001/src/gpu/GrInOrderDrawBuffer.cpp File src/gpu/GrInOrderDrawBuffer.cpp (right): https://codereview.chromium.org/712223002/diff/40001/src/gpu/GrInOrderDrawBuffer.cpp#newcode375 src/gpu/GrInOrderDrawBuffer.cpp:375: draw_state_is_opaque(this->getDrawState())) { On 2014/11/11 14:41:25, bsalomon wrote: > Could/should ...
6 years, 1 month ago (2014-11-11 17:49:07 UTC) #5
mtklein
> * SkTDArray doesn't grow exponentially, and only barely grows enough to squeeze > in ...
6 years, 1 month ago (2014-11-11 18:24:16 UTC) #6
egdaniel
https://codereview.chromium.org/712223002/diff/40001/src/gpu/GrInOrderDrawBuffer.cpp File src/gpu/GrInOrderDrawBuffer.cpp (right): https://codereview.chromium.org/712223002/diff/40001/src/gpu/GrInOrderDrawBuffer.cpp#newcode119 src/gpu/GrInOrderDrawBuffer.cpp:119: static bool draw_state_is_opaque(const GrDrawState& drawState) { I don't believe ...
6 years, 1 month ago (2014-11-11 18:39:07 UTC) #7
bsalomon
On 2014/11/11 17:49:07, Chris Dalton wrote: > https://codereview.chromium.org/712223002/diff/40001/src/gpu/GrInOrderDrawBuffer.cpp > File src/gpu/GrInOrderDrawBuffer.cpp (right): > > https://codereview.chromium.org/712223002/diff/40001/src/gpu/GrInOrderDrawBuffer.cpp#newcode375 ...
6 years, 1 month ago (2014-11-11 18:41:53 UTC) #8
Chris Dalton
Ok, I missed that second "fReserve += fReserve / 4;" line. I'll switch to SkTDArray. ...
6 years, 1 month ago (2014-11-11 19:29:16 UTC) #9
Chris Dalton
https://codereview.chromium.org/712223002/diff/60001/src/gpu/GrInOrderDrawBuffer.cpp File src/gpu/GrInOrderDrawBuffer.cpp (right): https://codereview.chromium.org/712223002/diff/60001/src/gpu/GrInOrderDrawBuffer.cpp#newcode127 src/gpu/GrInOrderDrawBuffer.cpp:127: return drawState.willEffectReadDstColor(); My understanding is that this should work. ...
6 years, 1 month ago (2014-11-11 22:34:40 UTC) #10
egdaniel
On 2014/11/11 22:34:40, Chris Dalton wrote: > https://codereview.chromium.org/712223002/diff/60001/src/gpu/GrInOrderDrawBuffer.cpp > File src/gpu/GrInOrderDrawBuffer.cpp (right): > > https://codereview.chromium.org/712223002/diff/60001/src/gpu/GrInOrderDrawBuffer.cpp#newcode127 ...
6 years, 1 month ago (2014-11-11 23:03:50 UTC) #11
Chris Dalton
On 2014/11/11 23:03:50, egdaniel wrote: > On 2014/11/11 22:34:40, Chris Dalton wrote: > > > ...
6 years, 1 month ago (2014-11-11 23:09:47 UTC) #12
egdaniel
On 2014/11/11 23:09:47, Chris Dalton wrote: > On 2014/11/11 23:03:50, egdaniel wrote: > > On ...
6 years, 1 month ago (2014-11-11 23:38:05 UTC) #13
Chris Dalton
On 2014/11/11 23:38:05, egdaniel wrote: > On 2014/11/11 23:09:47, Chris Dalton wrote: > > On ...
6 years, 1 month ago (2014-11-12 05:19:00 UTC) #14
bsalomon
https://codereview.chromium.org/712223002/diff/80001/src/gpu/GrInOrderDrawBuffer.h File src/gpu/GrInOrderDrawBuffer.h (right): https://codereview.chromium.org/712223002/diff/80001/src/gpu/GrInOrderDrawBuffer.h#newcode58 src/gpu/GrInOrderDrawBuffer.h:58: GrGpu* dstGpu() const { return fDstGpu; } Does this ...
6 years, 1 month ago (2014-11-13 17:36:05 UTC) #15
Chris Dalton
https://codereview.chromium.org/712223002/diff/80001/src/gpu/GrInOrderDrawBuffer.h File src/gpu/GrInOrderDrawBuffer.h (right): https://codereview.chromium.org/712223002/diff/80001/src/gpu/GrInOrderDrawBuffer.h#newcode58 src/gpu/GrInOrderDrawBuffer.h:58: GrGpu* dstGpu() const { return fDstGpu; } On 2014/11/13 ...
6 years, 1 month ago (2014-11-13 19:05:43 UTC) #16
bsalomon
lgtm
6 years, 1 month ago (2014-11-13 19:30:58 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/712223002/100001
6 years, 1 month ago (2014-11-13 19:46:46 UTC) #19
commit-bot: I haz the power
6 years, 1 month ago (2014-11-13 19:54:25 UTC) #20
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://skia.googlesource.com/skia/+/3fc6a2fdb260aa85ad724d575afede2c00db111b

Powered by Google App Engine
This is Rietveld 408576698