Revert of remove unused (by clients) SkUnitMapper (https://codereview.chromium.org...
authorcommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 16 May 2014 13:49:08 +0000 (13:49 +0000)
committercommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 16 May 2014 13:49:08 +0000 (13:49 +0000)
commite2b193ca5c76f01f8e12b4a92e9bd6ccb3ed4280
tree6fdc1c9c9bbfb0b7be6854a9e6993df145c31792
parentdbe0cd13a0e1f437b81f1a63055da6e0fc3b0673
Revert of remove unused (by clients) SkUnitMapper (https://codereview.chromium.org/283273002/)

Reason for revert:
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));

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

R=robertphillips@google.com, scroggo@google.com, george@mozilla.com
TBR=george@mozilla.com, robertphillips@google.com, scroggo@google.com
NOTREECHECKS=true
NOTRY=true
BUG=skia:

Author: reed@google.com

Review URL: https://codereview.chromium.org/287063009

git-svn-id: http://skia.googlecode.com/svn/trunk@14763 2bbb7eff-a529-9590-31e7-b0007b416f81
48 files changed:
bench/GradientBench.cpp
expectations/gm/ignored-tests.txt
experimental/SkiaExamples/HelloSkiaExample.cpp
experimental/webtry/templates/template.cpp
gm/alphagradients.cpp
gm/colortype.cpp
gm/convexpolyclip.cpp
gm/drawbitmaprect.cpp
gm/gradientDirtyLaundry.cpp
gm/gradient_matrix.cpp
gm/gradients.cpp
gm/gradients_2pt_conical.cpp
gm/gradients_no_texture.cpp
gm/shaderbounds.cpp
gm/shadertext.cpp
gm/shadertext2.cpp
gm/shadertext3.cpp
gm/tilemodes.cpp
gm/tilemodes_scaled.cpp
gyp/SampleApp.gyp
gyp/core.gypi
gyp/public_headers.gypi
gyp/skia_for_chromium_defines.gypi
gyp/utils.gyp
include/core/SkFlattenable.h
include/core/SkPicture.h
include/core/SkReadBuffer.h
include/core/SkShader.h
include/core/SkUnitMapper.h [new file with mode: 0644]
include/effects/SkGradientShader.h
samplecode/SampleAll.cpp
samplecode/SampleGradients.cpp
samplecode/SampleLayers.cpp
samplecode/SamplePatch.cpp
samplecode/SampleShaderText.cpp
samplecode/SampleSlides.cpp
samplecode/SampleTiling.cpp
samplecode/SampleUnitMapper.cpp [new file with mode: 0644]
samplecode/SampleVertices.cpp
src/animator/SkDrawGradient.cpp
src/animator/SkDrawGradient.h
src/core/SkReadBuffer.cpp
src/core/SkValidatingReadBuffer.cpp
src/core/SkValidatingReadBuffer.h
src/effects/gradients/SkGradientShader.cpp
src/effects/gradients/SkGradientShaderPriv.h
src/utils/SkUnitMappers.cpp [new file with mode: 0644]
tests/DeferredCanvasTest.cpp