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

Issue 7142049: Remove default implementation of GrEffect::isEqual. Make GrSingleTextureEffect abstract. (Closed)

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

Description

Remove default implementation of GrEffect::isEqual. Make GrSingleTextureEffect abstract. Committed: https://code.google.com/p/skia/source/detail?r=7254

Patch Set 1 #

Patch Set 2 : #

Total comments: 12
Unified diffs Side-by-side diffs Delta from patch set Stats (+258 lines, -319 lines) Patch
M gm/texdata.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M gyp/gpu.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M include/gpu/GrEffect.h View 2 chunks +28 lines, -13 lines 8 comments Download
M include/gpu/GrEffectStage.h View 1 chunk +0 lines, -4 lines 2 comments Download
M src/core/SkBitmapProcShader.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M src/effects/SkBlendImageFilter.cpp View 3 chunks +6 lines, -3 lines 0 comments Download
M src/effects/SkColorMatrixFilter.cpp View 1 2 chunks +5 lines, -5 lines 0 comments Download
M src/effects/SkDisplacementMapEffect.cpp View 3 chunks +8 lines, -4 lines 0 comments Download
M src/effects/SkLightingImageFilter.cpp View 1 7 chunks +15 lines, -12 lines 0 comments Download
M src/effects/SkMagnifierImageFilter.cpp View 4 chunks +11 lines, -5 lines 0 comments Download
M src/effects/SkMatrixConvolutionImageFilter.cpp View 3 chunks +4 lines, -3 lines 0 comments Download
M src/effects/SkMorphologyImageFilter.cpp View 2 chunks +11 lines, -3 lines 0 comments Download
M src/effects/SkTableColorFilter.cpp View 2 chunks +4 lines, -3 lines 0 comments Download
M src/effects/gradients/SkGradientShader.cpp View 1 1 chunk +18 lines, -0 lines 0 comments Download
M src/effects/gradients/SkGradientShaderPriv.h View 2 chunks +4 lines, -14 lines 0 comments Download
M src/effects/gradients/SkTwoPointConicalGradient.cpp View 2 chunks +8 lines, -7 lines 0 comments Download
M src/effects/gradients/SkTwoPointRadialGradient.cpp View 2 chunks +8 lines, -7 lines 0 comments Download
M src/gpu/GrContext.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M src/gpu/GrDrawState.h View 3 chunks +4 lines, -4 lines 0 comments Download
M src/gpu/GrEffect.cpp View 1 chunk +0 lines, -12 lines 0 comments Download
M src/gpu/SkGpuDevice.cpp View 9 chunks +9 lines, -8 lines 0 comments Download
M src/gpu/effects/GrConfigConversionEffect.h View 2 chunks +4 lines, -1 line 0 comments Download
M src/gpu/effects/GrConfigConversionEffect.cpp View 3 chunks +11 lines, -3 lines 0 comments Download
M src/gpu/effects/GrConvolutionEffect.h View 2 chunks +8 lines, -1 line 0 comments Download
M src/gpu/effects/GrConvolutionEffect.cpp View 1 chunk +3 lines, -4 lines 0 comments Download
A + src/gpu/effects/GrSimpleTextureEffect.h View 1 1 chunk +27 lines, -34 lines 0 comments Download
A + src/gpu/effects/GrSimpleTextureEffect.cpp View 1 4 chunks +14 lines, -44 lines 0 comments Download
M src/gpu/effects/GrSingleTextureEffect.h View 1 chunk +25 lines, -37 lines 2 comments Download
M src/gpu/effects/GrSingleTextureEffect.cpp View 2 chunks +0 lines, -78 lines 0 comments Download
M src/gpu/effects/GrTextureDomainEffect.h View 2 chunks +3 lines, -1 line 0 comments Download
M src/gpu/effects/GrTextureDomainEffect.cpp View 3 chunks +12 lines, -3 lines 0 comments Download

Messages

Total messages: 4
bsalomon
As I've been working on the GrEffectRef stuff I've noticed two related problems. It is ...
11 years, 11 months ago (2013-01-17 15:17:09 UTC) #1
bsalomon
https://codereview.appspot.com/7142049/diff/2001/include/gpu/GrEffectStage.h File include/gpu/GrEffectStage.h (right): https://codereview.appspot.com/7142049/diff/2001/include/gpu/GrEffectStage.h#newcode42 include/gpu/GrEffectStage.h:42: if (!this->getEffect()->isEqual(*other.getEffect())) { I don't understand why this if ...
11 years, 11 months ago (2013-01-17 15:18:20 UTC) #2
robertphillips
lgtm + nits https://codereview.appspot.com/7142049/diff/2001/include/gpu/GrEffect.h File include/gpu/GrEffect.h (right): https://codereview.appspot.com/7142049/diff/2001/include/gpu/GrEffect.h#newcode107 include/gpu/GrEffect.h:107: /** Returns true if this and ...
11 years, 11 months ago (2013-01-17 16:35:02 UTC) #3
bsalomon
11 years, 11 months ago (2013-01-17 16:50:07 UTC) #4
https://codereview.appspot.com/7142049/diff/2001/include/gpu/GrEffect.h
File include/gpu/GrEffect.h (right):

https://codereview.appspot.com/7142049/diff/2001/include/gpu/GrEffect.h#newco...
include/gpu/GrEffect.h:107: /** Returns true if this and other effect
conservatively draw identically. It can only return
On 2013/01/17 16:35:02, robertphillips wrote:
> subclass subclass

Done.

https://codereview.appspot.com/7142049/diff/2001/include/gpu/GrEffect.h#newco...
include/gpu/GrEffect.h:113: computed by the GrBackendEffectFactory:
On 2013/01/17 16:35:02, robertphillips wrote:
> that might be worth wrapping in a helper function

We don't really do this. We compute a bigger key for the whole program that
includes the stage key and compare that.

https://codereview.appspot.com/7142049/diff/2001/include/gpu/GrEffect.h#newco...
include/gpu/GrEffect.h:124: for (int i = 0; i < this->numTextures(); ++i) {
On 2013/01/17 16:35:02, robertphillips wrote:
> [0] -> [i]
nice catch.

https://codereview.appspot.com/7142049/diff/2001/include/gpu/GrEffect.h#newco...
include/gpu/GrEffect.h:180: /** Subclass implements this to support isEqual().
It will only be called if it is known that
On 2013/01/17 16:35:02, robertphillips wrote:
> subclass subclass

Done.

https://codereview.appspot.com/7142049/diff/2001/src/gpu/effects/GrSingleText...
File src/gpu/effects/GrSingleTextureEffect.h (right):

https://codereview.appspot.com/7142049/diff/2001/src/gpu/effects/GrSingleText...
src/gpu/effects/GrSingleTextureEffect.h:16: /**
On 2013/01/17 16:35:02, robertphillips wrote:
> An -> A

Done.
Sign in to reply to this message.

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