Home
last modified time | relevance | path

Searched refs:SkShader (Results 1 – 25 of 140) sorted by relevance

123456

/external/skia/src/core/
DSkShader.cpp15 SkShader::SkShader() : fLocalMatrix(NULL) { in SkShader() function in SkShader
19 SkShader::SkShader(SkFlattenableReadBuffer& buffer) in SkShader() function in SkShader
29 SkShader::~SkShader() { in ~SkShader()
34 void SkShader::beginSession() { in beginSession()
39 void SkShader::endSession() { in endSession()
44 void SkShader::flatten(SkFlattenableWriteBuffer& buffer) { in flatten()
52 bool SkShader::getLocalMatrix(SkMatrix* localM) const { in getLocalMatrix()
66 void SkShader::setLocalMatrix(const SkMatrix& localM) { in setLocalMatrix()
77 void SkShader::resetLocalMatrix() { in resetLocalMatrix()
84 bool SkShader::setContext(const SkBitmap& device, in setContext()
[all …]
DSkBitmapSampler.cpp12 static SkTileModeProc get_tilemode_proc(SkShader::TileMode mode) in get_tilemode_proc()
15 case SkShader::kClamp_TileMode: in get_tilemode_proc()
17 case SkShader::kRepeat_TileMode: in get_tilemode_proc()
19 case SkShader::kMirror_TileMode: in get_tilemode_proc()
28 SkShader::TileMode tmx, SkShader::TileMode tmy) in SkBitmapSampler()
47 SkShader::TileMode tmx, SkShader::TileMode tmy) in SkNullBitmapSampler()
78 ARGB32_Bilinear_Sampler(const SkBitmap& bm, SkShader::TileMode tmx, SkShader::TileMode tmy) in ARGB32_Bilinear_Sampler()
126 RGB16_Bilinear_Sampler(const SkBitmap& bm, SkShader::TileMode tmx, SkShader::TileMode tmy) in RGB16_Bilinear_Sampler()
180 Index8_Bilinear_Sampler(const SkBitmap& bm, SkShader::TileMode tmx, SkShader::TileMode tmy) in Index8_Bilinear_Sampler()
235 A8_Bilinear_Sampler(const SkBitmap& bm, SkShader::TileMode tmx, SkShader::TileMode tmy) in A8_Bilinear_Sampler()
[all …]
DSkBitmapSamplerTemplate.h18 …BITMAP_CLASSNAME_PREFIX(_Point_Sampler)(const SkBitmap& bm, SkShader::TileMode tmx, SkShader::Tile… in BITMAP_CLASSNAME_PREFIX()
35 : SkBitmapSampler(bm, false, SkShader::kClamp_TileMode, SkShader::kClamp_TileMode) in BITMAP_CLASSNAME_PREFIX()
50 : SkBitmapSampler(bm, false, SkShader::kRepeat_TileMode, SkShader::kRepeat_TileMode) in BITMAP_CLASSNAME_PREFIX()
65 : SkBitmapSampler(bm, false, SkShader::kRepeat_TileMode, SkShader::kRepeat_TileMode) in BITMAP_CLASSNAME_PREFIX()
80 : SkBitmapSampler(bm, false, SkShader::kMirror_TileMode, SkShader::kMirror_TileMode) in BITMAP_CLASSNAME_PREFIX()
95 : SkBitmapSampler(bm, false, SkShader::kMirror_TileMode, SkShader::kMirror_TileMode) in BITMAP_CLASSNAME_PREFIX()
DSkBitmapSampler.h21 SkBitmapSampler(const SkBitmap&, bool filter, SkShader::TileMode tmx, SkShader::TileMode tmy);
26 SkShader::TileMode getTileModeX() const { return fTileModeX; } in getTileModeX()
27 SkShader::TileMode getTileModeY() const { return fTileModeY; } in getTileModeY()
37 SkShader::TileMode tmx, SkShader::TileMode tmy);
43 SkShader::TileMode fTileModeX;
44 SkShader::TileMode fTileModeY;
DSkColorFilter.cpp43 SkFilterShader::SkFilterShader(SkShader* shader, SkColorFilter* filter) { in SkFilterShader()
50 fShader = static_cast<SkShader*>(buffer.readFlattenable()); in SkFilterShader()
81 shaderF &= ~SkShader::kHasSpan16_Flag; in getFlags()
85 shaderF &= ~(SkShader::kOpaqueAlpha_Flag | SkShader::kHasSpan16_Flag); in getFlags()
103 SkASSERT(fShader->getFlags() & SkShader::kHasSpan16_Flag); in shadeSpan16()
/external/skia/tests/
DShaderOpacityTest.cpp18 SkShader* shader = SkShader::CreateBitmapShader(bmp, in test_bitmap()
19 SkShader::kClamp_TileMode, SkShader::kClamp_TileMode); in test_bitmap()
28 shader = SkShader::CreateBitmapShader(bmp, in test_bitmap()
29 SkShader::kClamp_TileMode, SkShader::kClamp_TileMode); in test_bitmap()
36 shader = SkShader::CreateBitmapShader(bmp, in test_bitmap()
37 SkShader::kClamp_TileMode, SkShader::kClamp_TileMode); in test_bitmap()
44 shader = SkShader::CreateBitmapShader(bmp, in test_bitmap()
45 SkShader::kClamp_TileMode, SkShader::kClamp_TileMode); in test_bitmap()
60 SkShader::TileMode mode = SkShader::kClamp_TileMode; in test_gradient()
65 SkShader* grad = SkGradientShader::CreateLinear(pts, colors, pos, count, in test_gradient()
/external/skia/bench/
DGradientBench.cpp42 static SkShader* MakeLinear(const SkPoint pts[2], const GradData& data, in MakeLinear()
43 SkShader::TileMode tm, SkUnitMapper* mapper, in MakeLinear()
49 static SkShader* MakeRadial(const SkPoint pts[2], const GradData& data, in MakeRadial()
50 SkShader::TileMode tm, SkUnitMapper* mapper, in MakeRadial()
61 static SkShader* MakeSweep(const SkPoint pts[2], const GradData& data, in MakeSweep()
62 SkShader::TileMode tm, SkUnitMapper* mapper, in MakeSweep()
72 static SkShader* Make2Radial(const SkPoint pts[2], const GradData& data, in Make2Radial()
73 SkShader::TileMode tm, SkUnitMapper* mapper, in Make2Radial()
86 typedef SkShader* (*GradMaker)(const SkPoint pts[2], const GradData& data,
87 SkShader::TileMode tm, SkUnitMapper* mapper,
[all …]
/external/webkit/Source/WebCore/platform/graphics/skia/
DPatternSkia.cpp68 …m_pattern = SkShader::CreateBitmapShader(*bm, SkShader::kRepeat_TileMode, SkShader::kRepeat_TileMo… in platformPattern()
77SkShader::TileMode tileModeX = m_repeatX ? SkShader::kRepeat_TileMode : SkShader::kClamp_TileMode; in platformPattern()
78SkShader::TileMode tileModeY = m_repeatY ? SkShader::kRepeat_TileMode : SkShader::kClamp_TileMode; in platformPattern()
91 m_pattern = SkShader::CreateBitmapShader(bm2, tileModeX, tileModeY); in platformPattern()
/external/skia/samplecode/
DSampleShaderText.cpp34 SK_ARRAY_COUNT(colors), SkShader::kClamp_TileMode, um))->unref(); in makebm()
38 SkShader* MakeBitmapShader(SkShader::TileMode tx, SkShader::TileMode ty, in MakeBitmapShader()
44 return SkShader::CreateBitmapShader(bmp, tx, ty); in MakeBitmapShader()
64 static SkShader* MakeLinear(const SkPoint pts[2], const GradData& data, in MakeLinear()
65 SkShader::TileMode tm, SkUnitMapper* mapper) { in MakeLinear()
70 static SkShader* MakeRadial(const SkPoint pts[2], const GradData& data, in MakeRadial()
71 SkShader::TileMode tm, SkUnitMapper* mapper) { in MakeRadial()
79 static SkShader* MakeSweep(const SkPoint pts[2], const GradData& data, in MakeSweep()
80 SkShader::TileMode tm, SkUnitMapper* mapper) { in MakeSweep()
88 static SkShader* Make2Radial(const SkPoint pts[2], const GradData& data, in Make2Radial()
[all …]
DSampleShaders.cpp26 static SkShader* make_bitmapfade(const SkBitmap& bm) in make_bitmapfade()
35SkShader* shaderA = SkGradientShader::CreateLinear(pts, colors, NULL, 2, SkShader::kClamp_TileMode… in make_bitmapfade()
37 SkShader* shaderB = SkShader::CreateBitmapShader(bm, in make_bitmapfade()
38 SkShader::kClamp_TileMode, SkShader::kClamp_TileMode); in make_bitmapfade()
42 SkShader* shader = new SkComposeShader(shaderB, shaderA, mode); in make_bitmapfade()
52 SkShader* fShader;
65SkShader* shaderA = SkGradientShader::CreateLinear(pts, colors, NULL, 2, SkShader::kClamp_TileMode… in ShaderView()
71SkShader* shaderB = SkGradientShader::CreateLinear(pts, colors, NULL, 2, SkShader::kClamp_TileMode… in ShaderView()
DSampleGradients.cpp13 static SkShader* setgrad(const SkRect& r, SkColor c0, SkColor c1) { in setgrad()
17 SkShader::kClamp_TileMode, NULL); in setgrad()
67 static SkShader* MakeLinear(const SkPoint pts[2], const GradData& data, in MakeLinear()
68 SkShader::TileMode tm, SkUnitMapper* mapper) { in MakeLinear()
73 static SkShader* MakeRadial(const SkPoint pts[2], const GradData& data, in MakeRadial()
74 SkShader::TileMode tm, SkUnitMapper* mapper) { in MakeRadial()
82 static SkShader* MakeSweep(const SkPoint pts[2], const GradData& data, in MakeSweep()
83 SkShader::TileMode tm, SkUnitMapper* mapper) { in MakeSweep()
91 static SkShader* Make2Radial(const SkPoint pts[2], const GradData& data, in Make2Radial()
92 SkShader::TileMode tm, SkUnitMapper* mapper) { in Make2Radial()
[all …]
DSampleTiling.cpp46 SK_ARRAY_COUNT(colors), SkShader::kClamp_TileMode, um))->unref(); in makebm()
51 SkShader::TileMode tmx, SkShader::TileMode tmy) { in setup()
52 SkShader* shader = SkShader::CreateBitmapShader(bm, tmx, tmy); in setup()
102 …static const SkShader::TileMode gModes[] = { SkShader::kClamp_TileMode, SkShader::kRepeat_TileMode… in onDrawContent()
DSampleAnimatedGradient.cpp57 SkShader* shader1 = SkGradientShader::CreateLinear( in onDrawContent()
59 SkShader::kMirror_TileMode); in onDrawContent()
66 SkShader* shader2 = SkGradientShader::CreateRadial( in onDrawContent()
68 SkShader::kMirror_TileMode); in onDrawContent()
73 SkShader* shader3 = SkGradientShader::CreateTwoPointRadial( in onDrawContent()
75 SkShader::kMirror_TileMode); in onDrawContent()
80 SkShader* shader4 = SkGradientShader::CreateSweep( in onDrawContent()
/external/skia/gm/
Dshadertext.cpp35 SK_ARRAY_COUNT(colors), SkShader::kClamp_TileMode, um))->unref(); in makebm()
39 SkShader* MakeBitmapShader(SkShader::TileMode tx, SkShader::TileMode ty, in MakeBitmapShader()
45 return SkShader::CreateBitmapShader(bmp, tx, ty); in MakeBitmapShader()
65 static SkShader* MakeLinear(const SkPoint pts[2], const GradData& data, in MakeLinear()
66 SkShader::TileMode tm, SkUnitMapper* mapper) { in MakeLinear()
71 static SkShader* MakeRadial(const SkPoint pts[2], const GradData& data, in MakeRadial()
72 SkShader::TileMode tm, SkUnitMapper* mapper) { in MakeRadial()
80 static SkShader* MakeSweep(const SkPoint pts[2], const GradData& data, in MakeSweep()
81 SkShader::TileMode tm, SkUnitMapper* mapper) { in MakeSweep()
89 static SkShader* Make2Radial(const SkPoint pts[2], const GradData& data, in Make2Radial()
[all …]
Dgradients.cpp36 static SkShader* MakeLinear(const SkPoint pts[2], const GradData& data, in MakeLinear()
37 SkShader::TileMode tm, SkUnitMapper* mapper) { in MakeLinear()
42 static SkShader* MakeRadial(const SkPoint pts[2], const GradData& data, in MakeRadial()
43 SkShader::TileMode tm, SkUnitMapper* mapper) { in MakeRadial()
51 static SkShader* MakeSweep(const SkPoint pts[2], const GradData& data, in MakeSweep()
52 SkShader::TileMode tm, SkUnitMapper* mapper) { in MakeSweep()
60 static SkShader* Make2Radial(const SkPoint pts[2], const GradData& data, in Make2Radial()
61 SkShader::TileMode tm, SkUnitMapper* mapper) { in Make2Radial()
73 typedef SkShader* (*GradMaker)(const SkPoint pts[2], const GradData& data,
74 SkShader::TileMode tm, SkUnitMapper* mapper);
[all …]
Dtilemodes.cpp44 SK_ARRAY_COUNT(colors), SkShader::kClamp_TileMode, um))->unref(); in makebm()
49 SkShader::TileMode tmx, SkShader::TileMode tmy) { in setup()
50 SkShader* shader = SkShader::CreateBitmapShader(bm, tmx, tmy); in setup()
92 …static const SkShader::TileMode gModes[] = { SkShader::kClamp_TileMode, SkShader::kRepeat_TileMode… in onDraw()
/external/skia/src/pdf/
DSkPDFShader.cpp121 static void gradientFunctionCode(const SkShader::GradientInfo& info, in gradientFunctionCode()
178 static void tileModeCode(SkShader::TileMode mode, SkString* result) { in tileModeCode()
179 if (mode == SkShader::kRepeat_TileMode) { in tileModeCode()
185 if (mode == SkShader::kMirror_TileMode) { in tileModeCode()
202 static SkString linearCode(const SkShader::GradientInfo& info) { in linearCode()
210 static SkString radialCode(const SkShader::GradientInfo& info) { in radialCode()
231 static SkString twoPointRadialCode(const SkShader::GradientInfo& info) { in twoPointRadialCode()
275 static SkString sweepCode(const SkShader::GradientInfo& info) { in sweepCode()
285 SkShader::GradientType fType;
286 SkShader::GradientInfo fInfo;
[all …]
/external/skia/src/animator/
DSkDrawShader.cpp28 tileMode(SkShader::kClamp_TileMode) { in SkDrawShader()
39 void SkDrawShader::addPostlude(SkShader* shader) { in addPostlude()
66 SkShader* SkDrawBitmapShader::getShader() { in getShader()
76 SkShader* shader = SkShader::CreateBitmapShader(image->fBitmap, in getShader()
77 (SkShader::TileMode) tileMode, in getShader()
78 (SkShader::TileMode) tileMode); in getShader()
79 SkAutoTDelete<SkShader> autoDel(shader); in getShader()
DSkDrawGradient.cpp183 SkShader* SkLinearGradient::getShader() { in getShader()
186 SkShader* shader = SkGradientShader::CreateLinear((SkPoint*)points.begin(), in getShader()
187 … fColors.begin(), offsets.begin(), fColors.count(), (SkShader::TileMode) tileMode, fUnitMapper); in getShader()
188 SkAutoTDelete<SkShader> autoDel(shader); in getShader()
218 SkShader* SkRadialGradient::getShader() { in getShader()
221 SkShader* shader = SkGradientShader::CreateRadial(center, in getShader()
222 …radius, fColors.begin(), offsets.begin(), fColors.count(), (SkShader::TileMode) tileMode, fUnitMap… in getShader()
223 SkAutoTDelete<SkShader> autoDel(shader); in getShader()
/external/skia/include/effects/
DSkGradientShader.h41 static SkShader* CreateLinear( const SkPoint pts[2],
43 SkShader::TileMode mode,
63 static SkShader* CreateRadial( const SkPoint& center, SkScalar radius,
65 SkShader::TileMode mode,
88 static SkShader* CreateTwoPointRadial(const SkPoint& start,
94 SkShader::TileMode mode,
112 static SkShader* CreateSweep(SkScalar cx, SkScalar cy,
/external/skia/include/core/
DSkComposeShader.h23 class SK_API SkComposeShader : public SkShader {
34 SkComposeShader(SkShader* sA, SkShader* sB, SkXfermode* mode = NULL);
52 SkShader* fShaderA;
53 SkShader* fShaderB;
56 typedef SkShader INHERITED;
DSkShader.h28 class SK_API SkShader : public SkFlattenable {
30 SkShader();
31 virtual ~SkShader();
147 return SkShader::CanCallShadeSpan16(this->getFlags()); in canCallShadeSpan16()
279 static SkShader* CreateBitmapShader(const SkBitmap& src,
297 SkShader(SkFlattenableReadBuffer& );
306 static SkShader* CreateBitmapShader(const SkBitmap& src,
/external/skia/src/views/
DSkParsePaint.cpp14 static SkShader* inflate_shader(const SkDOM& dom, const SkDOM::Node* node) in inflate_shader()
34 SkShader::TileMode mode = SkShader::kClamp_TileMode; in inflate_shader()
38 mode = (SkShader::TileMode)index; in inflate_shader()
51 SkShader::TileMode mode = SkShader::kRepeat_TileMode; in inflate_shader()
55 mode = (SkShader::TileMode)index; in inflate_shader()
57 return SkShader::CreateBitmapShader(bm, mode, mode); in inflate_shader()
106 SkShader* shader = inflate_shader(dom, node); in SkPaint_Inflate()
/external/webkit/Source/WebCore/platform/graphics/android/
DPatternAndroid.cpp39 static SkShader::TileMode toTileMode(bool doRepeat) { in toTileMode()
40 return doRepeat ? SkShader::kRepeat_TileMode : SkShader::kClamp_TileMode; in toTileMode()
49 SkShader* Pattern::platformPattern(const AffineTransform&) in platformPattern()
57 m_pattern = SkShader::CreateBitmapShader(ref->bitmap(), in platformPattern()
/external/chromium/chrome/browser/chromeos/login/
Dusername_view.cc140 SkShader* gradient_shader = in PaintUsername()
142 SkShader::kClamp_TileMode, NULL); in PaintUsername()
146 SkShader* solid_shader = new SkColorShader(kLabelBackgoundColor); in PaintUsername()
148 SkShader* composite_shader = new SkComposeShader(gradient_shader, in PaintUsername()
172 SkShader* image_shader = SkShader::CreateBitmapShader( in PaintUsername()
174 SkShader::kRepeat_TileMode, in PaintUsername()
175 SkShader::kRepeat_TileMode); in PaintUsername()
177 SkShader* composite_shader = new SkComposeShader(gradient_shader, in PaintUsername()

123456