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

Issue 261773005: Remove SkShader virtual method validContext (Closed)

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

Description

Remove SkShader virtual method validContext patch from issue 267923005 BUG=skia: Committed: http://code.google.com/p/skia/source/detail?r=14573

Patch Set 1 #

Patch Set 2 : address comments, modulo composeshader alpha and resetshadercontext #

Patch Set 3 : create SkTransparentShaderContext to use if the shader context fails to create #

Total comments: 1

Patch Set 4 : correctly call shaderA/B in composeshader #

Unified diffs Side-by-side diffs Delta from patch set Stats (+159 lines, -250 lines) Patch
M include/core/SkColorShader.h View 2 chunks +1 line, -2 lines 0 comments Download
M include/core/SkComposeShader.h View 2 chunks +1 line, -2 lines 0 comments Download
M include/core/SkEmptyShader.h View 3 chunks +6 lines, -12 lines 0 comments Download
M include/core/SkShader.h View 3 chunks +15 lines, -15 lines 0 comments Download
M include/effects/SkPerlinNoiseShader.h View 2 chunks +1 line, -1 line 0 comments Download
M include/effects/SkTransparentShader.h View 2 chunks +3 lines, -2 lines 0 comments Download
M src/core/SkBitmapProcShader.h View 2 chunks +1 line, -4 lines 0 comments Download
M src/core/SkBitmapProcShader.cpp View 1 1 chunk +10 lines, -24 lines 0 comments Download
M src/core/SkBlitter.cpp View 1 2 4 chunks +25 lines, -27 lines 0 comments Download
M src/core/SkComposeShader.cpp View 1 2 3 2 chunks +9 lines, -29 lines 0 comments Download
M src/core/SkDraw.cpp View 2 chunks +4 lines, -9 lines 0 comments Download
M src/core/SkFilterShader.h View 2 chunks +2 lines, -2 lines 0 comments Download
M src/core/SkFilterShader.cpp View 2 chunks +1 line, -9 lines 0 comments Download
M src/core/SkPictureShader.h View 1 3 chunks +24 lines, -22 lines 0 comments Download
M src/core/SkPictureShader.cpp View 1 1 chunk +24 lines, -27 lines 0 comments Download
M src/core/SkShader.cpp View 5 chunks +16 lines, -15 lines 0 comments Download
M src/effects/SkPerlinNoiseShader.cpp View 1 chunk +2 lines, -5 lines 0 comments Download
M src/effects/SkTransparentShader.cpp View 1 chunk +2 lines, -5 lines 0 comments Download
M src/effects/gradients/SkLinearGradient.h View 2 chunks +1 line, -1 line 0 comments Download
M src/effects/gradients/SkLinearGradient.cpp View 1 chunk +1 line, -5 lines 0 comments Download
M src/effects/gradients/SkRadialGradient.h View 2 chunks +1 line, -1 line 0 comments Download
M src/effects/gradients/SkRadialGradient.cpp View 1 chunk +1 line, -5 lines 0 comments Download
M src/effects/gradients/SkSweepGradient.h View 2 chunks +1 line, -1 line 0 comments Download
M src/effects/gradients/SkSweepGradient.cpp View 1 chunk +1 line, -5 lines 0 comments Download
M src/effects/gradients/SkTwoPointConicalGradient.h View 2 chunks +1 line, -1 line 0 comments Download
M src/effects/gradients/SkTwoPointConicalGradient.cpp View 1 chunk +2 lines, -6 lines 0 comments Download
M src/effects/gradients/SkTwoPointRadialGradient.h View 2 chunks +1 line, -2 lines 0 comments Download
M src/effects/gradients/SkTwoPointRadialGradient.cpp View 1 chunk +2 lines, -11 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
scroggo
All of my comments in https://codereview.chromium.org/267923005/ have been addressed, except for the following: - SkComposeShader ...
6 years, 7 months ago (2014-05-05 16:02:47 UTC) #1
reed1
ptal
6 years, 7 months ago (2014-05-05 18:27:21 UTC) #2
scroggo
lgtm
6 years, 7 months ago (2014-05-05 18:31:13 UTC) #3
reed1
The CQ bit was checked by reed@google.com
6 years, 7 months ago (2014-05-05 18:31:42 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/reed@google.com/261773005/60001
6 years, 7 months ago (2014-05-05 18:32:11 UTC) #5
commit-bot: I haz the power
Change committed as 14573
6 years, 7 months ago (2014-05-05 18:39:27 UTC) #6
mtklein
On 2014/05/05 18:39:27, I haz the power (commit-bot) wrote: > Change committed as 14573 Valgrind ...
6 years, 7 months ago (2014-05-06 13:08:47 UTC) #7
scroggo
6 years, 7 months ago (2014-05-06 14:51:01 UTC) #8
Message was sent while issue was closed.
On 2014/05/06 13:08:47, mtklein wrote:
> On 2014/05/05 18:39:27, I haz the power (commit-bot) wrote:
> > Change committed as 14573
> 
> Valgrind says,
>
http://108.170.220.120:10117/builders/Test-Ubuntu12-ShuttleA-GTX550Ti-x86_64-...
> 
> That is, PictureShader is leaking its underlying BitmapShader.  This CL is the
> likely culprit.  Is it possible the Context* is not being deleted?

reed@ has submitted what he believes to be the fix here:
https://codereview.chromium.org/269163004

Watching it go through the buildbots...

Powered by Google App Engine
This is Rietveld 408576698