Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(44)

Issue 7214045: Remove getter of writable GrEffectStage from GrDrawState. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 9 months ago by bsalomon
Modified:
11 years, 9 months ago
Reviewers:
JimVV, robertphillips
CC:
skia-review_googlegroups.com
Base URL:
http://skia.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Remove getter of writable GrEffectStage from GrDrawState. Upcoming changes will require GrDrawState to know things about the set of installed effects. Thus all setting of effects must go through a GrDrawState function (setEffect()). This change accomplishes that. Committed: https://code.google.com/p/skia/source/detail?r=7411

Patch Set 1 #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+85 lines, -112 lines) Patch
M include/gpu/GrContext.h View 1 chunk +11 lines, -8 lines 0 comments Download
M src/gpu/GrClipMaskManager.cpp View 2 chunks +3 lines, -5 lines 0 comments Download
M src/gpu/GrContext.cpp View 10 chunks +34 lines, -44 lines 6 comments Download
M src/gpu/GrDrawState.h View 5 chunks +9 lines, -20 lines 0 comments Download
M src/gpu/GrDrawState.cpp View 6 chunks +11 lines, -7 lines 0 comments Download
M src/gpu/GrSWMaskHelper.cpp View 2 chunks +0 lines, -2 lines 0 comments Download
M src/gpu/GrTextContext.cpp View 2 chunks +0 lines, -3 lines 0 comments Download
M src/gpu/effects/GrConfigConversionEffect.h View 1 chunk +4 lines, -5 lines 0 comments Download
M src/gpu/effects/GrConfigConversionEffect.cpp View 1 chunk +9 lines, -12 lines 0 comments Download
M tests/GLProgramsTest.cpp View 1 chunk +4 lines, -6 lines 0 comments Download

Messages

Total messages: 5
bsalomon
All of the GrEffectStage::reset() calls were no longer necessary. They were there from a time ...
11 years, 9 months ago (2013-01-25 16:25:34 UTC) #1
JimVV
I don't know enough to say it looks good, but it makes sense. What replaces ...
11 years, 9 months ago (2013-01-25 17:39:51 UTC) #2
bsalomon
On 2013/01/25 17:39:51, JimVV wrote: > I don't know enough to say it looks good, ...
11 years, 9 months ago (2013-01-25 17:48:23 UTC) #3
robertphillips
lgtm + nits https://codereview.appspot.com/7214045/diff/1/src/gpu/GrContext.cpp File src/gpu/GrContext.cpp (right): https://codereview.appspot.com/7214045/diff/1/src/gpu/GrContext.cpp#newcode1391 src/gpu/GrContext.cpp:1391: effect.reset(this->createPMToUPMEffect(src, swapRAndB, textureMatrix)); NULL != effect? ...
11 years, 9 months ago (2013-01-25 18:14:48 UTC) #4
bsalomon
11 years, 9 months ago (2013-01-28 14:26:16 UTC) #5
https://codereview.appspot.com/7214045/diff/1/src/gpu/GrContext.cpp
File src/gpu/GrContext.cpp (right):

https://codereview.appspot.com/7214045/diff/1/src/gpu/GrContext.cpp#newcode1391
src/gpu/GrContext.cpp:1391: effect.reset(this->createPMToUPMEffect(src,
swapRAndB, textureMatrix));
On 2013/01/25 18:14:48, robertphillips wrote:
> NULL != effect?

Done.

https://codereview.appspot.com/7214045/diff/1/src/gpu/GrContext.cpp#newcode1397
src/gpu/GrContext.cpp:1397: // there is no longer any point to using the
scratch.
On 2013/01/25 18:14:48, robertphillips wrote:
> NULL != effect?

Done.

https://codereview.appspot.com/7214045/diff/1/src/gpu/GrContext.cpp#newcode1597
src/gpu/GrContext.cpp:1597: effect.reset(this->createUPMToPMEffect(texture,
swapRAndB, textureMatrix));
On 2013/01/25 18:14:48, robertphillips wrote:
> NULL == effect?

Done.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b