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

Issue 241173005: Get gradient information for gpu effect directly from SkGradientShader instead of calling asAGradie… (Closed)

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

Description

Get gradient information for gpu effect directly from SkGradientShader instead of calling asAGradient BUG=skia: Committed: http://code.google.com/p/skia/source/detail?r=14254

Patch Set 1 #

Total comments: 1

Patch Set 2 : #

Patch Set 3 : Minor change #

Total comments: 4

Patch Set 4 : Naming nits #

Patch Set 5 : Merge fixes #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -51 lines) Patch
M src/effects/gradients/SkGradientShader.cpp View 1 2 3 4 10 chunks +33 lines, -33 lines 0 comments Download
M src/effects/gradients/SkGradientShaderPriv.h View 1 2 3 4 5 chunks +20 lines, -18 lines 2 comments Download

Messages

Total messages: 9 (0 generated)
egdaniel
6 years, 8 months ago (2014-04-17 18:34:58 UTC) #1
bsalomon
https://codereview.chromium.org/241173005/diff/1/src/effects/gradients/SkGradientShaderPriv.h File src/effects/gradients/SkGradientShaderPriv.h (right): https://codereview.chromium.org/241173005/diff/1/src/effects/gradients/SkGradientShaderPriv.h#newcode102 src/effects/gradients/SkGradientShaderPriv.h:102: struct DescriptorGpu { How about we move the logic ...
6 years, 8 months ago (2014-04-17 19:23:34 UTC) #2
egdaniel
No weird awkward descriptor
6 years, 8 months ago (2014-04-17 20:40:00 UTC) #3
bsalomon
lgtm with some naming suggestions. https://codereview.chromium.org/241173005/diff/40001/src/effects/gradients/SkGradientShaderPriv.h File src/effects/gradients/SkGradientShaderPriv.h (right): https://codereview.chromium.org/241173005/diff/40001/src/effects/gradients/SkGradientShaderPriv.h#newcode188 src/effects/gradients/SkGradientShaderPriv.h:188: enum ColorType { Since ...
6 years, 8 months ago (2014-04-17 20:43:40 UTC) #4
egdaniel
The CQ bit was checked by egdaniel@google.com
6 years, 8 months ago (2014-04-18 14:18:36 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/egdaniel@google.com/241173005/100001
6 years, 8 months ago (2014-04-18 14:18:46 UTC) #6
commit-bot: I haz the power
Change committed as 14254
6 years, 8 months ago (2014-04-18 14:42:16 UTC) #7
Dominik Grewe
https://codereview.chromium.org/241173005/diff/100001/src/effects/gradients/SkGradientShaderPriv.h File src/effects/gradients/SkGradientShaderPriv.h (right): https://codereview.chromium.org/241173005/diff/100001/src/effects/gradients/SkGradientShaderPriv.h#newcode142 src/effects/gradients/SkGradientShaderPriv.h:142: uint32_t getFlags() const { return fGradFlags; } I don't ...
6 years, 8 months ago (2014-04-22 10:19:33 UTC) #8
bsalomon
6 years, 8 months ago (2014-04-22 13:14:51 UTC) #9
Message was sent while issue was closed.
https://codereview.chromium.org/241173005/diff/100001/src/effects/gradients/S...
File src/effects/gradients/SkGradientShaderPriv.h (right):

https://codereview.chromium.org/241173005/diff/100001/src/effects/gradients/S...
src/effects/gradients/SkGradientShaderPriv.h:142: uint32_t getFlags() const {
return fGradFlags; }
On 2014/04/22 10:19:33, Dominik Grewe wrote:
> I don't think getFlags is a good name if we already have a virtual (non-const)
> getFlags  above. Maybe getGradientFlags was better?

Good point... I didn't notice the other getFlags().

Powered by Google App Engine
This is Rietveld 408576698