Home
last modified time | relevance | path

Searched refs:SkTileMode (Results 1 - 25 of 323) sorted by relevance

12345678910>>...13

/third_party/skia/bench/
H A DHardStopGradientBench_ScaleNumColors.cpp21 HardStopGradientBench_ScaleNumColors(SkTileMode tilemode, int count) { in HardStopGradientBench_ScaleNumColors()
95 SkTileMode fTileMode;
104 DEF_BENCH(return new HardStopGradientBench_ScaleNumColors(SkTileMode::kClamp, 3);)
105 DEF_BENCH(return new HardStopGradientBench_ScaleNumColors(SkTileMode::kClamp, 4);)
106 DEF_BENCH(return new HardStopGradientBench_ScaleNumColors(SkTileMode::kClamp, 5);)
107 DEF_BENCH(return new HardStopGradientBench_ScaleNumColors(SkTileMode::kClamp, 10);)
108 DEF_BENCH(return new HardStopGradientBench_ScaleNumColors(SkTileMode::kClamp, 25);)
109 DEF_BENCH(return new HardStopGradientBench_ScaleNumColors(SkTileMode::kClamp, 50);)
110 DEF_BENCH(return new HardStopGradientBench_ScaleNumColors(SkTileMode::kClamp, 100);)
113 DEF_BENCH(return new HardStopGradientBench_ScaleNumColors(SkTileMode
[all...]
H A DTileBench.cpp31 ConstXTileBench(SkTileMode xTile, in ConstXTileBench()
32 SkTileMode yTile, in ConstXTileBench()
109 const SkTileMode fXTile,
124 //DEF_BENCH(return new ConstXTileBench(SkTileMode::kRepeat, SkTileMode::kRepeat, false, false, true))
125 DEF_BENCH(return new ConstXTileBench(SkTileMode::kClamp, SkTileMode::kClamp, gNN, false, false))
126 //DEF_BENCH(return new ConstXTileBench(SkTileMode::kMirror, SkTileMode::kMirror, false, false, true))
128 DEF_BENCH(return new ConstXTileBench(SkTileMode
[all...]
H A DMatrixConvolutionBench.cpp11 #include "include/core/SkTileMode.h"
19 MatrixConvolutionBench(bool bigKernel, SkTileMode tileMode, bool convolveAlpha) in MatrixConvolutionBench()
77 DEF_BENCH( return new MatrixConvolutionBench(false, SkTileMode::kClamp, true); )
78 DEF_BENCH( return new MatrixConvolutionBench(false, SkTileMode::kRepeat, true); )
79 DEF_BENCH( return new MatrixConvolutionBench(false, SkTileMode::kMirror, true); )
80 DEF_BENCH( return new MatrixConvolutionBench(false, SkTileMode::kDecal, true); )
81 DEF_BENCH( return new MatrixConvolutionBench(false, SkTileMode::kDecal, false); )
83 DEF_BENCH( return new MatrixConvolutionBench(true, SkTileMode::kClamp, true); )
84 DEF_BENCH( return new MatrixConvolutionBench(true, SkTileMode::kRepeat, true); )
85 DEF_BENCH( return new MatrixConvolutionBench(true, SkTileMode
[all...]
H A DGradientBench.cpp53 SkTileMode tm, float scale) { in MakeLinear()
58 SkTileMode tm, float scale) { in MakeRadial()
68 SkTileMode tm, float scale) { in MakeSweep()
77 SkTileMode tm, float scale) { in MakeConical()
90 SkTileMode tm, float scale) { in MakeConicalZeroRad()
103 SkTileMode tm, float scale) { in MakeConicalOutside()
117 SkTileMode tm, float scale) { in MakeConicalOutsideZeroRad()
130 SkTileMode tm, float scale);
178 SkTileMode tm = SkTileMode in GradientBench()
176 GradientBench(GradType gradType, GradData data = gGradData[0], SkTileMode tm = SkTileMode::kClamp, GeomType geomType = kRect_GeomType, float scale = 1.0f) GradientBench() argument
[all...]
/third_party/skia/gm/
H A Dgiantbitmap.cpp18 #include "include/core/SkTileMode.h"
30 SkTileMode fMode;
70 GiantBitmapGM(SkTileMode mode, bool doFilter, bool doRotate) : fBM(nullptr) { in GiantBitmapGM()
83 case SkTileMode::kClamp:
86 case SkTileMode::kRepeat:
89 case SkTileMode::kMirror:
92 case SkTileMode::kDecal:
132 DEF_GM( return new GiantBitmapGM(SkTileMode::kClamp, false, false); )
133 DEF_GM( return new GiantBitmapGM(SkTileMode::kRepeat, false, false); )
134 DEF_GM( return new GiantBitmapGM(SkTileMode
[all...]
H A Dtilemodes.cpp23 #include "include/core/SkTileMode.h"
45 SkTileMode::kClamp)); in makebm()
50 SkTileMode tmx, SkTileMode tmy) { in setup()
104 constexpr SkTileMode gModes[] = {
105 SkTileMode::kClamp, SkTileMode::kRepeat, SkTileMode::kMirror };
168 static sk_sp<SkShader> make_bm(SkTileMode tx, SkTileMode t
[all...]
H A Dclippedbitmapshaders.cpp19 #include "include/core/SkTileMode.h"
53 ClippedBitmapShadersGM(SkTileMode mode, bool hq=false) in ClippedBitmapShadersGM()
58 SkTileMode fMode;
64 case SkTileMode::kRepeat:
67 case SkTileMode::kMirror:
70 case SkTileMode::kClamp:
73 case SkTileMode::kDecal:
121 DEF_GM( return new ClippedBitmapShadersGM(SkTileMode::kRepeat); )
122 DEF_GM( return new ClippedBitmapShadersGM(SkTileMode::kMirror); )
123 DEF_GM( return new ClippedBitmapShadersGM(SkTileMode
[all...]
H A Dmatrixconvolution.cpp21 #include "include/core/SkTileMode.h"
62 pts, fColors, pos, 2, SkTileMode::kClamp)); in makeBitmap()
72 sk_sp<SkImageFilter> makeFilter(const SkIPoint &kernelOffset, SkTileMode tileMode, in makeFilter()
94 SkTileMode tileMode, bool convolveAlpha, in draw()
120 this->draw(canvas, x, 10, kernelOffset, SkTileMode::kClamp, true, &rect);
121 this->draw(canvas, x, 110, kernelOffset, SkTileMode::kDecal, true, &rect);
122 this->draw(canvas, x, 210, kernelOffset, SkTileMode::kRepeat, true, &rect);
127 this->draw(canvas, 310, 10, kernelOffset, SkTileMode::kClamp, true, &smallRect);
128 this->draw(canvas, 310, 110, kernelOffset, SkTileMode::kDecal, true, &smallRect);
129 this->draw(canvas, 310, 210, kernelOffset, SkTileMode
[all...]
H A Dgradients_degenerate.cpp20 #include "include/core/SkTileMode.h"
33 static const SkTileMode TILE_MODES[] = { SkTileMode::kDecal,
34 SkTileMode::kRepeat,
35 SkTileMode::kMirror,
36 SkTileMode::kClamp };
45 typedef sk_sp<SkShader> (*GradientFactory)(SkTileMode tm);
91 static sk_sp<SkShader> make_linear(SkTileMode mode) { in make_linear()
97 static sk_sp<SkShader> make_radial(SkTileMode mode) { in make_radial()
102 static sk_sp<SkShader> make_sweep(SkTileMode mod
[all...]
H A Dtilemodes_scaled.cpp22 #include "include/core/SkTileMode.h"
48 SK_ARRAY_COUNT(colors), SkTileMode::kClamp)); in makebm()
53 SkTileMode tmx, SkTileMode tmy) { in setup()
107 constexpr SkTileMode gModes[] = {
108 SkTileMode::kClamp, SkTileMode::kRepeat, SkTileMode::kMirror };
168 static sk_sp<SkShader> make_bm(SkTileMode tx, SkTileMode t
[all...]
H A Dgradients.cpp24 #include "include/core/SkTileMode.h"
75 SkTileMode tm, const SkMatrix& localMatrix) { in MakeLinear()
81 SkTileMode tm, const SkMatrix& localMatrix) { in MakeLinear4f()
88 SkTileMode tm, const SkMatrix& localMatrix) { in MakeRadial()
97 SkTileMode tm, const SkMatrix& localMatrix) { in MakeRadial4f()
107 SkTileMode, const SkMatrix& localMatrix) { in MakeSweep()
116 SkTileMode, const SkMatrix& localMatrix) { in MakeSweep4f()
126 SkTileMode tm, const SkMatrix& localMatrix) { in Make2Radial()
139 SkTileMode tm, const SkMatrix& localMatrix) { in Make2Radial4f()
153 SkTileMode t in Make2Conical()
[all...]
H A Dgradients_2pt_conical.cpp20 #include "include/core/SkTileMode.h"
54 SkTileMode tm, const SkMatrix& localMatrix) { in Make2ConicalOutside()
65 SkTileMode tm, const SkMatrix& localMatrix) { in Make2ConicalOutsideStrip()
75 SkTileMode tm, const SkMatrix& localMatrix) { in Make2ConicalOutsideFlip()
86 SkTileMode tm, const SkMatrix& localMatrix) { in Make2ConicalInside()
99 SkTileMode tm, const SkMatrix& localMatrix) { in Make2ConicalInsideFlip()
112 SkTileMode tm, const SkMatrix& localMatrix) { in Make2ConicalInsideCenter()
123 SkTileMode tm, const SkMatrix& localMatrix) { in Make2ConicalInsideCenterReversed()
134 SkTileMode tm, const SkMatrix& localMatrix) { in Make2ConicalZeroRad()
147 SkTileMode t in Make2ConicalZeroRadFlip()
325 ConicalGradientsGM(GradCaseType gradCaseType, bool dither, SkTileMode mode = SkTileMode::kClamp) ConicalGradientsGM() argument
[all...]
H A Dtilemodes_alpha.cpp12 #include "include/core/SkTileMode.h"
21 constexpr SkTileMode kModes[4] = { in DEF_SIMPLE_GM()
22 SkTileMode::kClamp, in DEF_SIMPLE_GM()
23 SkTileMode::kRepeat, in DEF_SIMPLE_GM()
24 SkTileMode::kMirror, in DEF_SIMPLE_GM()
25 SkTileMode::kDecal, in DEF_SIMPLE_GM()
H A Dcrop_imagefilter.cpp162 SkTileMode inputMode, // the tile mode of the input to the crop filter in draw_example()
163 SkTileMode outputMode, // the tile mode that the crop filter outputs in draw_example()
167 SkASSERT(inputMode == SkTileMode::kDecal && outputMode == SkTileMode::kDecal); in draw_example()
244 SkTileMode inputMode, in draw_example_tile()
245 SkTileMode outputMode, in draw_example_tile()
285 SkTileMode inputMode, in draw_example_column()
286 SkTileMode outputMode) { in draw_example_column()
311 SkTileMode outputMode) { in draw_example_grid()
313 for (auto inputMode : {SkTileMode in draw_example_grid()
[all...]
H A Dlocalmatrixshader.cpp159 auto s1 = image->makeShader(SkTileMode::kRepeat, SkTileMode::kRepeat, in DEF_SIMPLE_GM()
165 auto s2 = image->makeShader(SkTileMode::kRepeat, SkTileMode::kRepeat, in DEF_SIMPLE_GM()
171 auto s3 = image->makeShader(SkTileMode::kRepeat, SkTileMode::kRepeat, in DEF_SIMPLE_GM()
176 auto s4 = image->makeShader(SkTileMode::kRepeat, SkTileMode::kRepeat, SkSamplingOptions()) in DEF_SIMPLE_GM()
189 SkTileMode::kRepeat, 0, &scale); in DEF_SIMPLE_GM()
195 SkTileMode in DEF_SIMPLE_GM()
[all...]
/third_party/skia/include/effects/
H A DSkGradientShader.h75 SkTileMode mode,
79 SkTileMode mode) { in MakeLinear()
99 const SkScalar pos[], int count, SkTileMode mode,
103 const SkScalar pos[], int count, SkTileMode mode) { in MakeLinear()
122 SkTileMode mode,
126 SkTileMode mode) { in MakeRadial()
145 const SkScalar pos[], int count, SkTileMode mode,
149 const SkScalar pos[], int count, SkTileMode mode) { in MakeRadial()
163 int count, SkTileMode mode,
168 int count, SkTileMode mod in MakeTwoPointConical()
[all...]
/third_party/skia/src/pdf/
H A DSkPDFShader.cpp72 static bool is_tiled(SkTileMode m) { return SkTileMode::kMirror == m || SkTileMode::kRepeat == m; } in is_tiled()
76 SkTileMode tileModesX, in make_image_shader()
77 SkTileMode tileModesY, in make_image_shader()
124 if (tileModesX == SkTileMode::kMirror) { in make_image_shader()
128 if (tileModesY == SkTileMode::kMirror) { in make_image_shader()
132 if (tileModesX == SkTileMode::kMirror && tileModesY == SkTileMode::kMirror) { in make_image_shader()
140 if (tileModesX == SkTileMode in make_image_shader()
[all...]
/third_party/skia/src/shaders/
H A DSkImageShader.cpp56 static SkTileMode optimize(SkTileMode tm, int dimension) { in optimize()
65 return (tm != SkTileMode::kDecal && dimension == 1) ? SkTileMode::kClamp : tm; in optimize()
70 SkTileMode tmx, SkTileMode tmy, in SkImageShader()
102 auto tmx = buffer.read32LE<SkTileMode>(SkTileMode::kLastTileMode); in CreateProc()
103 auto tmy = buffer.read32LE<SkTileMode>(SkTileMode in CreateProc()
[all...]
H A DSkImageShader.h18 SkTileMode tmx,
19 SkTileMode tmy,
36 SkTileMode tmx,
37 SkTileMode tmy,
46 SkImage* onIsAImage(SkMatrix*, SkTileMode*) const override;
67 const SkTileMode fTileModeX;
68 const SkTileMode fTileModeY;
/third_party/skia/tests/
H A DShaderTest.cpp20 SkTileMode expectedX, SkTileMode expectedY, in check_isaimage()
22 SkTileMode tileModes[2]; in check_isaimage()
27 tileModes[0] = tileModes[1] = (SkTileMode)99; in check_isaimage()
45 const SkTileMode tmx = SkTileMode::kRepeat; in DEF_TEST()
46 const SkTileMode tmy = SkTileMode::kMirror; in DEF_TEST()
H A DPictureShaderTest.cpp33 paint.setShader(picture->makeShader(SkTileMode::kRepeat, SkTileMode::kRepeat, in DEF_TEST()
44 paint.setShader(makePicture()->makeShader(SkTileMode::kRepeat, SkTileMode::kRepeat, in DEF_TEST()
88 for (SkTileMode m : { in DEF_TEST()
89 SkTileMode::kClamp, SkTileMode::kRepeat, SkTileMode::kRepeat, SkTileMode::kDecal in DEF_TEST()
H A DGradientTest.cpp28 paint.setShader(SkGradientShader::MakeLinear(pts, colors, nullptr, 2, SkTileMode::kClamp)); in test_big_grad()
50 SkTileMode fTileMode;
68 REPORTER_ASSERT(reporter, fTileMode == (SkTileMode)info->fTileMode); in gradCheck()
148 paint.setShader(SkGradientShader::MakeLinear(pts, colors, pos, 2, SkTileMode::kClamp)); in TestConstantGradient()
178 rec.fTileMode = SkTileMode::kClamp; in TestGradientShaders()
244 const SkTileMode modes[] = { in TestGradientOptimization()
245 SkTileMode::kClamp, SkTileMode::kRepeat, SkTileMode::kMirror, in TestGradientOptimization()
250 if (gProcInfo[i].fIsClampRestricted && mode != SkTileMode in TestGradientOptimization()
[all...]
/third_party/skia/src/core/
H A DSkBitmapProcState.cpp141 SkBitmapProcState::SkBitmapProcState(const SkImage_Base* image, SkTileMode tmx, SkTileMode tmy)
213 if (fTileModeX != SkTileMode::kClamp || fTileModeY != SkTileMode::kClamp) {
261 SkASSERT(fTileModeX != SkTileMode::kDecal);
284 && SkTileMode::kClamp == fTileModeX
285 && SkTileMode::kClamp == fTileModeY
444 if (SkTileMode::kClamp != s.fTileModeX || SkTileMode::kClamp != s.fTileModeY) { in S32_D32_constX_shaderproc()
453 case SkTileMode in S32_D32_constX_shaderproc()
[all...]
/third_party/skia/src/effects/imagefilters/
H A DSkMatrixConvolutionImageFilter.cpp10 #include "include/core/SkTileMode.h"
33 SkTileMode tileMode, bool convolveAlpha, in SkMatrixConvolutionImageFilter()
72 SkTileMode fTileMode;
150 SkTileMode tileMode, in MatrixConvolution()
208 SkTileMode tileMode = buffer.read32LE(SkTileMode::kLastTileMode); in CreateProc()
297 case SkTileMode::kMirror: in filterInteriorPixels()
299 case SkTileMode::kRepeat: in filterInteriorPixels()
303 case SkTileMode::kClamp: in filterInteriorPixels()
305 case SkTileMode in filterInteriorPixels()
[all...]
/third_party/skia/modules/androidkit/src/
H A DUtils.cpp26 SkTileMode TileMode(jint tm) { in TileMode()
28 static_assert(static_cast<int>(SkTileMode::kClamp ) == 0); in TileMode()
29 static_assert(static_cast<int>(SkTileMode::kRepeat) == 1); in TileMode()
30 static_assert(static_cast<int>(SkTileMode::kMirror) == 2); in TileMode()
31 static_assert(static_cast<int>(SkTileMode::kDecal ) == 3); in TileMode()
33 return static_cast<SkTileMode>(tm); in TileMode()

Completed in 12 milliseconds

12345678910>>...13