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

Issue 283273002: remove unused (by clients) SkUnitMapper (Closed)

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

Description

remove unused (by clients) SkUnitMapper BUG=skia: Committed: http://code.google.com/p/skia/source/detail?r=14761

Patch Set 1 #

Total comments: 19

Patch Set 2 : add SkReadBuffer::skipFlattenable() #

Patch Set 3 : mark affected gms to be ignored (and then rebaselined) #

Total comments: 6

Patch Set 4 : patch the correct ignored-tests file #

Patch Set 5 : #

Patch Set 6 : add SK_SUPPORT_LEGACY_DEADUNITMAPPERTYPE flag for chrome #

Patch Set 7 : fix legacy call #

Unified diffs Side-by-side diffs Delta from patch set Stats (+341 lines, -745 lines) Patch
M bench/GradientBench.cpp View 8 chunks +18 lines, -29 lines 0 comments Download
M expectations/gm/ignored-tests.txt View 1 2 3 1 chunk +13 lines, -0 lines 0 comments Download
M experimental/SkiaExamples/HelloSkiaExample.cpp View 2 chunks +1 line, -5 lines 0 comments Download
M experimental/webtry/templates/template.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M gm/alphagradients.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M gm/colortype.cpp View 1 chunk +1 line, -1 line 0 comments Download
M gm/convexpolyclip.cpp View 1 chunk +1 line, -1 line 0 comments Download
M gm/drawbitmaprect.cpp View 1 chunk +1 line, -1 line 0 comments Download
M gm/gradientDirtyLaundry.cpp View 2 chunks +9 lines, -14 lines 0 comments Download
M gm/gradient_matrix.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M gm/gradients.cpp View 7 chunks +17 lines, -24 lines 0 comments Download
M gm/gradients_2pt_conical.cpp View 20 chunks +37 lines, -65 lines 0 comments Download
M gm/gradients_no_texture.cpp View 4 chunks +13 lines, -20 lines 0 comments Download
M gm/shaderbounds.cpp View 1 chunk +1 line, -1 line 0 comments Download
M gm/shadertext.cpp View 5 chunks +13 lines, -27 lines 0 comments Download
M gm/shadertext2.cpp View 2 chunks +1 line, -8 lines 0 comments Download
M gm/shadertext3.cpp View 2 chunks +2 lines, -8 lines 0 comments Download
M gm/tilemodes.cpp View 2 chunks +1 line, -9 lines 0 comments Download
M gm/tilemodes_scaled.cpp View 2 chunks +1 line, -9 lines 0 comments Download
M gyp/SampleApp.gyp View 2 chunks +0 lines, -2 lines 0 comments Download
M gyp/core.gypi View 1 chunk +0 lines, -1 line 0 comments Download
M gyp/public_headers.gypi View 2 chunks +0 lines, -2 lines 0 comments Download
M gyp/skia_for_chromium_defines.gypi View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M gyp/utils.gyp View 2 chunks +0 lines, -2 lines 0 comments Download
M include/core/SkFlattenable.h View 1 1 chunk +1 line, -1 line 0 comments Download
M include/core/SkPicture.h View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M include/core/SkReadBuffer.h View 1 2 chunks +5 lines, -2 lines 0 comments Download
M include/core/SkShader.h View 1 chunk +4 lines, -0 lines 0 comments Download
D include/core/SkUnitMapper.h View 1 chunk +0 lines, -37 lines 0 comments Download
M include/effects/SkGradientShader.h View 1 2 3 4 5 6 6 chunks +99 lines, -34 lines 0 comments Download
M samplecode/SampleAll.cpp View 3 chunks +2 lines, -7 lines 0 comments Download
M samplecode/SampleGradients.cpp View 4 chunks +14 lines, -21 lines 0 comments Download
M samplecode/SampleLayers.cpp View 1 chunk +1 line, -1 line 0 comments Download
M samplecode/SamplePatch.cpp View 1 chunk +1 line, -1 line 0 comments Download
M samplecode/SampleShaderText.cpp View 5 chunks +13 lines, -27 lines 0 comments Download
M samplecode/SampleSlides.cpp View 4 chunks +11 lines, -18 lines 0 comments Download
M samplecode/SampleTiling.cpp View 2 chunks +1 line, -9 lines 0 comments Download
D samplecode/SampleUnitMapper.cpp View 1 chunk +0 lines, -172 lines 0 comments Download
M samplecode/SampleVertices.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/animator/SkDrawGradient.h View 2 chunks +0 lines, -3 lines 0 comments Download
M src/animator/SkDrawGradient.cpp View 5 chunks +3 lines, -49 lines 0 comments Download
M src/core/SkReadBuffer.cpp View 1 2 3 4 1 chunk +22 lines, -0 lines 0 comments Download
M src/core/SkValidatingReadBuffer.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/core/SkValidatingReadBuffer.cpp View 1 1 chunk +12 lines, -0 lines 0 comments Download
M src/effects/gradients/SkGradientShader.cpp View 1 2 20 chunks +13 lines, -62 lines 0 comments Download
M src/effects/gradients/SkGradientShaderPriv.h View 3 chunks +0 lines, -3 lines 0 comments Download
D src/utils/SkUnitMappers.cpp View 1 chunk +0 lines, -61 lines 0 comments Download
M tests/DeferredCanvasTest.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 12 (0 generated)
reed1
have to fix the one #if 0 in flattening for gradients...
6 years, 7 months ago (2014-05-14 22:48:37 UTC) #1
robertphillips
Looks very promising to me modulo the serialization hiccup in SkGradientShaderBase. https://codereview.chromium.org/283273002/diff/1/include/core/SkFlattenable.h File include/core/SkFlattenable.h (right): ...
6 years, 7 months ago (2014-05-15 12:24:21 UTC) #2
scroggo
https://codereview.chromium.org/283273002/diff/1/gm/tilemodes_scaled.cpp File gm/tilemodes_scaled.cpp (left): https://codereview.chromium.org/283273002/diff/1/gm/tilemodes_scaled.cpp#oldcode35 gm/tilemodes_scaled.cpp:35: um = new SkCosineMapper; Does this gm change? Please ...
6 years, 7 months ago (2014-05-15 14:33:38 UTC) #3
reed1
https://codereview.chromium.org/283273002/diff/1/gm/tilemodes_scaled.cpp File gm/tilemodes_scaled.cpp (left): https://codereview.chromium.org/283273002/diff/1/gm/tilemodes_scaled.cpp#oldcode35 gm/tilemodes_scaled.cpp:35: um = new SkCosineMapper; On 2014/05/15 14:33:38, scroggo wrote: ...
6 years, 7 months ago (2014-05-15 15:37:20 UTC) #4
reed1
ptal
6 years, 7 months ago (2014-05-15 16:57:26 UTC) #5
scroggo
https://codereview.chromium.org/283273002/diff/1/include/core/SkFlattenable.h File include/core/SkFlattenable.h (right): https://codereview.chromium.org/283273002/diff/1/include/core/SkFlattenable.h#newcode63 include/core/SkFlattenable.h:63: kSkShader_Type, On 2014/05/15 15:37:21, reed1 wrote: > On 2014/05/15 ...
6 years, 7 months ago (2014-05-15 17:18:13 UTC) #6
reed1
https://code.google.com/p/skia/issues/detail?id=2560 https://codereview.chromium.org/283273002/diff/40001/include/core/SkPicture.h File include/core/SkPicture.h (right): https://codereview.chromium.org/283273002/diff/40001/include/core/SkPicture.h#newcode330 include/core/SkPicture.h:330: // V27: Move writers into CreateProc, and obsolete ...
6 years, 7 months ago (2014-05-16 12:26:56 UTC) #7
scroggo
lgtm
6 years, 7 months ago (2014-05-16 13:21:02 UTC) #8
reed1
The CQ bit was checked by reed@google.com
6 years, 7 months ago (2014-05-16 13:29:24 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/reed@google.com/283273002/120001
6 years, 7 months ago (2014-05-16 13:29:40 UTC) #10
commit-bot: I haz the power
Change committed as 14761
6 years, 7 months ago (2014-05-16 13:35:32 UTC) #11
reed1
6 years, 7 months ago (2014-05-16 13:48:37 UTC) #12
Message was sent while issue was closed.
A revert of this CL has been created in
https://codereview.chromium.org/287063009/ by reed@google.com.

The reason for reverting is: does not address all legacy callsites in chrome.

e.g.

[13:45:32.091872] ../../ui/native_theme/native_theme_base.cc:608:76: error: no
matching function for call to ‘SkGradientShader::CreateLinear(SkPoint [3],
SkColor [3], NULL, int, SkShader::TileMode, NULL)’
[13:45:32.091919]            gradient_bounds, colors, NULL, 3,
SkShader::kClamp_TileMode, NULL));
.

Powered by Google App Engine
This is Rietveld 408576698