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

Issue 207683004: Extract most of the mutable state of SkShader into a separate Context object. (Closed)

Created:
6 years, 9 months ago by Dominik Grewe
Modified:
6 years, 8 months ago
CC:
skia-review_googlegroups.com
Base URL:
https://skia.googlesource.com/skia.git@master
Visibility:
Public.

Description

Extract most of the mutable state of SkShader into a separate Context object. SkShader currently stores some state during draw calls via setContext(...). Move that mutable state into a separate SkShader::Context class that is constructed on demand for the duration of the draw. Calls to setContext() are replaced with createContext() which returns a context corresponding to the shader object or NULL if the parameters to createContext are invalid. TEST=out/Debug/dm BUG=skia:1976 Committed: http://code.google.com/p/skia/source/detail?r=14216 Committed: http://code.google.com/p/skia/source/detail?r=14323

Patch Set 1 #

Patch Set 2 : clean up #

Total comments: 94

Patch Set 3 : scroggo's comments #

Total comments: 12

Patch Set 4 : freeLast reduces fStorageUsed; TriColorShaderContext::setup; totalInverse param to validContext #

Total comments: 6

Patch Set 5 : totalInverse param optional; SkShader::computeTotalInverse; SkBitmapProcShader::validInternal #

Total comments: 8

Patch Set 6 : Remove SkBitmapProcState copy constructor and use pointer instead; nits. #

Total comments: 11

Patch Set 7 : SkGradientShader #

Total comments: 20

Patch Set 8 : fix SkColorShader unflattening; nits #

Patch Set 9 : rebase & cleanup #

Total comments: 35

Patch Set 10 : nits #

Total comments: 2

Patch Set 11 : clean up #

Total comments: 6

Patch Set 12 : Remove comment about local matrix. #

Patch Set 13 : shared caches for gradient shader #

Patch Set 14 : split SkOnceFlag #

Patch Set 15 : rebase; SkPictureShader #

Total comments: 16

Patch Set 16 : const fixes #

Patch Set 17 : add SkGradientShaderBase::getFlags #

Patch Set 18 : SkPictureShader fixes #

Patch Set 19 : fCachedLocalMatrix #

Total comments: 6

Patch Set 20 : rebase & Leon's comments #

Total comments: 8

Patch Set 21 : nits #

Total comments: 1

Patch Set 22 : rebase; fix memory leak in SkGradientShaderBase::getGradientTableBitmap; if -> ifdef #

Patch Set 23 : call virtual SkShader::Context destructor #

Patch Set 24 : remove SkBitmapProcState::endContext #

Patch Set 25 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1664 lines, -1014 lines) Patch
M include/core/SkColorShader.h View 1 2 3 4 5 6 7 8 2 chunks +28 lines, -13 lines 0 comments Download
M include/core/SkComposeShader.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 2 chunks +32 lines, -5 lines 0 comments Download
M include/core/SkEmptyShader.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +17 lines, -9 lines 0 comments Download
M include/core/SkShader.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 5 chunks +91 lines, -76 lines 0 comments Download
M include/effects/SkPerlinNoiseShader.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +26 lines, -14 lines 0 comments Download
M include/effects/SkTransparentShader.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +20 lines, -10 lines 0 comments Download
M src/core/SkBitmapProcShader.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +47 lines, -13 lines 0 comments Download
M src/core/SkBitmapProcShader.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 18 19 11 chunks +80 lines, -38 lines 0 comments Download
M src/core/SkBitmapProcState.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +0 lines, -6 lines 0 comments Download
M src/core/SkBitmapProcState.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 4 chunks +3 lines, -11 lines 0 comments Download
M src/core/SkBlitter.h View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M src/core/SkBlitter.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 9 chunks +180 lines, -97 lines 0 comments Download
M src/core/SkBlitter_A8.cpp View 1 2 5 chunks +16 lines, -13 lines 0 comments Download
M src/core/SkBlitter_ARGB32.cpp View 1 2 23 chunks +39 lines, -37 lines 0 comments Download
M src/core/SkBlitter_RGB16.cpp View 1 2 3 4 5 6 7 8 20 chunks +57 lines, -48 lines 0 comments Download
M src/core/SkCanvas.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 13 chunks +3 lines, -49 lines 0 comments Download
M src/core/SkComposeShader.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 5 chunks +62 lines, -35 lines 0 comments Download
M src/core/SkCoreBlitters.h View 1 2 3 4 5 6 7 8 9 10 4 chunks +25 lines, -5 lines 0 comments Download
M src/core/SkDraw.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 18 19 8 chunks +68 lines, -35 lines 0 comments Download
M src/core/SkFilterShader.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +23 lines, -6 lines 0 comments Download
M src/core/SkFilterShader.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 2 chunks +53 lines, -27 lines 0 comments Download
M src/core/SkPictureShader.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 2 chunks +33 lines, -8 lines 0 comments Download
M src/core/SkPictureShader.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 4 chunks +73 lines, -45 lines 0 comments Download
M src/core/SkShader.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 11 chunks +63 lines, -73 lines 0 comments Download
M src/core/SkSmallAllocator.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +20 lines, -3 lines 0 comments Download
M src/effects/SkPerlinNoiseShader.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 11 chunks +42 lines, -23 lines 0 comments Download
M src/effects/SkTransparentShader.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 18 19 4 chunks +29 lines, -13 lines 0 comments Download
M src/effects/gradients/SkGradientShader.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 11 chunks +141 lines, -132 lines 0 comments Download
M src/effects/gradients/SkGradientShaderPriv.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 5 chunks +63 lines, -20 lines 0 comments Download
M src/effects/gradients/SkLinearGradient.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +17 lines, -3 lines 0 comments Download
M src/effects/gradients/SkLinearGradient.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 6 chunks +34 lines, -19 lines 0 comments Download
M src/effects/gradients/SkRadialGradient.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +18 lines, -4 lines 0 comments Download
M src/effects/gradients/SkRadialGradient.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +36 lines, -14 lines 0 comments Download
M src/effects/gradients/SkSweepGradient.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +19 lines, -3 lines 0 comments Download
M src/effects/gradients/SkSweepGradient.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +24 lines, -6 lines 0 comments Download
M src/effects/gradients/SkTwoPointConicalGradient.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 3 chunks +20 lines, -12 lines 0 comments Download
M src/effects/gradients/SkTwoPointConicalGradient.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 8 chunks +74 lines, -47 lines 0 comments Download
M src/effects/gradients/SkTwoPointRadialGradient.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +22 lines, -6 lines 0 comments Download
M src/effects/gradients/SkTwoPointRadialGradient.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4 chunks +59 lines, -36 lines 0 comments Download

Messages

Total messages: 105 (0 generated)
Dominik Grewe
This is how far I got this week. I've started with your patch but used ...
6 years, 9 months ago (2014-03-21 12:52:50 UTC) #1
Dominik Grewe
cc Tom & Sami
6 years, 9 months ago (2014-03-21 14:46:47 UTC) #2
scroggo
> This is how far I got this week. I've started with your patch Some ...
6 years, 9 months ago (2014-03-24 21:24:46 UTC) #3
Dominik Grewe
Thanks! Updated, ptal. https://codereview.chromium.org/207683004/diff/20001/include/core/SkEmptyShader.h File include/core/SkEmptyShader.h (right): https://codereview.chromium.org/207683004/diff/20001/include/core/SkEmptyShader.h#newcode24 include/core/SkEmptyShader.h:24: virtual size_t contextSize() const SK_OVERRIDE { ...
6 years, 9 months ago (2014-03-26 17:22:21 UTC) #4
scroggo
https://codereview.chromium.org/207683004/diff/20001/include/core/SkEmptyShader.h File include/core/SkEmptyShader.h (right): https://codereview.chromium.org/207683004/diff/20001/include/core/SkEmptyShader.h#newcode24 include/core/SkEmptyShader.h:24: virtual size_t contextSize() const SK_OVERRIDE { return sizeof(SkShader::Context); } ...
6 years, 9 months ago (2014-03-26 23:13:09 UTC) #5
Dominik Grewe
https://codereview.chromium.org/207683004/diff/20001/include/core/SkEmptyShader.h File include/core/SkEmptyShader.h (right): https://codereview.chromium.org/207683004/diff/20001/include/core/SkEmptyShader.h#newcode24 include/core/SkEmptyShader.h:24: virtual size_t contextSize() const SK_OVERRIDE { return sizeof(SkShader::Context); } ...
6 years, 9 months ago (2014-03-27 14:27:20 UTC) #6
scroggo
https://codereview.chromium.org/207683004/diff/20001/src/core/SkBitmapProcShader.cpp File src/core/SkBitmapProcShader.cpp (right): https://codereview.chromium.org/207683004/diff/20001/src/core/SkBitmapProcShader.cpp#newcode119 src/core/SkBitmapProcShader.cpp:119: // TODO(dominikg): Could we have a more light-weight method ...
6 years, 9 months ago (2014-03-27 18:05:33 UTC) #7
Dominik Grewe
https://codereview.chromium.org/207683004/diff/20001/src/core/SkBitmapProcShader.cpp File src/core/SkBitmapProcShader.cpp (right): https://codereview.chromium.org/207683004/diff/20001/src/core/SkBitmapProcShader.cpp#newcode119 src/core/SkBitmapProcShader.cpp:119: // TODO(dominikg): Could we have a more light-weight method ...
6 years, 8 months ago (2014-03-28 18:16:31 UTC) #8
scroggo
https://codereview.chromium.org/207683004/diff/20001/src/core/SkBitmapProcShader.cpp File src/core/SkBitmapProcShader.cpp (right): https://codereview.chromium.org/207683004/diff/20001/src/core/SkBitmapProcShader.cpp#newcode119 src/core/SkBitmapProcShader.cpp:119: // TODO(dominikg): Could we have a more light-weight method ...
6 years, 8 months ago (2014-03-28 20:50:07 UTC) #9
Dominik Grewe
Thanks Leon. I'll look at SkGradientShader next. https://codereview.chromium.org/207683004/diff/20001/src/core/SkBitmapProcShader.cpp File src/core/SkBitmapProcShader.cpp (right): https://codereview.chromium.org/207683004/diff/20001/src/core/SkBitmapProcShader.cpp#newcode119 src/core/SkBitmapProcShader.cpp:119: // TODO(dominikg): ...
6 years, 8 months ago (2014-04-01 10:49:55 UTC) #10
scroggo
https://codereview.chromium.org/207683004/diff/120001/src/core/SkBitmapProcShader.cpp File src/core/SkBitmapProcShader.cpp (right): https://codereview.chromium.org/207683004/diff/120001/src/core/SkBitmapProcShader.cpp#newcode202 src/core/SkBitmapProcShader.cpp:202: fState->~SkBitmapProcState(); A comment explaining why we treat it this ...
6 years, 8 months ago (2014-04-01 18:02:41 UTC) #11
scroggo
https://codereview.chromium.org/207683004/diff/120001/src/core/SkBitmapProcShader.h File src/core/SkBitmapProcShader.h (right): https://codereview.chromium.org/207683004/diff/120001/src/core/SkBitmapProcShader.h#newcode83 src/core/SkBitmapProcShader.h:83: typedef SkSmallAllocator<3, sizeof(SkBitmapProcShader) + On 2014/04/01 18:02:41, scroggo wrote: ...
6 years, 8 months ago (2014-04-02 16:03:13 UTC) #12
Dominik Grewe
I've updated SkGradientShader. The class holds a cache, which I moved to the context, so ...
6 years, 8 months ago (2014-04-02 18:00:48 UTC) #13
scroggo
On 2014/04/02 18:00:48, Dominik Grewe wrote: > I've updated SkGradientShader. The class holds a cache, ...
6 years, 8 months ago (2014-04-02 20:16:52 UTC) #14
Dominik Grewe
On 2014/04/02 20:16:52, scroggo wrote: > On 2014/04/02 18:00:48, Dominik Grewe wrote: > > I've ...
6 years, 8 months ago (2014-04-03 12:12:40 UTC) #15
Dominik Grewe
https://codereview.chromium.org/207683004/diff/120001/src/core/SkBitmapProcShader.h File src/core/SkBitmapProcShader.h (right): https://codereview.chromium.org/207683004/diff/120001/src/core/SkBitmapProcShader.h#newcode44 src/core/SkBitmapProcShader.h:44: // The context takes ownership of the state. On ...
6 years, 8 months ago (2014-04-03 12:12:58 UTC) #16
scroggo
Besides some nits, this cl 1gtm. I'm sure reed@ will want to look over it ...
6 years, 8 months ago (2014-04-03 15:35:53 UTC) #17
Stephen White
Bikeshedding ahoy: to me a Context is an inert data class (essentially a struct) that's ...
6 years, 8 months ago (2014-04-03 16:08:57 UTC) #18
scroggo
On 2014/04/03 16:08:57, Stephen White wrote: > Bikeshedding ahoy: to me a Context is an ...
6 years, 8 months ago (2014-04-03 16:32:34 UTC) #19
Dominik Grewe
On 2014/04/03 16:32:34, scroggo wrote: > On 2014/04/03 16:08:57, Stephen White wrote: > > Bikeshedding ...
6 years, 8 months ago (2014-04-03 17:41:39 UTC) #20
Stephen White
On 2014/04/03 17:41:39, Dominik Grewe wrote: > On 2014/04/03 16:32:34, scroggo wrote: > > On ...
6 years, 8 months ago (2014-04-03 17:52:06 UTC) #21
Dominik Grewe
I've done some benchmarking on my phone (seemed more stable than my Linux workstation) using ...
6 years, 8 months ago (2014-04-03 17:55:53 UTC) #22
scroggo
On 2014/04/03 17:55:53, Dominik Grewe wrote: > I've done some benchmarking on my phone (seemed ...
6 years, 8 months ago (2014-04-03 18:20:51 UTC) #23
Dominik Grewe
On 2014/04/03 18:20:51, scroggo wrote: > On 2014/04/03 17:55:53, Dominik Grewe wrote: > > I've ...
6 years, 8 months ago (2014-04-03 19:01:24 UTC) #24
scroggo
On 2014/04/03 19:01:24, Dominik Grewe wrote: > On 2014/04/03 18:20:51, scroggo wrote: > > On ...
6 years, 8 months ago (2014-04-03 19:14:13 UTC) #25
Dominik Grewe
Thanks for the comments scroggo. @senorblanco: Could you have a look at SkPerlinNoiseShader? https://codereview.chromium.org/207683004/diff/200001/include/core/SkComposeShader.h File ...
6 years, 8 months ago (2014-04-04 10:59:41 UTC) #26
Stephen White
On 2014/04/04 10:59:41, Dominik Grewe wrote: > Thanks for the comments scroggo. > > @senorblanco: ...
6 years, 8 months ago (2014-04-04 11:37:29 UTC) #27
Dominik Grewe
I had a closer look at the performance of the 8% slowdown case. Most of ...
6 years, 8 months ago (2014-04-04 14:29:41 UTC) #28
Dominik Grewe
I noticed that in src/core/SkBitmapShaderTemplate.h we define a class that looks suspiciously like a shader ...
6 years, 8 months ago (2014-04-07 13:36:14 UTC) #29
scroggo
On 2014/04/07 13:36:14, Dominik Grewe wrote: > I noticed that in src/core/SkBitmapShaderTemplate.h we define a ...
6 years, 8 months ago (2014-04-07 13:44:03 UTC) #30
scroggo
https://codereview.chromium.org/207683004/diff/220001/include/core/SkShader.h File include/core/SkShader.h (right): https://codereview.chromium.org/207683004/diff/220001/include/core/SkShader.h#newcode41 include/core/SkShader.h:41: * FIXME: local matrix is moving to SkPaint. I ...
6 years, 8 months ago (2014-04-07 13:44:30 UTC) #31
Dominik Grewe
On 2014/04/07 13:44:03, scroggo wrote: > On 2014/04/07 13:36:14, Dominik Grewe wrote: > > I ...
6 years, 8 months ago (2014-04-07 14:00:30 UTC) #32
Dominik Grewe
https://codereview.chromium.org/207683004/diff/220001/include/core/SkShader.h File include/core/SkShader.h (right): https://codereview.chromium.org/207683004/diff/220001/include/core/SkShader.h#newcode41 include/core/SkShader.h:41: * FIXME: local matrix is moving to SkPaint. On ...
6 years, 8 months ago (2014-04-07 14:04:52 UTC) #33
scroggo
On 2014/04/07 14:04:52, Dominik Grewe wrote: > https://codereview.chromium.org/207683004/diff/220001/include/core/SkShader.h > File include/core/SkShader.h (right): > > https://codereview.chromium.org/207683004/diff/220001/include/core/SkShader.h#newcode41 ...
6 years, 8 months ago (2014-04-07 14:11:53 UTC) #34
Dominik Grewe
On 2014/04/07 14:11:53, scroggo wrote: > On 2014/04/07 14:04:52, Dominik Grewe wrote: > > https://codereview.chromium.org/207683004/diff/220001/include/core/SkShader.h ...
6 years, 8 months ago (2014-04-07 14:41:15 UTC) #35
Dominik Grewe
+reed@ for review.
6 years, 8 months ago (2014-04-07 15:12:49 UTC) #36
reed1
https://codereview.chromium.org/207683004/diff/240001/include/core/SkShader.h File include/core/SkShader.h (right): https://codereview.chromium.org/207683004/diff/240001/include/core/SkShader.h#newcode41 include/core/SkShader.h:41: * FIXME: local matrix is moving to SkPaint. ...
6 years, 8 months ago (2014-04-07 15:35:41 UTC) #37
Dominik Grewe
https://codereview.chromium.org/207683004/diff/240001/include/core/SkShader.h File include/core/SkShader.h (right): https://codereview.chromium.org/207683004/diff/240001/include/core/SkShader.h#newcode41 include/core/SkShader.h:41: * FIXME: local matrix is moving to SkPaint. On ...
6 years, 8 months ago (2014-04-07 15:44:52 UTC) #38
scroggo
On 2014/04/07 15:44:52, Dominik Grewe wrote: > https://codereview.chromium.org/207683004/diff/240001/include/core/SkShader.h > File include/core/SkShader.h (right): > > https://codereview.chromium.org/207683004/diff/240001/include/core/SkShader.h#newcode41 ...
6 years, 8 months ago (2014-04-08 19:55:54 UTC) #39
reed1
change looks as good as it can be for now, congrats. 1. Lets document (well) ...
6 years, 8 months ago (2014-04-09 14:18:09 UTC) #40
Dominik Grewe
On 2014/04/09 14:18:09, reed1 wrote: > change looks as good as it can be for ...
6 years, 8 months ago (2014-04-09 15:59:51 UTC) #41
scroggo
On 2014/04/09 15:59:51, Dominik Grewe wrote: > > 2. What is the performance hit given ...
6 years, 8 months ago (2014-04-09 16:24:11 UTC) #42
Dominik Grewe
On 2014/04/09 16:24:11, scroggo wrote: > On 2014/04/09 15:59:51, Dominik Grewe wrote: > > > ...
6 years, 8 months ago (2014-04-09 16:33:15 UTC) #43
reed1
What is the state of the perf-hit on GradientBench?
6 years, 8 months ago (2014-04-09 20:44:09 UTC) #44
Dominik Grewe
On 2014/04/09 20:44:09, reed1 wrote: > What is the state of the perf-hit on GradientBench? ...
6 years, 8 months ago (2014-04-10 11:37:38 UTC) #45
Dominik Grewe
On 2014/04/10 11:37:38, Dominik Grewe wrote: > On 2014/04/09 20:44:09, reed1 wrote: > > What ...
6 years, 8 months ago (2014-04-10 12:49:37 UTC) #46
reed1
On 2014/04/10 12:49:37, Dominik Grewe wrote: > On 2014/04/10 11:37:38, Dominik Grewe wrote: > > ...
6 years, 8 months ago (2014-04-10 12:57:08 UTC) #47
Dominik Grewe
On 2014/04/09 16:24:11, scroggo wrote: > On 2014/04/09 15:59:51, Dominik Grewe wrote: > > > ...
6 years, 8 months ago (2014-04-10 16:40:39 UTC) #48
Dominik Grewe
I've uploaded my latest version including the shared caches. Had to modify SkOnce a little ...
6 years, 8 months ago (2014-04-10 16:50:29 UTC) #49
scroggo
On 2014/04/10 16:40:39, Dominik Grewe wrote: > On 2014/04/09 16:24:11, scroggo wrote: > > On ...
6 years, 8 months ago (2014-04-10 16:51:54 UTC) #50
Dominik Grewe
On 2014/04/10 16:51:54, scroggo wrote: > On 2014/04/10 16:40:39, Dominik Grewe wrote: > > On ...
6 years, 8 months ago (2014-04-10 16:54:25 UTC) #51
mtklein
> Ah, I see. You can split the SkOnceFlag into a boolean and mutex. Thanks. ...
6 years, 8 months ago (2014-04-10 18:05:39 UTC) #52
mtklein
On 2014/04/10 18:05:39, mtklein wrote: > > Ah, I see. You can split the SkOnceFlag ...
6 years, 8 months ago (2014-04-10 18:08:38 UTC) #53
Dominik Grewe
When rebasing, I realized that there's a new subclass of SkShader: SkPictureShader. That shader references ...
6 years, 8 months ago (2014-04-11 12:39:51 UTC) #54
reed1
api lgtm
6 years, 8 months ago (2014-04-11 12:58:36 UTC) #55
Dominik Grewe
Found a tiny bug that seemed to have cause the performance regressions! I was doing ...
6 years, 8 months ago (2014-04-11 14:52:04 UTC) #56
reed1
On 2014/04/11 14:52:04, Dominik Grewe wrote: > Found a tiny bug that seemed to have ...
6 years, 8 months ago (2014-04-11 14:56:45 UTC) #57
scroggo
https://codereview.chromium.org/207683004/diff/320001/src/core/SkPictureShader.cpp File src/core/SkPictureShader.cpp (right): https://codereview.chromium.org/207683004/diff/320001/src/core/SkPictureShader.cpp#newcode88 src/core/SkPictureShader.cpp:88: SK_DECLARE_STATIC_MUTEX(cachedShaderMutex); Why is this static? https://codereview.chromium.org/207683004/diff/320001/src/core/SkPictureShader.cpp#newcode89 src/core/SkPictureShader.cpp:89: SkAutoMutexAcquire ama(cachedShaderMutex); ...
6 years, 8 months ago (2014-04-11 15:51:43 UTC) #58
Dominik Grewe
On 2014/04/11 14:56:45, reed1 wrote: > On 2014/04/11 14:52:04, Dominik Grewe wrote: > > Found ...
6 years, 8 months ago (2014-04-11 16:23:41 UTC) #59
Dominik Grewe
https://codereview.chromium.org/207683004/diff/320001/src/core/SkPictureShader.cpp File src/core/SkPictureShader.cpp (right): https://codereview.chromium.org/207683004/diff/320001/src/core/SkPictureShader.cpp#newcode88 src/core/SkPictureShader.cpp:88: SK_DECLARE_STATIC_MUTEX(cachedShaderMutex); On 2014/04/11 15:51:45, scroggo wrote: > Why is ...
6 years, 8 months ago (2014-04-11 17:08:21 UTC) #60
scroggo
On 2014/04/11 16:23:41, Dominik Grewe wrote: > This is on my Macbook Air (having issues ...
6 years, 8 months ago (2014-04-11 17:51:35 UTC) #61
Dominik Grewe
On 2014/04/11 17:51:35, scroggo wrote: > On 2014/04/11 16:23:41, Dominik Grewe wrote: > > This ...
6 years, 8 months ago (2014-04-11 18:03:24 UTC) #62
scroggo
On 2014/04/11 18:03:24, Dominik Grewe wrote: > On 2014/04/11 17:51:35, scroggo wrote: > > On ...
6 years, 8 months ago (2014-04-11 18:18:23 UTC) #63
Dominik Grewe
On 2014/04/11 17:51:35, scroggo wrote: > On 2014/04/11 16:23:41, Dominik Grewe wrote: > > This ...
6 years, 8 months ago (2014-04-14 12:46:21 UTC) #64
scroggo
https://codereview.chromium.org/207683004/diff/380001/src/effects/gradients/SkGradientShader.cpp File src/effects/gradients/SkGradientShader.cpp (right): https://codereview.chromium.org/207683004/diff/380001/src/effects/gradients/SkGradientShader.cpp#newcode564 src/effects/gradients/SkGradientShader.cpp:564: SK_DECLARE_STATIC_MUTEX(cacheMutex); Does this need to be static? https://codereview.chromium.org/207683004/diff/380001/src/effects/gradients/SkGradientShader.cpp#newcode566 src/effects/gradients/SkGradientShader.cpp:566: ...
6 years, 8 months ago (2014-04-14 21:11:12 UTC) #65
Dominik Grewe
https://codereview.chromium.org/207683004/diff/380001/src/effects/gradients/SkGradientShader.cpp File src/effects/gradients/SkGradientShader.cpp (right): https://codereview.chromium.org/207683004/diff/380001/src/effects/gradients/SkGradientShader.cpp#newcode564 src/effects/gradients/SkGradientShader.cpp:564: SK_DECLARE_STATIC_MUTEX(cacheMutex); On 2014/04/14 21:11:13, scroggo wrote: > Does this ...
6 years, 8 months ago (2014-04-15 11:46:31 UTC) #66
scroggo
Some small nits and a question for Ben or mtklein on SkOnce, but otherwise this ...
6 years, 8 months ago (2014-04-15 13:09:36 UTC) #67
Dominik Grewe
https://codereview.chromium.org/207683004/diff/430001/src/effects/gradients/SkGradientShader.cpp File src/effects/gradients/SkGradientShader.cpp (right): https://codereview.chromium.org/207683004/diff/430001/src/effects/gradients/SkGradientShader.cpp#newcode468 src/effects/gradients/SkGradientShader.cpp:468: if (cache->fCache16Storage == NULL) { // set the storage ...
6 years, 8 months ago (2014-04-15 14:18:41 UTC) #68
scroggo
Sorry for all the back and forth! I think this is ready to commit. LGTM ...
6 years, 8 months ago (2014-04-15 16:55:04 UTC) #69
reed1
On 2014/04/15 16:55:04, scroggo wrote: > Sorry for all the back and forth! I think ...
6 years, 8 months ago (2014-04-15 19:35:34 UTC) #70
Dominik Grewe
On 2014/04/15 19:35:34, reed1 wrote: > On 2014/04/15 16:55:04, scroggo wrote: > > Sorry for ...
6 years, 8 months ago (2014-04-15 20:34:23 UTC) #71
reed1
On 2014/04/15 20:34:23, Dominik Grewe wrote: > On 2014/04/15 19:35:34, reed1 wrote: > > On ...
6 years, 8 months ago (2014-04-15 20:40:06 UTC) #72
Dominik Grewe
The CQ bit was checked by dominikg@chromium.org
6 years, 8 months ago (2014-04-16 09:59:30 UTC) #73
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/dominikg@chromium.org/207683004/450001
6 years, 8 months ago (2014-04-16 09:59:43 UTC) #74
commit-bot: I haz the power
Change committed as 14216
6 years, 8 months ago (2014-04-16 10:17:49 UTC) #75
bungeman-skia
https://codereview.chromium.org/207683004/diff/450001/include/core/SkShader.h File include/core/SkShader.h (right): https://codereview.chromium.org/207683004/diff/450001/include/core/SkShader.h#newcode219 include/core/SkShader.h:219: virtual size_t contextSize() const = 0; Adding these two ...
6 years, 8 months ago (2014-04-16 16:11:55 UTC) #76
Dominik Grewe
On 2014/04/16 16:11:55, bungeman1 wrote: > https://codereview.chromium.org/207683004/diff/450001/include/core/SkShader.h > File include/core/SkShader.h (right): > > https://codereview.chromium.org/207683004/diff/450001/include/core/SkShader.h#newcode219 > ...
6 years, 8 months ago (2014-04-16 16:43:16 UTC) #77
scroggo
On 2014/04/16 16:43:16, Dominik Grewe wrote: > On 2014/04/16 16:11:55, bungeman1 wrote: > > https://codereview.chromium.org/207683004/diff/450001/include/core/SkShader.h ...
6 years, 8 months ago (2014-04-16 16:55:23 UTC) #78
Dominik Grewe
On 2014/04/16 16:55:23, scroggo wrote: > On 2014/04/16 16:43:16, Dominik Grewe wrote: > > On ...
6 years, 8 months ago (2014-04-16 17:01:05 UTC) #79
bungeman-skia
On 2014/04/16 16:43:16, Dominik Grewe wrote: > On 2014/04/16 16:11:55, bungeman1 wrote: > > https://codereview.chromium.org/207683004/diff/450001/include/core/SkShader.h ...
6 years, 8 months ago (2014-04-16 17:05:24 UTC) #80
bungeman-skia
On 2014/04/16 17:01:05, Dominik Grewe wrote: > On 2014/04/16 16:55:23, scroggo wrote: > > On ...
6 years, 8 months ago (2014-04-16 17:37:05 UTC) #81
Dominik Grewe
On 2014/04/16 17:37:05, bungeman1 wrote: > On 2014/04/16 17:01:05, Dominik Grewe wrote: > > On ...
6 years, 8 months ago (2014-04-16 17:40:17 UTC) #82
bungeman-skia
I am suspicious that this is causing http://build.chromium.org/p/tryserver.chromium/builders/linux_asan/builds/69771/steps/cc_unittests/logs/FastPassColorFilterAlpha . Are we leaking a bitmap pixel ...
6 years, 8 months ago (2014-04-16 21:24:25 UTC) #83
scroggo
On 2014/04/16 21:24:25, bungeman1 wrote: > I am suspicious that this is causing > http://build.chromium.org/p/tryserver.chromium/builders/linux_asan/builds/69771/steps/cc_unittests/logs/FastPassColorFilterAlpha ...
6 years, 8 months ago (2014-04-17 01:52:01 UTC) #84
Dominik Grewe
On 2014/04/16 21:24:25, bungeman1 wrote: > I am suspicious that this is causing > http://build.chromium.org/p/tryserver.chromium/builders/linux_asan/builds/69771/steps/cc_unittests/logs/FastPassColorFilterAlpha ...
6 years, 8 months ago (2014-04-17 10:50:54 UTC) #85
bungeman-skia
On 2014/04/17 10:50:54, Dominik Grewe wrote: > On 2014/04/16 21:24:25, bungeman1 wrote: > > I ...
6 years, 8 months ago (2014-04-17 13:44:50 UTC) #86
bungeman-skia
On 2014/04/17 13:44:50, bungeman1 wrote: > On 2014/04/17 10:50:54, Dominik Grewe wrote: > > On ...
6 years, 8 months ago (2014-04-17 16:17:26 UTC) #87
Dominik Grewe
On 2014/04/17 16:17:26, bungeman1 wrote: > On 2014/04/17 13:44:50, bungeman1 wrote: > > On 2014/04/17 ...
6 years, 8 months ago (2014-04-17 16:54:28 UTC) #88
Dominik Grewe
On 2014/04/17 16:54:28, Dominik Grewe wrote: > On 2014/04/17 16:17:26, bungeman1 wrote: > > On ...
6 years, 8 months ago (2014-04-17 17:14:45 UTC) #89
bungeman-skia
A revert of this CL has been created in https://codereview.chromium.org/241283003/ by bungeman@google.com. The reason for ...
6 years, 8 months ago (2014-04-17 21:04:02 UTC) #90
bungeman-skia
On 2014/04/17 21:04:02, bungeman1 wrote: > A revert of this CL has been created in ...
6 years, 8 months ago (2014-04-17 21:22:57 UTC) #91
Dominik Grewe
I've found the memory leak. When explicitly calling the destructor of an SkShader::Context pointer, I ...
6 years, 8 months ago (2014-04-22 14:52:07 UTC) #92
scroggo
On 2014/04/22 14:52:07, Dominik Grewe wrote: > I've found the memory leak. When explicitly calling ...
6 years, 8 months ago (2014-04-22 15:07:08 UTC) #93
Dominik Grewe
On 2014/04/22 15:07:08, scroggo wrote: > On 2014/04/22 14:52:07, Dominik Grewe wrote: > > I've ...
6 years, 8 months ago (2014-04-22 15:17:12 UTC) #94
scroggo
LGTM. I think we'll need to update <chromium>/skia/ext/pixel_ref_utils_unittest.cc (which has class that overrides SkShader) when ...
6 years, 8 months ago (2014-04-22 15:28:59 UTC) #95
Dominik Grewe
On 2014/04/22 15:28:59, scroggo wrote: > LGTM. I think we'll need to update > <chromium>/skia/ext/pixel_ref_utils_unittest.cc ...
6 years, 8 months ago (2014-04-22 16:00:00 UTC) #96
Dominik Grewe
The CQ bit was checked by dominikg@chromium.org
6 years, 8 months ago (2014-04-22 16:00:42 UTC) #97
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/dominikg@chromium.org/207683004/490002
6 years, 8 months ago (2014-04-22 16:00:56 UTC) #98
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-22 18:13:44 UTC) #99
commit-bot: I haz the power
Retried try job too often on Build-Ubuntu12-GCC-x86_64-Release-Trybot for step(s) BuildBench, BuildEverything, BuildGm, BuildSkiaLib, BuildTests, BuildTools ...
6 years, 8 months ago (2014-04-22 18:13:45 UTC) #100
Dominik Grewe
The CQ bit was checked by dominikg@chromium.org
6 years, 8 months ago (2014-04-23 08:54:35 UTC) #101
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/dominikg@chromium.org/207683004/540001
6 years, 8 months ago (2014-04-23 08:54:48 UTC) #102
commit-bot: I haz the power
Change committed as 14323
6 years, 8 months ago (2014-04-23 09:12:44 UTC) #103
bsalomon
A revert of this CL has been created in https://codereview.chromium.org/249643002/ by bsalomon@google.com. The reason for ...
6 years, 8 months ago (2014-04-23 16:16:18 UTC) #104
bsalomon
6 years, 8 months ago (2014-04-23 16:29:51 UTC) #105
Message was sent while issue was closed.
On 2014/04/23 16:16:18, bsalomon wrote:
> A revert of this CL has been created in
> https://codereview.chromium.org/249643002/ by mailto:bsalomon@google.com.
> 
> The reason for reverting is: This is blocking the DEPS roll into Chromium.
> Failures can be seen here:
> 
>
http://build.chromium.org/p/tryserver.chromium/builders/android_dbg/builds/17....

I found the patch necessary to roll this Chromium and am retrying the
Skia->Chromium roll here:
 https://codereview.chromium.org/249563002/

If I'm able to land it I'll revert the revert.

Powered by Google App Engine
This is Rietveld 408576698