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

Issue 6452068: Modified GrGpuGL_unittest to no longer use the old constructors to create gradients, also added Two… (Closed)

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

Description

Modified GrGpuGL_unittest to no longer use the old constructors to create gradients, also added TwoPointConical to the tests. Committed: https://code.google.com/p/skia/source/detail?r=4860

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+104 lines, -10 lines) Patch
M src/effects/gradients/SkGradientShader.cpp View 1 chunk +1 line, -0 lines 3 comments Download
M src/gpu/gl/GrGpuGL_unittest.cpp View 4 chunks +103 lines, -10 lines 0 comments Download

Messages

Total messages: 6
rileya
The old constructors can now be deleted, and the Gr gradient declarations (minus the base ...
11 years, 11 months ago (2012-07-31 15:35:54 UTC) #1
TomH
Big change in unittests. I like. Is there any way to make it less repetitive? ...
11 years, 11 months ago (2012-07-31 15:39:01 UTC) #2
bsalomon
LGTM
11 years, 11 months ago (2012-07-31 15:45:04 UTC) #3
rileya
One thing worth noting: this causes the tests to create gradient textures, and due to ...
11 years, 11 months ago (2012-07-31 15:51:31 UTC) #4
bsalomon
http://codereview.appspot.com/6452068/diff/1/src/effects/gradients/SkGradientShader.cpp File src/effects/gradients/SkGradientShader.cpp (right): http://codereview.appspot.com/6452068/diff/1/src/effects/gradients/SkGradientShader.cpp#newcode645 src/effects/gradients/SkGradientShader.cpp:645: EXPAND_1_COLOR(colorCount); On 2012/07/31 15:51:31, rileya wrote: > On 2012/07/31 ...
11 years, 11 months ago (2012-07-31 15:57:52 UTC) #5
bsalomon
11 years, 11 months ago (2012-07-31 15:59:05 UTC) #6
On 2012/07/31 15:51:31, rileya wrote:
> One thing worth noting: this causes the tests to create gradient textures, and
> due to the known issue with the cache of gradient bitmaps not being freed, it
> results in 32 extra leaked pixel refs when running tests.
> 

Not our problem. :)

>
http://codereview.appspot.com/6452068/diff/1/src/effects/gradients/SkGradient...
> File src/effects/gradients/SkGradientShader.cpp (right):
> 
>
http://codereview.appspot.com/6452068/diff/1/src/effects/gradients/SkGradient...
> src/effects/gradients/SkGradientShader.cpp:645: EXPAND_1_COLOR(colorCount);
> On 2012/07/31 15:39:01, TomH wrote:
> > Unrelated change?
> 
> This turned up after running the tests with the changes. All the other
> CreateGradient functions use this to expand single colors into 2, here it was
> going through and failing an assert if only one color was passed.
Sign in to reply to this message.

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