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

Issue 16952006: Replace fixed-size array of effect stages in GrDrawState with two appendable arrays, one for color,… (Closed)

Created:
7 years, 6 months ago by bsalomon
Modified:
7 years, 6 months ago
Reviewers:
robertphillips
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

Replace fixed-size array of effect stages in GrDrawState with two appendable arrays, one for color, one for coverage. R=robertphillips@google.com Committed: https://code.google.com/p/skia/source/detail?r=9592

Patch Set 1 #

Patch Set 2 : wrap comment #

Total comments: 7

Patch Set 3 : rebase #

Patch Set 4 : fix comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+468 lines, -471 lines) Patch
M include/gpu/GrContext.h View 1 chunk +2 lines, -1 line 0 comments Download
M include/gpu/GrEffectStage.h View 8 chunks +42 lines, -54 lines 0 comments Download
M src/gpu/GrAAConvexPathRenderer.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/GrAAHairLinePathRenderer.cpp View 1 chunk +17 lines, -14 lines 0 comments Download
M src/gpu/GrAARectRenderer.cpp View 2 chunks +2 lines, -16 lines 0 comments Download
M src/gpu/GrClipMaskManager.h View 3 chunks +2 lines, -2 lines 0 comments Download
M src/gpu/GrClipMaskManager.cpp View 6 chunks +7 lines, -8 lines 0 comments Download
M src/gpu/GrContext.cpp View 1 2 3 17 chunks +36 lines, -23 lines 0 comments Download
M src/gpu/GrDrawState.h View 1 2 3 14 chunks +151 lines, -154 lines 0 comments Download
M src/gpu/GrDrawState.cpp View 11 chunks +113 lines, -100 lines 0 comments Download
M src/gpu/GrDrawTarget.h View 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/GrDrawTarget.cpp View 2 chunks +16 lines, -9 lines 0 comments Download
M src/gpu/GrGpu.h View 1 chunk +3 lines, -1 line 0 comments Download
M src/gpu/GrGpu.cpp View 3 chunks +8 lines, -5 lines 0 comments Download
M src/gpu/GrOvalRenderer.cpp View 5 chunks +5 lines, -25 lines 0 comments Download
M src/gpu/GrSWMaskHelper.cpp View 2 chunks +2 lines, -3 lines 0 comments Download
M src/gpu/GrTextContext.cpp View 2 chunks +5 lines, -7 lines 0 comments Download
M src/gpu/gl/GrGLProgramDesc.cpp View 5 chunks +53 lines, -43 lines 0 comments Download
M src/gpu/gl/debug/GrFrameBufferObj.cpp View 1 chunk +1 line, -1 line 0 comments Download
M tests/GLProgramsTest.cpp View 2 chunks +1 line, -3 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
bsalomon
7 years, 6 months ago (2013-06-13 14:42:40 UTC) #1
robertphillips
lgtm + some nits + questions Overall I think it looks much cleaner then the ...
7 years, 6 months ago (2013-06-13 15:49:04 UTC) #2
bsalomon
Committed patchset #4 manually as r9592 (presubmit successful).
7 years, 6 months ago (2013-06-13 19:34:55 UTC) #3
bsalomon
7 years, 6 months ago (2013-06-13 19:36:12 UTC) #4
Message was sent while issue was closed.
https://codereview.chromium.org/16952006/diff/2001/src/gpu/GrContext.cpp
File src/gpu/GrContext.cpp (right):

https://codereview.chromium.org/16952006/diff/2001/src/gpu/GrContext.cpp#newc...
src/gpu/GrContext.cpp:1557: AutoRestoreEffects* are) {
On 2013/06/13 15:49:04, robertphillips wrote:
> are should -> should

Done.

https://codereview.chromium.org/16952006/diff/2001/src/gpu/GrDrawState.cpp
File src/gpu/GrDrawState.cpp (right):

https://codereview.chromium.org/16952006/diff/2001/src/gpu/GrDrawState.cpp#ne...
src/gpu/GrDrawState.cpp:408: fDrawState->fCommon.fViewMatrix = fViewMatrix;
On 2013/06/13 15:49:04, robertphillips wrote:
> Should this be ==?

No.. it's ok to have added new effects after installing this object. The point
here is to remove the added effects and only leave the effects that were present
when this was installed. But it'd be bad to have removed effects (which can only
be done by reset(), copy cons/op=, or setFromPaint(), or another instance of
this auto-restore object).

https://codereview.chromium.org/16952006/diff/2001/src/gpu/GrDrawState.h
File src/gpu/GrDrawState.h (right):

https://codereview.chromium.org/16952006/diff/2001/src/gpu/GrDrawState.h#newc...
src/gpu/GrDrawState.h:340: /// @name Effect Stages
On 2013/06/13 15:49:04, robertphillips wrote:
> hosts -> host
> output color -> output color or coverage

Done.

Powered by Google App Engine
This is Rietveld 408576698